ac92ff03009324f4d17a30c0182c81826996a0e3
[jalviewjs.git] / site / swingjs / j2s / javax / swing / event / TableModelEvent.js
1 Clazz.declarePackage ("javax.swing.event");
2 Clazz.load (["java.util.EventObject"], "javax.swing.event.TableModelEvent", null, function () {
3 c$ = Clazz.decorateAsClass (function () {
4 this.type = 0;
5 this.firstRow = 0;
6 this.lastRow = 0;
7 this.column = 0;
8 Clazz.instantialize (this, arguments);
9 }, javax.swing.event, "TableModelEvent", java.util.EventObject);
10 Clazz.makeConstructor (c$, 
11 function (source) {
12 this.construct (source, 0, 2147483647, -1, 0);
13 }, "javax.swing.table.TableModel");
14 Clazz.makeConstructor (c$, 
15 function (source, row) {
16 this.construct (source, row, row, -1, 0);
17 }, "javax.swing.table.TableModel,~N");
18 Clazz.makeConstructor (c$, 
19 function (source, firstRow, lastRow) {
20 this.construct (source, firstRow, lastRow, -1, 0);
21 }, "javax.swing.table.TableModel,~N,~N");
22 Clazz.makeConstructor (c$, 
23 function (source, firstRow, lastRow, column) {
24 this.construct (source, firstRow, lastRow, column, 0);
25 }, "javax.swing.table.TableModel,~N,~N,~N");
26 Clazz.makeConstructor (c$, 
27 function (source, firstRow, lastRow, column, type) {
28 Clazz.superConstructor (this, javax.swing.event.TableModelEvent, [source]);
29 this.firstRow = firstRow;
30 this.lastRow = lastRow;
31 this.column = column;
32 this.type = type;
33 }, "javax.swing.table.TableModel,~N,~N,~N,~N");
34 Clazz.defineMethod (c$, "getFirstRow", 
35 function () {
36 return this.firstRow;
37 });
38 Clazz.defineMethod (c$, "getLastRow", 
39 function () {
40 return this.lastRow;
41 });
42 Clazz.defineMethod (c$, "getColumn", 
43 function () {
44 return this.column;
45 });
46 Clazz.defineMethod (c$, "getType", 
47 function () {
48 return this.type;
49 });
50 Clazz.defineStatics (c$,
51 "INSERT", 1,
52 "UPDATE", 0,
53 "DELETE", -1,
54 "HEADER_ROW", -1,
55 "ALL_COLUMNS", -1);
56 });