Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / swingjs / j2s / javax / swing / JSplitPane.js
index 649f078..5186202 100644 (file)
-Clazz.declarePackage ("javax.swing");\r
-Clazz.load (["javax.swing.JComponent"], "javax.swing.JSplitPane", ["java.lang.Boolean", "$.IllegalArgumentException", "javax.swing.JButton", "$.UIManager"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.orientation = 0;\r
-this.continuousLayout = false;\r
-this.leftComponent = null;\r
-this.rightComponent = null;\r
-this.dividerSize = 0;\r
-this.dividerSizeSet = false;\r
-this.oneTouchExpandable = false;\r
-this.oneTouchExpandableSet = false;\r
-this.lastDividerLocation = 0;\r
-this.resizeWeight = 0;\r
-this.dividerLocation = 0;\r
-Clazz.instantialize (this, arguments);\r
-}, javax.swing, "JSplitPane", javax.swing.JComponent);\r
-Clazz.makeConstructor (c$, \r
-function () {\r
-this.construct (1, false,  new javax.swing.JButton (javax.swing.UIManager.getString ("SplitPane.leftButtonText")),  new javax.swing.JButton (javax.swing.UIManager.getString ("SplitPane.rightButtonText")));\r
-});\r
-Clazz.makeConstructor (c$, \r
-function (newOrientation) {\r
-this.construct (newOrientation, false);\r
-}, "~N");\r
-Clazz.makeConstructor (c$, \r
-function (newOrientation, newContinuousLayout) {\r
-this.construct (newOrientation, newContinuousLayout, null, null);\r
-}, "~N,~B");\r
-Clazz.makeConstructor (c$, \r
-function (newOrientation, newLeftComponent, newRightComponent) {\r
-this.construct (newOrientation, false, newLeftComponent, newRightComponent);\r
-}, "~N,java.awt.Component,java.awt.Component");\r
-Clazz.makeConstructor (c$, \r
-function (newOrientation, newContinuousLayout, newLeftComponent, newRightComponent) {\r
-Clazz.superConstructor (this, javax.swing.JSplitPane);\r
-this.dividerLocation = -1;\r
-this.setLayout (null);\r
-this.setUIProperty ("opaque", Boolean.TRUE);\r
-this.orientation = newOrientation;\r
-if (this.orientation != 1 && this.orientation != 0) throw  new IllegalArgumentException ("cannot create JSplitPane, orientation must be one of JSplitPane.HORIZONTAL_SPLIT or JSplitPane.VERTICAL_SPLIT");\r
-this.continuousLayout = newContinuousLayout;\r
-if (newLeftComponent != null) this.setLeftComponent (newLeftComponent);\r
-if (newRightComponent != null) this.setRightComponent (newRightComponent);\r
-this.updateUI ();\r
-}, "~N,~B,java.awt.Component,java.awt.Component");\r
-Clazz.defineMethod (c$, "setUI", \r
-function (ui) {\r
-if (this.ui !== ui) {\r
-Clazz.superCall (this, javax.swing.JSplitPane, "setUI", [ui]);\r
-this.revalidate ();\r
-}}, "javax.swing.plaf.SplitPaneUI");\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
-this.revalidate ();\r
-});\r
-Clazz.overrideMethod (c$, "getUIClassID", \r
-function () {\r
-return "SplitPaneUI";\r
-});\r
-Clazz.defineMethod (c$, "setDividerSize", \r
-function (newSize) {\r
-var oldSize = this.dividerSize;\r
-this.dividerSizeSet = true;\r
-if (oldSize != newSize) {\r
-this.dividerSize = newSize;\r
-this.firePropertyChangeInt ("dividerSize", oldSize, newSize);\r
-}}, "~N");\r
-Clazz.defineMethod (c$, "getDividerSize", \r
-function () {\r
-return this.dividerSize;\r
-});\r
-Clazz.defineMethod (c$, "setLeftComponent", \r
-function (comp) {\r
-if (comp == null) {\r
-if (this.leftComponent != null) {\r
-this.remove (this.leftComponent);\r
-this.leftComponent = null;\r
-}} else {\r
-this.add (comp, "left");\r
-}}, "java.awt.Component");\r
-Clazz.defineMethod (c$, "getLeftComponent", \r
-function () {\r
-return this.leftComponent;\r
-});\r
-Clazz.defineMethod (c$, "setTopComponent", \r
-function (comp) {\r
-this.setLeftComponent (comp);\r
-}, "java.awt.Component");\r
-Clazz.defineMethod (c$, "getTopComponent", \r
-function () {\r
-return this.leftComponent;\r
-});\r
-Clazz.defineMethod (c$, "setRightComponent", \r
-function (comp) {\r
-if (comp == null) {\r
-if (this.rightComponent != null) {\r
-this.remove (this.rightComponent);\r
-this.rightComponent = null;\r
-}} else {\r
-this.add (comp, "right");\r
-}}, "java.awt.Component");\r
-Clazz.defineMethod (c$, "getRightComponent", \r
-function () {\r
-return this.rightComponent;\r
-});\r
-Clazz.defineMethod (c$, "setBottomComponent", \r
-function (comp) {\r
-this.setRightComponent (comp);\r
-}, "java.awt.Component");\r
-Clazz.defineMethod (c$, "getBottomComponent", \r
-function () {\r
-return this.rightComponent;\r
-});\r
-Clazz.defineMethod (c$, "setOneTouchExpandable", \r
-function (newValue) {\r
-var oldValue = this.oneTouchExpandable;\r
-this.oneTouchExpandable = newValue;\r
-this.oneTouchExpandableSet = true;\r
-this.firePropertyChangeBool ("oneTouchExpandable", oldValue, newValue);\r
-this.repaint ();\r
-}, "~B");\r
-Clazz.defineMethod (c$, "isOneTouchExpandable", \r
-function () {\r
-return this.oneTouchExpandable;\r
-});\r
-Clazz.defineMethod (c$, "setLastDividerLocation", \r
-function (newLastLocation) {\r
-var oldLocation = this.lastDividerLocation;\r
-this.lastDividerLocation = newLastLocation;\r
-this.firePropertyChangeInt ("lastDividerLocation", oldLocation, newLastLocation);\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getLastDividerLocation", \r
-function () {\r
-return this.lastDividerLocation;\r
-});\r
-Clazz.defineMethod (c$, "setOrientation", \r
-function (orientation) {\r
-if ((orientation != 0) && (orientation != 1)) {\r
-throw  new IllegalArgumentException ("JSplitPane: orientation must be one of JSplitPane.VERTICAL_SPLIT or JSplitPane.HORIZONTAL_SPLIT");\r
-}var oldOrientation = this.orientation;\r
-this.orientation = orientation;\r
-this.firePropertyChangeInt ("orientation", oldOrientation, orientation);\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getOrientation", \r
-function () {\r
-return this.orientation;\r
-});\r
-Clazz.defineMethod (c$, "setContinuousLayout", \r
-function (newContinuousLayout) {\r
-var oldCD = this.continuousLayout;\r
-this.continuousLayout = newContinuousLayout;\r
-this.firePropertyChangeBool ("continuousLayout", oldCD, newContinuousLayout);\r
-}, "~B");\r
-Clazz.defineMethod (c$, "isContinuousLayout", \r
-function () {\r
-return this.continuousLayout;\r
-});\r
-Clazz.defineMethod (c$, "setResizeWeight", \r
-function (value) {\r
-if (value < 0 || value > 1) {\r
-throw  new IllegalArgumentException ("JSplitPane weight must be between 0 and 1");\r
-}var oldWeight = this.resizeWeight;\r
-this.resizeWeight = value;\r
-this.firePropertyChangeObject ("resizeWeight", new Double (oldWeight), new Double (value));\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getResizeWeight", \r
-function () {\r
-return this.resizeWeight;\r
-});\r
-Clazz.defineMethod (c$, "resetToPreferredSizes", \r
-function () {\r
-var ui = this.getUI ();\r
-if (ui != null) {\r
-ui.resetToPreferredSizes (this);\r
-}});\r
-Clazz.defineMethod (c$, "setDividerLocation", \r
-function (proportionalLocation) {\r
-if (proportionalLocation < 0.0 || proportionalLocation > 1.0) {\r
-throw  new IllegalArgumentException ("proportional location must be between 0.0 and 1.0.");\r
-}if (this.getOrientation () == 0) {\r
-this.setDividerLocation (Clazz.doubleToInt ((this.getHeight () - this.getDividerSize ()) * proportionalLocation));\r
-} else {\r
-this.setDividerLocation (Clazz.doubleToInt ((this.getWidth () - this.getDividerSize ()) * proportionalLocation));\r
-}}, "~N");\r
-Clazz.defineMethod (c$, "setDividerLocation", \r
-function (location) {\r
-var oldValue = this.dividerLocation;\r
-this.dividerLocation = location;\r
-var ui = this.getUI ();\r
-if (ui != null) {\r
-ui.setDividerLocation (this, location);\r
-}this.firePropertyChangeInt ("dividerLocation", oldValue, location);\r
-this.setLastDividerLocation (oldValue);\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getDividerLocation", \r
-function () {\r
-return this.dividerLocation;\r
-});\r
-Clazz.defineMethod (c$, "getMinimumDividerLocation", \r
-function () {\r
-var ui = this.getUI ();\r
-if (ui != null) {\r
-return ui.getMinimumDividerLocation (this);\r
-}return -1;\r
-});\r
-Clazz.defineMethod (c$, "getMaximumDividerLocation", \r
-function () {\r
-var ui = this.getUI ();\r
-if (ui != null) {\r
-return ui.getMaximumDividerLocation (this);\r
-}return -1;\r
-});\r
-Clazz.defineMethod (c$, "remove", \r
-function (component) {\r
-if (component === this.leftComponent) {\r
-this.leftComponent = null;\r
-} else if (component === this.rightComponent) {\r
-this.rightComponent = null;\r
-}Clazz.superCall (this, javax.swing.JSplitPane, "remove", [component]);\r
-this.revalidate ();\r
-this.repaint ();\r
-}, "java.awt.Component");\r
-Clazz.defineMethod (c$, "remove", \r
-function (index) {\r
-var comp = this.getComponent (index);\r
-if (comp === this.leftComponent) {\r
-this.leftComponent = null;\r
-} else if (comp === this.rightComponent) {\r
-this.rightComponent = null;\r
-}Clazz.superCall (this, javax.swing.JSplitPane, "remove", [index]);\r
-this.revalidate ();\r
-this.repaint ();\r
-}, "~N");\r
-Clazz.defineMethod (c$, "removeAll", \r
-function () {\r
-this.leftComponent = this.rightComponent = null;\r
-Clazz.superCall (this, javax.swing.JSplitPane, "removeAll", []);\r
-this.revalidate ();\r
-this.repaint ();\r
-});\r
-Clazz.overrideMethod (c$, "isValidateRoot", \r
-function () {\r
-return true;\r
-});\r
-Clazz.overrideMethod (c$, "addImpl", \r
-function (comp, constraints, index) {\r
-var toRemove;\r
-if (constraints != null && !(Clazz.instanceOf (constraints, String))) {\r
-throw  new IllegalArgumentException ("cannot add to layout: constraint must be a string (or null)");\r
-}if (constraints == null) {\r
-if (this.getLeftComponent () == null) {\r
-constraints = "left";\r
-} else if (this.getRightComponent () == null) {\r
-constraints = "right";\r
-}}if (constraints != null && (constraints.equals ("left") || constraints.equals ("top"))) {\r
-toRemove = this.getLeftComponent ();\r
-if (toRemove != null) {\r
-this.remove (toRemove);\r
-}this.leftComponent = comp;\r
-index = -1;\r
-} else if (constraints != null && (constraints.equals ("right") || constraints.equals ("bottom"))) {\r
-toRemove = this.getRightComponent ();\r
-if (toRemove != null) {\r
-this.remove (toRemove);\r
-}this.rightComponent = comp;\r
-index = -1;\r
-} else if (constraints != null && constraints.equals ("divider")) {\r
-index = -1;\r
-}this.addImplSAEM (comp, constraints, index);\r
-this.revalidate ();\r
-this.repaint ();\r
-return comp;\r
-}, "java.awt.Component,~O,~N");\r
-Clazz.defineMethod (c$, "paintChildren", \r
-function (g) {\r
-Clazz.superCall (this, javax.swing.JSplitPane, "paintChildren", [g]);\r
-var ui = this.getUI ();\r
-if (ui != null) {\r
-var tempG = g.createSwingJS ();\r
-ui.finishedPaintingChildren (this, tempG);\r
-tempG.dispose ();\r
-}}, "java.awt.Graphics");\r
-Clazz.defineMethod (c$, "setUIProperty", \r
-function (propertyName, value) {\r
-if (propertyName === "dividerSize") {\r
-if (!this.dividerSizeSet) {\r
-this.setDividerSize ((value).intValue ());\r
-this.dividerSizeSet = false;\r
-}} else if (propertyName === "oneTouchExpandable") {\r
-if (!this.oneTouchExpandableSet) {\r
-this.setOneTouchExpandable ((value).booleanValue ());\r
-this.oneTouchExpandableSet = false;\r
-}} else {\r
-Clazz.superCall (this, javax.swing.JSplitPane, "setUIProperty", [propertyName, value]);\r
-}}, "~S,~O");\r
-Clazz.defineMethod (c$, "paramString", \r
-function () {\r
-var orientationString = (this.orientation == 1 ? "HORIZONTAL_SPLIT" : "VERTICAL_SPLIT");\r
-var continuousLayoutString = (this.continuousLayout ? "true" : "false");\r
-var oneTouchExpandableString = (this.oneTouchExpandable ? "true" : "false");\r
-return Clazz.superCall (this, javax.swing.JSplitPane, "paramString", []) + ",continuousLayout=" + continuousLayoutString + ",dividerSize=" + this.dividerSize + ",lastDividerLocation=" + this.lastDividerLocation + ",oneTouchExpandable=" + oneTouchExpandableString + ",orientation=" + orientationString;\r
-});\r
-Clazz.defineStatics (c$,\r
-"$uiClassID", "SplitPaneUI",\r
-"VERTICAL_SPLIT", 0,\r
-"HORIZONTAL_SPLIT", 1,\r
-"LEFT", "left",\r
-"RIGHT", "right",\r
-"TOP", "top",\r
-"BOTTOM", "bottom",\r
-"DIVIDER", "divider",\r
-"ORIENTATION_PROPERTY", "orientation",\r
-"CONTINUOUS_LAYOUT_PROPERTY", "continuousLayout",\r
-"DIVIDER_SIZE_PROPERTY", "dividerSize",\r
-"ONE_TOUCH_EXPANDABLE_PROPERTY", "oneTouchExpandable",\r
-"LAST_DIVIDER_LOCATION_PROPERTY", "lastDividerLocation",\r
-"DIVIDER_LOCATION_PROPERTY", "dividerLocation",\r
-"RESIZE_WEIGHT_PROPERTY", "resizeWeight");\r
-});\r
+Clazz.declarePackage ("javax.swing");
+Clazz.load (["javax.swing.JComponent"], "javax.swing.JSplitPane", ["java.lang.Boolean", "$.IllegalArgumentException", "javax.swing.JButton", "$.UIManager"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.orientation = 0;
+this.continuousLayout = false;
+this.leftComponent = null;
+this.rightComponent = null;
+this.dividerSize = 0;
+this.dividerSizeSet = false;
+this.oneTouchExpandable = false;
+this.oneTouchExpandableSet = false;
+this.lastDividerLocation = 0;
+this.resizeWeight = 0;
+this.dividerLocation = 0;
+Clazz.instantialize (this, arguments);
+}, javax.swing, "JSplitPane", javax.swing.JComponent);
+Clazz.makeConstructor (c$, 
+function () {
+this.construct (1, false,  new javax.swing.JButton (javax.swing.UIManager.getString ("SplitPane.leftButtonText")),  new javax.swing.JButton (javax.swing.UIManager.getString ("SplitPane.rightButtonText")));
+});
+Clazz.makeConstructor (c$, 
+function (newOrientation) {
+this.construct (newOrientation, false);
+}, "~N");
+Clazz.makeConstructor (c$, 
+function (newOrientation, newContinuousLayout) {
+this.construct (newOrientation, newContinuousLayout, null, null);
+}, "~N,~B");
+Clazz.makeConstructor (c$, 
+function (newOrientation, newLeftComponent, newRightComponent) {
+this.construct (newOrientation, false, newLeftComponent, newRightComponent);
+}, "~N,java.awt.Component,java.awt.Component");
+Clazz.makeConstructor (c$, 
+function (newOrientation, newContinuousLayout, newLeftComponent, newRightComponent) {
+Clazz.superConstructor (this, javax.swing.JSplitPane);
+this.dividerLocation = -1;
+this.setLayout (null);
+this.setUIProperty ("opaque", Boolean.TRUE);
+this.orientation = newOrientation;
+if (this.orientation != 1 && this.orientation != 0) throw  new IllegalArgumentException ("cannot create JSplitPane, orientation must be one of JSplitPane.HORIZONTAL_SPLIT or JSplitPane.VERTICAL_SPLIT");
+this.continuousLayout = newContinuousLayout;
+if (newLeftComponent != null) this.setLeftComponent (newLeftComponent);
+if (newRightComponent != null) this.setRightComponent (newRightComponent);
+this.updateUI ();
+}, "~N,~B,java.awt.Component,java.awt.Component");
+Clazz.defineMethod (c$, "setUI", 
+function (ui) {
+if (this.ui !== ui) {
+Clazz.superCall (this, javax.swing.JSplitPane, "setUI", [ui]);
+this.revalidate ();
+}}, "javax.swing.plaf.SplitPaneUI");
+Clazz.overrideMethod (c$, "getUI", 
+function () {
+return this.ui;
+});
+Clazz.overrideMethod (c$, "updateUI", 
+function () {
+this.setUI (javax.swing.UIManager.getUI (this));
+this.revalidate ();
+});
+Clazz.overrideMethod (c$, "getUIClassID", 
+function () {
+return "SplitPaneUI";
+});
+Clazz.defineMethod (c$, "setDividerSize", 
+function (newSize) {
+var oldSize = this.dividerSize;
+this.dividerSizeSet = true;
+if (oldSize != newSize) {
+this.dividerSize = newSize;
+this.firePropertyChangeInt ("dividerSize", oldSize, newSize);
+}}, "~N");
+Clazz.defineMethod (c$, "getDividerSize", 
+function () {
+return this.dividerSize;
+});
+Clazz.defineMethod (c$, "setLeftComponent", 
+function (comp) {
+if (comp == null) {
+if (this.leftComponent != null) {
+this.remove (this.leftComponent);
+this.leftComponent = null;
+}} else {
+this.add (comp, "left");
+}}, "java.awt.Component");
+Clazz.defineMethod (c$, "getLeftComponent", 
+function () {
+return this.leftComponent;
+});
+Clazz.defineMethod (c$, "setTopComponent", 
+function (comp) {
+this.setLeftComponent (comp);
+}, "java.awt.Component");
+Clazz.defineMethod (c$, "getTopComponent", 
+function () {
+return this.leftComponent;
+});
+Clazz.defineMethod (c$, "setRightComponent", 
+function (comp) {
+if (comp == null) {
+if (this.rightComponent != null) {
+this.remove (this.rightComponent);
+this.rightComponent = null;
+}} else {
+this.add (comp, "right");
+}}, "java.awt.Component");
+Clazz.defineMethod (c$, "getRightComponent", 
+function () {
+return this.rightComponent;
+});
+Clazz.defineMethod (c$, "setBottomComponent", 
+function (comp) {
+this.setRightComponent (comp);
+}, "java.awt.Component");
+Clazz.defineMethod (c$, "getBottomComponent", 
+function () {
+return this.rightComponent;
+});
+Clazz.defineMethod (c$, "setOneTouchExpandable", 
+function (newValue) {
+var oldValue = this.oneTouchExpandable;
+this.oneTouchExpandable = newValue;
+this.oneTouchExpandableSet = true;
+this.firePropertyChangeBool ("oneTouchExpandable", oldValue, newValue);
+this.repaint ();
+}, "~B");
+Clazz.defineMethod (c$, "isOneTouchExpandable", 
+function () {
+return this.oneTouchExpandable;
+});
+Clazz.defineMethod (c$, "setLastDividerLocation", 
+function (newLastLocation) {
+var oldLocation = this.lastDividerLocation;
+this.lastDividerLocation = newLastLocation;
+this.firePropertyChangeInt ("lastDividerLocation", oldLocation, newLastLocation);
+}, "~N");
+Clazz.defineMethod (c$, "getLastDividerLocation", 
+function () {
+return this.lastDividerLocation;
+});
+Clazz.defineMethod (c$, "setOrientation", 
+function (orientation) {
+if ((orientation != 0) && (orientation != 1)) {
+throw  new IllegalArgumentException ("JSplitPane: orientation must be one of JSplitPane.VERTICAL_SPLIT or JSplitPane.HORIZONTAL_SPLIT");
+}var oldOrientation = this.orientation;
+this.orientation = orientation;
+this.firePropertyChangeInt ("orientation", oldOrientation, orientation);
+}, "~N");
+Clazz.defineMethod (c$, "getOrientation", 
+function () {
+return this.orientation;
+});
+Clazz.defineMethod (c$, "setContinuousLayout", 
+function (newContinuousLayout) {
+var oldCD = this.continuousLayout;
+this.continuousLayout = newContinuousLayout;
+this.firePropertyChangeBool ("continuousLayout", oldCD, newContinuousLayout);
+}, "~B");
+Clazz.defineMethod (c$, "isContinuousLayout", 
+function () {
+return this.continuousLayout;
+});
+Clazz.defineMethod (c$, "setResizeWeight", 
+function (value) {
+if (value < 0 || value > 1) {
+throw  new IllegalArgumentException ("JSplitPane weight must be between 0 and 1");
+}var oldWeight = this.resizeWeight;
+this.resizeWeight = value;
+this.firePropertyChangeObject ("resizeWeight", new Double (oldWeight), new Double (value));
+}, "~N");
+Clazz.defineMethod (c$, "getResizeWeight", 
+function () {
+return this.resizeWeight;
+});
+Clazz.defineMethod (c$, "resetToPreferredSizes", 
+function () {
+var ui = this.getUI ();
+if (ui != null) {
+ui.resetToPreferredSizes (this);
+}});
+Clazz.defineMethod (c$, "setDividerLocation", 
+function (proportionalLocation) {
+if (proportionalLocation < 0.0 || proportionalLocation > 1.0) {
+throw  new IllegalArgumentException ("proportional location must be between 0.0 and 1.0.");
+}if (this.getOrientation () == 0) {
+this.setDividerLocation (Clazz.doubleToInt ((this.getHeight () - this.getDividerSize ()) * proportionalLocation));
+} else {
+this.setDividerLocation (Clazz.doubleToInt ((this.getWidth () - this.getDividerSize ()) * proportionalLocation));
+}}, "~N");
+Clazz.defineMethod (c$, "setDividerLocation", 
+function (location) {
+var oldValue = this.dividerLocation;
+this.dividerLocation = location;
+var ui = this.getUI ();
+if (ui != null) {
+ui.setDividerLocation (this, location);
+}this.firePropertyChangeInt ("dividerLocation", oldValue, location);
+this.setLastDividerLocation (oldValue);
+}, "~N");
+Clazz.defineMethod (c$, "getDividerLocation", 
+function () {
+return this.dividerLocation;
+});
+Clazz.defineMethod (c$, "getMinimumDividerLocation", 
+function () {
+var ui = this.getUI ();
+if (ui != null) {
+return ui.getMinimumDividerLocation (this);
+}return -1;
+});
+Clazz.defineMethod (c$, "getMaximumDividerLocation", 
+function () {
+var ui = this.getUI ();
+if (ui != null) {
+return ui.getMaximumDividerLocation (this);
+}return -1;
+});
+Clazz.defineMethod (c$, "remove", 
+function (component) {
+if (component === this.leftComponent) {
+this.leftComponent = null;
+} else if (component === this.rightComponent) {
+this.rightComponent = null;
+}Clazz.superCall (this, javax.swing.JSplitPane, "remove", [component]);
+this.revalidate ();
+this.repaint ();
+}, "java.awt.Component");
+Clazz.defineMethod (c$, "remove", 
+function (index) {
+var comp = this.getComponent (index);
+if (comp === this.leftComponent) {
+this.leftComponent = null;
+} else if (comp === this.rightComponent) {
+this.rightComponent = null;
+}Clazz.superCall (this, javax.swing.JSplitPane, "remove", [index]);
+this.revalidate ();
+this.repaint ();
+}, "~N");
+Clazz.defineMethod (c$, "removeAll", 
+function () {
+this.leftComponent = this.rightComponent = null;
+Clazz.superCall (this, javax.swing.JSplitPane, "removeAll", []);
+this.revalidate ();
+this.repaint ();
+});
+Clazz.overrideMethod (c$, "isValidateRoot", 
+function () {
+return true;
+});
+Clazz.overrideMethod (c$, "addImpl", 
+function (comp, constraints, index) {
+var toRemove;
+if (constraints != null && !(Clazz.instanceOf (constraints, String))) {
+throw  new IllegalArgumentException ("cannot add to layout: constraint must be a string (or null)");
+}if (constraints == null) {
+if (this.getLeftComponent () == null) {
+constraints = "left";
+} else if (this.getRightComponent () == null) {
+constraints = "right";
+}}if (constraints != null && (constraints.equals ("left") || constraints.equals ("top"))) {
+toRemove = this.getLeftComponent ();
+if (toRemove != null) {
+this.remove (toRemove);
+}this.leftComponent = comp;
+index = -1;
+} else if (constraints != null && (constraints.equals ("right") || constraints.equals ("bottom"))) {
+toRemove = this.getRightComponent ();
+if (toRemove != null) {
+this.remove (toRemove);
+}this.rightComponent = comp;
+index = -1;
+} else if (constraints != null && constraints.equals ("divider")) {
+index = -1;
+}this.addImplSAEM (comp, constraints, index);
+this.revalidate ();
+this.repaint ();
+return comp;
+}, "java.awt.Component,~O,~N");
+Clazz.defineMethod (c$, "paintChildren", 
+function (g) {
+Clazz.superCall (this, javax.swing.JSplitPane, "paintChildren", [g]);
+var ui = this.getUI ();
+if (ui != null) {
+var tempG = g.createSwingJS ();
+ui.finishedPaintingChildren (this, tempG);
+tempG.dispose ();
+}}, "java.awt.Graphics");
+Clazz.defineMethod (c$, "setUIProperty", 
+function (propertyName, value) {
+if (propertyName === "dividerSize") {
+if (!this.dividerSizeSet) {
+this.setDividerSize ((value).intValue ());
+this.dividerSizeSet = false;
+}} else if (propertyName === "oneTouchExpandable") {
+if (!this.oneTouchExpandableSet) {
+this.setOneTouchExpandable ((value).booleanValue ());
+this.oneTouchExpandableSet = false;
+}} else {
+Clazz.superCall (this, javax.swing.JSplitPane, "setUIProperty", [propertyName, value]);
+}}, "~S,~O");
+Clazz.defineMethod (c$, "paramString", 
+function () {
+var orientationString = (this.orientation == 1 ? "HORIZONTAL_SPLIT" : "VERTICAL_SPLIT");
+var continuousLayoutString = (this.continuousLayout ? "true" : "false");
+var oneTouchExpandableString = (this.oneTouchExpandable ? "true" : "false");
+return Clazz.superCall (this, javax.swing.JSplitPane, "paramString", []) + ",continuousLayout=" + continuousLayoutString + ",dividerSize=" + this.dividerSize + ",lastDividerLocation=" + this.lastDividerLocation + ",oneTouchExpandable=" + oneTouchExpandableString + ",orientation=" + orientationString;
+});
+Clazz.defineStatics (c$,
+"$uiClassID", "SplitPaneUI",
+"VERTICAL_SPLIT", 0,
+"HORIZONTAL_SPLIT", 1,
+"LEFT", "left",
+"RIGHT", "right",
+"TOP", "top",
+"BOTTOM", "bottom",
+"DIVIDER", "divider",
+"ORIENTATION_PROPERTY", "orientation",
+"CONTINUOUS_LAYOUT_PROPERTY", "continuousLayout",
+"DIVIDER_SIZE_PROPERTY", "dividerSize",
+"ONE_TOUCH_EXPANDABLE_PROPERTY", "oneTouchExpandable",
+"LAST_DIVIDER_LOCATION_PROPERTY", "lastDividerLocation",
+"DIVIDER_LOCATION_PROPERTY", "dividerLocation",
+"RESIZE_WEIGHT_PROPERTY", "resizeWeight");
+});