/** * Turn continuous layout on/off. * * @param continuousLayout true or false. */ public void setContinuousLayout(boolean continuousLayout) { boolean oldCD = _continuousLayout; _continuousLayout = continuousLayout; firePropertyChange(CONTINUOUS_LAYOUT_PROPERTY, oldCD, continuousLayout); }
/** * Enables heavyweight components. The difference is the divider. If true, the divider will be heavyweight divider. * Otherwise it will use lightweight divider. * * @param heavyweightComponentEnabled true to enable the usage of heavyweight components. */ public void setHeavyweightComponentEnabled(boolean heavyweightComponentEnabled) { boolean old = _heavyweightComponentEnabled; if (_heavyweightComponentEnabled != heavyweightComponentEnabled) { _heavyweightComponentEnabled = heavyweightComponentEnabled; firePropertyChange(PROPERTY_HEAVYWEIGHT_COMPONENT_ENABLED, old, _heavyweightComponentEnabled); } }
/** * Sets the visibility of gripper. * * @param showGripper true to show gripper */ public void setShowGripper(boolean showGripper) { boolean oldShowGripper = _showGripper; if (oldShowGripper != showGripper) { _showGripper = showGripper; firePropertyChange(GRIPPER_PROPERTY, oldShowGripper, _showGripper); } }
/** * Sets the size of the divider. * * @param newSize an integer giving the size of the divider in pixels */ public void setDividerSize(int newSize) { int oldSize = _dividerSize; if (oldSize != newSize) { _dividerSize = newSize; firePropertyChange(DIVIDER_SIZE_PROPERTY, oldSize, newSize); invalidate(); } }
/** * Sets this split pane to lay its constituents out proportionally if the given flag is true, or by preferred sizes * otherwise. * * @param proportionalLayout true or false. */ public void setProportionalLayout(boolean proportionalLayout) { if (proportionalLayout == _proportionalLayout) return; _proportionalLayout = proportionalLayout; revalidate(); firePropertyChange(PROPORTIONAL_LAYOUT_PROPERTY, !proportionalLayout, proportionalLayout); if (!proportionalLayout) setProportions(null); }
((JideBoxLayout) layoutManager).setResetWhenInvalidate(reset); firePropertyChange(PROPORTIONS_PROPERTY, oldProportions, proportions);
doLayout(); firePropertyChange(ORIENTATION_PROPERTY, oldOrientation, orientation);
((JideSplitPane) _target).firePropertyChange(JideSplitPane.PROPERTY_DIVIDER_LOCATION, oldLocation, location);
firePropertyChange(ONE_TOUCH_EXPANDABLE_PROPERTY, oldValue, _oneTouchExpandable); revalidate(); repaint();