1 Clazz.declarePackage ("java.awt.event");
2 Clazz.load (["java.awt.AWTEvent"], "java.awt.event.AdjustmentEvent", null, function () {
3 c$ = Clazz.decorateAsClass (function () {
4 this.adjustable = null;
6 this.adjustmentType = 0;
7 this.isAdjusting = false;
8 Clazz.instantialize (this, arguments);
9 }, java.awt.event, "AdjustmentEvent", java.awt.AWTEvent);
10 Clazz.makeConstructor (c$,
11 function (source, id, type, value) {
12 this.construct (source, id, type, value, false);
13 }, "java.awt.Adjustable,~N,~N,~N");
14 Clazz.makeConstructor (c$,
15 function (source, id, type, value, isAdjusting) {
16 Clazz.superConstructor (this, java.awt.event.AdjustmentEvent, [source, id]);
17 this.adjustable = source;
18 this.adjustmentType = type;
20 this.isAdjusting = isAdjusting;
21 }, "java.awt.Adjustable,~N,~N,~N,~B");
22 Clazz.defineMethod (c$, "getAdjustable",
24 return this.adjustable;
26 Clazz.defineMethod (c$, "getValue",
30 Clazz.defineMethod (c$, "getAdjustmentType",
32 return this.adjustmentType;
34 Clazz.defineMethod (c$, "getValueIsAdjusting",
36 return this.isAdjusting;
38 Clazz.overrideMethod (c$, "paramString",
43 typeStr = "ADJUSTMENT_VALUE_CHANGED";
46 typeStr = "unknown type";
49 switch (this.adjustmentType) {
51 adjTypeStr = "UNIT_INCREMENT";
54 adjTypeStr = "UNIT_DECREMENT";
57 adjTypeStr = "BLOCK_INCREMENT";
60 adjTypeStr = "BLOCK_DECREMENT";
66 adjTypeStr = "unknown type";
68 return typeStr + ",adjType=" + adjTypeStr + ",value=" + this.value + ",isAdjusting=" + this.isAdjusting;
70 Clazz.defineStatics (c$,
71 "ADJUSTMENT_FIRST", 601,
72 "ADJUSTMENT_LAST", 601,
73 "ADJUSTMENT_VALUE_CHANGED", 601,