JAL-1807 Bob's JalviewJS prototype first commit
[jalviewjs.git] / site / j2s / javax / swing / event / HyperlinkEvent.js
1 Clazz.declarePackage ("javax.swing.event");\r
2 Clazz.load (["java.util.EventObject"], "javax.swing.event.HyperlinkEvent", null, function () {\r
3 c$ = Clazz.decorateAsClass (function () {\r
4 this.type = null;\r
5 this.u = null;\r
6 this.desc = null;\r
7 this.sourceElement = null;\r
8 Clazz.instantialize (this, arguments);\r
9 }, javax.swing.event, "HyperlinkEvent", java.util.EventObject);\r
10 Clazz.makeConstructor (c$, \r
11 function (source, type, u) {\r
12 this.construct (source, type, u, null);\r
13 }, "~O,javax.swing.event.HyperlinkEvent.EventType,java.net.URL");\r
14 Clazz.makeConstructor (c$, \r
15 function (source, type, u, desc) {\r
16 this.construct (source, type, u, desc, null);\r
17 }, "~O,javax.swing.event.HyperlinkEvent.EventType,java.net.URL,~S");\r
18 Clazz.makeConstructor (c$, \r
19 function (source, type, u, desc, sourceElement) {\r
20 Clazz.superConstructor (this, javax.swing.event.HyperlinkEvent, [source]);\r
21 this.type = type;\r
22 this.u = u;\r
23 this.desc = desc;\r
24 this.sourceElement = sourceElement;\r
25 }, "~O,javax.swing.event.HyperlinkEvent.EventType,java.net.URL,~S,javax.swing.text.Element");\r
26 Clazz.defineMethod (c$, "getEventType", \r
27 function () {\r
28 return this.type;\r
29 });\r
30 Clazz.defineMethod (c$, "getDescription", \r
31 function () {\r
32 return this.desc;\r
33 });\r
34 Clazz.defineMethod (c$, "getURL", \r
35 function () {\r
36 return this.u;\r
37 });\r
38 Clazz.defineMethod (c$, "getSourceElement", \r
39 function () {\r
40 return this.sourceElement;\r
41 });\r
42 Clazz.pu$h(self.c$);\r
43 c$ = Clazz.decorateAsClass (function () {\r
44 this.typeString = null;\r
45 Clazz.instantialize (this, arguments);\r
46 }, javax.swing.event.HyperlinkEvent, "EventType");\r
47 Clazz.makeConstructor (c$, \r
48  function (a) {\r
49 this.typeString = a;\r
50 }, "~S");\r
51 Clazz.overrideMethod (c$, "toString", \r
52 function () {\r
53 return this.typeString;\r
54 });\r
55 c$.ENTERED = c$.prototype.ENTERED =  new javax.swing.event.HyperlinkEvent.EventType ("ENTERED");\r
56 c$.EXITED = c$.prototype.EXITED =  new javax.swing.event.HyperlinkEvent.EventType ("EXITED");\r
57 c$.ACTIVATED = c$.prototype.ACTIVATED =  new javax.swing.event.HyperlinkEvent.EventType ("ACTIVATED");\r
58 c$ = Clazz.p0p ();\r
59 });\r