Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / java / text / Annotation.js
1 Clazz.declarePackage ("java.text");
2 c$ = Clazz.decorateAsClass (function () {
3 this.value = null;
4 Clazz.instantialize (this, arguments);
5 }, java.text, "Annotation");
6 Clazz.makeConstructor (c$, 
7 function (value) {
8 this.value = value;
9 }, "~O");
10 Clazz.defineMethod (c$, "getValue", 
11 function () {
12 return this.value;
13 });
14 Clazz.overrideMethod (c$, "toString", 
15 function () {
16 return this.getClass ().getName () + "[value=" + this.value + "]";
17 });