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