JAL-1807 Bob's JalviewJS prototype first commit
[jalviewjs.git] / site / j2s / swingjs / JSPosition.js
1 Clazz.declarePackage ("swingjs");\r
2 Clazz.load (["javax.swing.text.Position"], "swingjs.JSPosition", null, function () {\r
3 c$ = Clazz.decorateAsClass (function () {\r
4 this.pos = 0;\r
5 Clazz.instantialize (this, arguments);\r
6 }, swingjs, "JSPosition", null, javax.swing.text.Position);\r
7 Clazz.makeConstructor (c$, \r
8 function (offset) {\r
9 this.pos = offset;\r
10 }, "~N");\r
11 Clazz.overrideMethod (c$, "getOffset", \r
12 function () {\r
13 return this.pos;\r
14 });\r
15 });\r