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