X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fswingjs%2Fplaf%2FJSCaret.js;fp=site%2Fj2s%2Fswingjs%2Fplaf%2FJSCaret.js;h=879700ad54932f4709b8056b0b0d17c4f2d9b80f;hp=236282301fd3e65cd3fa9c9ec884640234efcc88;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/j2s/swingjs/plaf/JSCaret.js b/site/j2s/swingjs/plaf/JSCaret.js index 2362823..879700a 100644 --- a/site/j2s/swingjs/plaf/JSCaret.js +++ b/site/j2s/swingjs/plaf/JSCaret.js @@ -1,75 +1,75 @@ -Clazz.declarePackage ("swingjs.plaf"); -Clazz.load (["javax.swing.plaf.UIResource", "javax.swing.text.Caret"], "swingjs.plaf.JSCaret", null, function () { -c$ = Clazz.decorateAsClass (function () { -this.c = null; -this.dot = 0; -this.mark = 0; -Clazz.instantialize (this, arguments); -}, swingjs.plaf, "JSCaret", null, [javax.swing.text.Caret, javax.swing.plaf.UIResource]); -Clazz.overrideMethod (c$, "install", -function (c) { -this.c = c; -}, "javax.swing.text.JTextComponent"); -Clazz.overrideMethod (c$, "deinstall", -function (c) { -this.c = null; -}, "javax.swing.text.JTextComponent"); -Clazz.overrideMethod (c$, "paint", -function (g) { -}, "java.awt.Graphics"); -Clazz.overrideMethod (c$, "addChangeListener", -function (l) { -}, "javax.swing.event.ChangeListener"); -Clazz.overrideMethod (c$, "removeChangeListener", -function (l) { -}, "javax.swing.event.ChangeListener"); -Clazz.overrideMethod (c$, "isVisible", -function () { -return true; -}); -Clazz.overrideMethod (c$, "setVisible", -function (v) { -}, "~B"); -Clazz.overrideMethod (c$, "isSelectionVisible", -function () { -return true; -}); -Clazz.overrideMethod (c$, "setSelectionVisible", -function (v) { -}, "~B"); -Clazz.overrideMethod (c$, "setMagicCaretPosition", -function (p) { -}, "java.awt.Point"); -Clazz.overrideMethod (c$, "getMagicCaretPosition", -function () { -return null; -}); -Clazz.overrideMethod (c$, "setBlinkRate", -function (rate) { -}, "~N"); -Clazz.overrideMethod (c$, "getBlinkRate", -function () { -return 0; -}); -Clazz.overrideMethod (c$, "getDot", -function () { -return this.dot; -}); -Clazz.overrideMethod (c$, "getMark", -function () { -return this.mark; -}); -Clazz.overrideMethod (c$, "setDot", -function (dot) { -this.dot = this.mark = dot; -}, "~N"); -Clazz.overrideMethod (c$, "moveDot", -function (dot) { -this.mark = this.dot; -this.dot = dot; -}, "~N"); -Clazz.overrideMethod (c$, "toString", -function () { -return "caret[" + this.dot + "," + this.mark + "]"; -}); -}); +Clazz.declarePackage ("swingjs.plaf"); +Clazz.load (["javax.swing.plaf.UIResource", "javax.swing.text.Caret"], "swingjs.plaf.JSCaret", null, function () { +c$ = Clazz.decorateAsClass (function () { +this.c = null; +this.dot = 0; +this.mark = 0; +Clazz.instantialize (this, arguments); +}, swingjs.plaf, "JSCaret", null, [javax.swing.text.Caret, javax.swing.plaf.UIResource]); +Clazz.overrideMethod (c$, "install", +function (c) { +this.c = c; +}, "javax.swing.text.JTextComponent"); +Clazz.overrideMethod (c$, "deinstall", +function (c) { +this.c = null; +}, "javax.swing.text.JTextComponent"); +Clazz.overrideMethod (c$, "paint", +function (g) { +}, "java.awt.Graphics"); +Clazz.overrideMethod (c$, "addChangeListener", +function (l) { +}, "javax.swing.event.ChangeListener"); +Clazz.overrideMethod (c$, "removeChangeListener", +function (l) { +}, "javax.swing.event.ChangeListener"); +Clazz.overrideMethod (c$, "isVisible", +function () { +return true; +}); +Clazz.overrideMethod (c$, "setVisible", +function (v) { +}, "~B"); +Clazz.overrideMethod (c$, "isSelectionVisible", +function () { +return true; +}); +Clazz.overrideMethod (c$, "setSelectionVisible", +function (v) { +}, "~B"); +Clazz.overrideMethod (c$, "setMagicCaretPosition", +function (p) { +}, "java.awt.Point"); +Clazz.overrideMethod (c$, "getMagicCaretPosition", +function () { +return null; +}); +Clazz.overrideMethod (c$, "setBlinkRate", +function (rate) { +}, "~N"); +Clazz.overrideMethod (c$, "getBlinkRate", +function () { +return 0; +}); +Clazz.overrideMethod (c$, "getDot", +function () { +return this.dot; +}); +Clazz.overrideMethod (c$, "getMark", +function () { +return this.mark; +}); +Clazz.overrideMethod (c$, "setDot", +function (dot) { +this.dot = this.mark = dot; +}, "~N"); +Clazz.overrideMethod (c$, "moveDot", +function (dot) { +this.mark = this.dot; +this.dot = dot; +}, "~N"); +Clazz.overrideMethod (c$, "toString", +function () { +return "caret[" + this.dot + "," + this.mark + "]"; +}); +});