JAL-1807 Bob's JalviewJS prototype first commit
[jalviewjs.git] / site / j2s / java / awt / event / InputMethodEvent.js
1 Clazz.declarePackage ("java.awt.event");\r
2 Clazz.load (["java.awt.AWTEvent"], "java.awt.event.InputMethodEvent", null, function () {\r
3 c$ = Clazz.decorateAsClass (function () {\r
4 this.when = 0;\r
5 this.text = null;\r
6 this.committedCharacterCount = 0;\r
7 Clazz.instantialize (this, arguments);\r
8 }, java.awt.event, "InputMethodEvent", java.awt.AWTEvent);\r
9 Clazz.defineMethod (c$, "getText", \r
10 function () {\r
11 return this.text;\r
12 });\r
13 Clazz.defineMethod (c$, "getCommittedCharacterCount", \r
14 function () {\r
15 return this.committedCharacterCount;\r
16 });\r
17 Clazz.defineMethod (c$, "getWhen", \r
18 function () {\r
19 return this.when;\r
20 });\r
21 Clazz.defineStatics (c$,\r
22 "INPUT_METHOD_FIRST", 1100,\r
23 "INPUT_METHOD_TEXT_CHANGED", 1100,\r
24 "CARET_POSITION_CHANGED", 1101,\r
25 "INPUT_METHOD_LAST", 1101);\r
26 });\r