X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fjavax%2Fswing%2FJSeparator.js;fp=site%2Fj2s%2Fjavax%2Fswing%2FJSeparator.js;h=9cbc4c622c496c2a35f570149f5b90b06f0d7108;hp=c8da5ee5a5cf192441f7cbf138ac0e3f65cd1f0c;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/j2s/javax/swing/JSeparator.js b/site/j2s/javax/swing/JSeparator.js index c8da5ee..9cbc4c6 100644 --- a/site/j2s/javax/swing/JSeparator.js +++ b/site/j2s/javax/swing/JSeparator.js @@ -1,63 +1,63 @@ -Clazz.declarePackage ("javax.swing"); -Clazz.load (["javax.swing.JComponent", "$.SwingConstants"], "javax.swing.JSeparator", ["java.lang.IllegalArgumentException", "javax.swing.UIManager"], function () { -c$ = Clazz.decorateAsClass (function () { -this.orientation = 0; -Clazz.instantialize (this, arguments); -}, javax.swing, "JSeparator", javax.swing.JComponent, javax.swing.SwingConstants); -Clazz.makeConstructor (c$, -function () { -this.construct (0); -}); -Clazz.makeConstructor (c$, -function (orientation) { -Clazz.superConstructor (this, javax.swing.JSeparator, []); -this.checkOrientation (orientation); -this.orientation = orientation; -this.setFocusable (false); -this.updateUI (); -}, "~N"); -Clazz.overrideMethod (c$, "getUI", -function () { -return this.ui; -}); -Clazz.overrideMethod (c$, "updateUI", -function () { -this.setUI (javax.swing.UIManager.getUI (this)); -}); -Clazz.overrideMethod (c$, "getUIClassID", -function () { -return "SeparatorUI"; -}); -Clazz.defineMethod (c$, "getOrientation", -function () { -return this.orientation; -}); -Clazz.defineMethod (c$, "setOrientation", -function (orientation) { -if (this.orientation == orientation) { -return; -}var oldValue = this.orientation; -this.checkOrientation (orientation); -this.orientation = orientation; -this.firePropertyChangeInt ("orientation", oldValue, orientation); -this.revalidate (); -this.repaint (); -}, "~N"); -Clazz.defineMethod (c$, "checkOrientation", - function (orientation) { -switch (orientation) { -case 1: -case 0: -break; -default: -throw new IllegalArgumentException ("orientation must be one of: VERTICAL, HORIZONTAL"); -} -}, "~N"); -Clazz.defineMethod (c$, "paramString", -function () { -var orientationString = (this.orientation == 0 ? "HORIZONTAL" : "VERTICAL"); -return Clazz.superCall (this, javax.swing.JSeparator, "paramString", []) + ",orientation=" + orientationString; -}); -Clazz.defineStatics (c$, -"$uiClassID", "SeparatorUI"); -}); +Clazz.declarePackage ("javax.swing"); +Clazz.load (["javax.swing.JComponent", "$.SwingConstants"], "javax.swing.JSeparator", ["java.lang.IllegalArgumentException", "javax.swing.UIManager"], function () { +c$ = Clazz.decorateAsClass (function () { +this.orientation = 0; +Clazz.instantialize (this, arguments); +}, javax.swing, "JSeparator", javax.swing.JComponent, javax.swing.SwingConstants); +Clazz.makeConstructor (c$, +function () { +this.construct (0); +}); +Clazz.makeConstructor (c$, +function (orientation) { +Clazz.superConstructor (this, javax.swing.JSeparator, []); +this.checkOrientation (orientation); +this.orientation = orientation; +this.setFocusable (false); +this.updateUI (); +}, "~N"); +Clazz.overrideMethod (c$, "getUI", +function () { +return this.ui; +}); +Clazz.overrideMethod (c$, "updateUI", +function () { +this.setUI (javax.swing.UIManager.getUI (this)); +}); +Clazz.overrideMethod (c$, "getUIClassID", +function () { +return "SeparatorUI"; +}); +Clazz.defineMethod (c$, "getOrientation", +function () { +return this.orientation; +}); +Clazz.defineMethod (c$, "setOrientation", +function (orientation) { +if (this.orientation == orientation) { +return; +}var oldValue = this.orientation; +this.checkOrientation (orientation); +this.orientation = orientation; +this.firePropertyChangeInt ("orientation", oldValue, orientation); +this.revalidate (); +this.repaint (); +}, "~N"); +Clazz.defineMethod (c$, "checkOrientation", + function (orientation) { +switch (orientation) { +case 1: +case 0: +break; +default: +throw new IllegalArgumentException ("orientation must be one of: VERTICAL, HORIZONTAL"); +} +}, "~N"); +Clazz.defineMethod (c$, "paramString", +function () { +var orientationString = (this.orientation == 0 ? "HORIZONTAL" : "VERTICAL"); +return Clazz.superCall (this, javax.swing.JSeparator, "paramString", []) + ",orientation=" + orientationString; +}); +Clazz.defineStatics (c$, +"$uiClassID", "SeparatorUI"); +});