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