Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / swingjs / j2s / javax / swing / JSeparator.js
index c8da5ee..9cbc4c6 100644 (file)
@@ -1,63 +1,63 @@
-Clazz.declarePackage ("javax.swing");\r
-Clazz.load (["javax.swing.JComponent", "$.SwingConstants"], "javax.swing.JSeparator", ["java.lang.IllegalArgumentException", "javax.swing.UIManager"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.orientation = 0;\r
-Clazz.instantialize (this, arguments);\r
-}, javax.swing, "JSeparator", javax.swing.JComponent, javax.swing.SwingConstants);\r
-Clazz.makeConstructor (c$, \r
-function () {\r
-this.construct (0);\r
-});\r
-Clazz.makeConstructor (c$, \r
-function (orientation) {\r
-Clazz.superConstructor (this, javax.swing.JSeparator, []);\r
-this.checkOrientation (orientation);\r
-this.orientation = orientation;\r
-this.setFocusable (false);\r
-this.updateUI ();\r
-}, "~N");\r
-Clazz.overrideMethod (c$, "getUI", \r
-function () {\r
-return this.ui;\r
-});\r
-Clazz.overrideMethod (c$, "updateUI", \r
-function () {\r
-this.setUI (javax.swing.UIManager.getUI (this));\r
-});\r
-Clazz.overrideMethod (c$, "getUIClassID", \r
-function () {\r
-return "SeparatorUI";\r
-});\r
-Clazz.defineMethod (c$, "getOrientation", \r
-function () {\r
-return this.orientation;\r
-});\r
-Clazz.defineMethod (c$, "setOrientation", \r
-function (orientation) {\r
-if (this.orientation == orientation) {\r
-return;\r
-}var oldValue = this.orientation;\r
-this.checkOrientation (orientation);\r
-this.orientation = orientation;\r
-this.firePropertyChangeInt ("orientation", oldValue, orientation);\r
-this.revalidate ();\r
-this.repaint ();\r
-}, "~N");\r
-Clazz.defineMethod (c$, "checkOrientation", \r
- function (orientation) {\r
-switch (orientation) {\r
-case 1:\r
-case 0:\r
-break;\r
-default:\r
-throw  new IllegalArgumentException ("orientation must be one of: VERTICAL, HORIZONTAL");\r
-}\r
-}, "~N");\r
-Clazz.defineMethod (c$, "paramString", \r
-function () {\r
-var orientationString = (this.orientation == 0 ? "HORIZONTAL" : "VERTICAL");\r
-return Clazz.superCall (this, javax.swing.JSeparator, "paramString", []) + ",orientation=" + orientationString;\r
-});\r
-Clazz.defineStatics (c$,\r
-"$uiClassID", "SeparatorUI");\r
-});\r
+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");
+});