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