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