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
7 Clazz.instantialize (this, arguments);
\r
8 }, javax.swing.event, "ListDataEvent", java.util.EventObject);
\r
9 Clazz.defineMethod (c$, "getType",
\r
13 Clazz.defineMethod (c$, "getIndex0",
\r
17 Clazz.defineMethod (c$, "getIndex1",
\r
21 Clazz.makeConstructor (c$,
\r
22 function (source, type, index0, index1) {
\r
23 Clazz.superConstructor (this, javax.swing.event.ListDataEvent, [source]);
\r
25 this.index0 = Math.min (index0, index1);
\r
26 this.index1 = Math.max (index0, index1);
\r
28 Clazz.overrideMethod (c$, "toString",
\r
30 return this.getClass ().getName () + "[type=" + this.type + ",index0=" + this.index0 + ",index1=" + this.index1 + "]";
\r
32 Clazz.defineStatics (c$,
\r
33 "CONTENTS_CHANGED", 0,
\r
34 "INTERVAL_ADDED", 1,
\r
35 "INTERVAL_REMOVED", 2);
\r