44ac7435023457a7ef4369f8bf36cb92161938de
[jalviewjs.git] / site / swingjs / j2s / javax / swing / event / ListDataEvent.js
1 Clazz.declarePackage ("javax.swing.event");\r
2 Clazz.load (["java.util.EventObject"], "javax.swing.event.ListDataEvent", null, function () {\r
3 c$ = Clazz.decorateAsClass (function () {\r
4 this.type = 0;\r
5 this.index0 = 0;\r
6 this.index1 = 0;\r
7 Clazz.instantialize (this, arguments);\r
8 }, javax.swing.event, "ListDataEvent", java.util.EventObject);\r
9 Clazz.defineMethod (c$, "getType", \r
10 function () {\r
11 return this.type;\r
12 });\r
13 Clazz.defineMethod (c$, "getIndex0", \r
14 function () {\r
15 return this.index0;\r
16 });\r
17 Clazz.defineMethod (c$, "getIndex1", \r
18 function () {\r
19 return this.index1;\r
20 });\r
21 Clazz.makeConstructor (c$, \r
22 function (source, type, index0, index1) {\r
23 Clazz.superConstructor (this, javax.swing.event.ListDataEvent, [source]);\r
24 this.type = type;\r
25 this.index0 = Math.min (index0, index1);\r
26 this.index1 = Math.max (index0, index1);\r
27 }, "~O,~N,~N,~N");\r
28 Clazz.overrideMethod (c$, "toString", \r
29 function () {\r
30 return this.getClass ().getName () + "[type=" + this.type + ",index0=" + this.index0 + ",index1=" + this.index1 + "]";\r
31 });\r
32 Clazz.defineStatics (c$,\r
33 "CONTENTS_CHANGED", 0,\r
34 "INTERVAL_ADDED", 1,\r
35 "INTERVAL_REMOVED", 2);\r
36 });\r