28424a263134630bb27d03c8ef6da78907128ba1
[jalviewjs.git] / site / j2s / jssun / applet / AppletEvent.js
1 Clazz.declarePackage ("jssun.applet");\r
2 Clazz.load (["java.util.EventObject"], "jssun.applet.AppletEvent", null, function () {\r
3 c$ = Clazz.decorateAsClass (function () {\r
4 this.arg = null;\r
5 this.id = 0;\r
6 Clazz.instantialize (this, arguments);\r
7 }, jssun.applet, "AppletEvent", java.util.EventObject);\r
8 Clazz.makeConstructor (c$, \r
9 function (source, id, argument) {\r
10 Clazz.superConstructor (this, jssun.applet.AppletEvent, [source]);\r
11 this.arg = argument;\r
12 this.id = id;\r
13 }, "~O,~N,~O");\r
14 Clazz.defineMethod (c$, "getID", \r
15 function () {\r
16 return this.id;\r
17 });\r
18 Clazz.defineMethod (c$, "getArgument", \r
19 function () {\r
20 return this.arg;\r
21 });\r
22 Clazz.overrideMethod (c$, "toString", \r
23 function () {\r
24 var str = this.getClass ().getName () + "[source=" + this.source + " + id=" + this.id;\r
25 if (this.arg != null) {\r
26 str += " + arg=" + this.arg;\r
27 }str += " ]";\r
28 return str;\r
29 });\r
30 });\r