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