JAL-1807 Bob's JalviewJS prototype first commit
[jalviewjs.git] / site / j2s / java / awt / AttributeValue.js
1 Clazz.declarePackage ("java.awt");\r
2 c$ = Clazz.decorateAsClass (function () {\r
3 this.value = 0;\r
4 this.names = null;\r
5 Clazz.instantialize (this, arguments);\r
6 }, java.awt, "AttributeValue");\r
7 Clazz.makeConstructor (c$, \r
8 function (value, names) {\r
9 this.value = value;\r
10 this.names = names;\r
11 }, "~N,~A");\r
12 Clazz.overrideMethod (c$, "hashCode", \r
13 function () {\r
14 return this.value;\r
15 });\r
16 Clazz.overrideMethod (c$, "toString", \r
17 function () {\r
18 return this.names[this.value];\r
19 });\r