Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / java / awt / AttributeValue.js
1 Clazz.declarePackage ("java.awt");
2 c$ = Clazz.decorateAsClass (function () {
3 this.value = 0;
4 this.names = null;
5 Clazz.instantialize (this, arguments);
6 }, java.awt, "AttributeValue");
7 Clazz.makeConstructor (c$, 
8 function (value, names) {
9 this.value = value;
10 this.names = names;
11 }, "~N,~A");
12 Clazz.overrideMethod (c$, "hashCode", 
13 function () {
14 return this.value;
15 });
16 Clazz.overrideMethod (c$, "toString", 
17 function () {
18 return this.names[this.value];
19 });