JAL-1807 Bob's JalviewJS prototype first commit
[jalviewjs.git] / site / j2s / javax / swing / event / ListSelectionEvent.js
1 Clazz.declarePackage ("javax.swing.event");\r
2 Clazz.load (["java.util.EventObject"], "javax.swing.event.ListSelectionEvent", null, function () {\r
3 c$ = Clazz.decorateAsClass (function () {\r
4 this.firstIndex = 0;\r
5 this.lastIndex = 0;\r
6 this.isAdjusting = false;\r
7 Clazz.instantialize (this, arguments);\r
8 }, javax.swing.event, "ListSelectionEvent", java.util.EventObject);\r
9 Clazz.makeConstructor (c$, \r
10 function (source, firstIndex, lastIndex, isAdjusting) {\r
11 Clazz.superConstructor (this, javax.swing.event.ListSelectionEvent, [source]);\r
12 this.firstIndex = firstIndex;\r
13 this.lastIndex = lastIndex;\r
14 this.isAdjusting = isAdjusting;\r
15 }, "~O,~N,~N,~B");\r
16 Clazz.defineMethod (c$, "getFirstIndex", \r
17 function () {\r
18 return this.firstIndex;\r
19 });\r
20 Clazz.defineMethod (c$, "getLastIndex", \r
21 function () {\r
22 return this.lastIndex;\r
23 });\r
24 Clazz.defineMethod (c$, "getValueIsAdjusting", \r
25 function () {\r
26 return this.isAdjusting;\r
27 });\r
28 Clazz.overrideMethod (c$, "toString", \r
29 function () {\r
30 var properties = " source=" + this.getSource () + " firstIndex= " + this.firstIndex + " lastIndex= " + this.lastIndex + " isAdjusting= " + this.isAdjusting + " ";\r
31 return this.getClass ().getName () + "[" + properties + "]";\r
32 });\r
33 });\r