Fields Summary |
---|
protected static final String | NON_CONTINUOUS_DIVIDERThe divider used for non-continuous layout is added to the split pane
with this object. |
protected static int | KEYBOARD_DIVIDER_MOVE_OFFSETHow far (relative) the divider does move when it is moved around by
the cursor keys on the keyboard. |
protected JSplitPane | splitPaneJSplitPane instance this instance is providing
the look and feel for. |
protected BasicHorizontalLayoutManager | layoutManagerLayoutManager that is created and placed into the split pane. |
protected BasicSplitPaneDivider | dividerInstance of the divider for this JSplitPane. |
protected PropertyChangeListener | propertyChangeListenerInstance of the PropertyChangeListener for this JSplitPane. |
protected FocusListener | focusListenerInstance of the FocusListener for this JSplitPane. |
private Handler | handler |
private static Set | managingFocusForwardTraversalKeysKeys to use for forward focus traversal when the JComponent is
managing focus. |
private static Set | managingFocusBackwardTraversalKeysKeys to use for backward focus traversal when the JComponent is
managing focus. |
protected int | dividerSizeThe size of the divider while the dragging session is valid. |
protected Component | nonContinuousLayoutDividerInstance for the shadow of the divider when non continuous layout
is being used. |
protected boolean | draggingHWSet to true in startDragging if any of the children
(not including the nonContinuousLayoutDivider) are heavy weights. |
protected int | beginDragDividerLocationLocation of the divider when the dragging session began. |
protected KeyStroke | upKeyAs of Java 2 platform v1.3 this previously undocumented field is no
longer used.
Key bindings are now defined by the LookAndFeel, please refer to
the key bindings specification for further details. |
protected KeyStroke | downKeyAs of Java 2 platform v1.3 this previously undocumented field is no
longer used.
Key bindings are now defined by the LookAndFeel, please refer to
the key bindings specification for further details. |
protected KeyStroke | leftKeyAs of Java 2 platform v1.3 this previously undocumented field is no
longer used.
Key bindings are now defined by the LookAndFeel, please refer to
the key bindings specification for further details. |
protected KeyStroke | rightKeyAs of Java 2 platform v1.3 this previously undocumented field is no
longer used.
Key bindings are now defined by the LookAndFeel, please refer to
the key bindings specification for further details. |
protected KeyStroke | homeKeyAs of Java 2 platform v1.3 this previously undocumented field is no
longer used.
Key bindings are now defined by the LookAndFeel, please refer to
the key bindings specification for further details. |
protected KeyStroke | endKeyAs of Java 2 platform v1.3 this previously undocumented field is no
longer used.
Key bindings are now defined by the LookAndFeel, please refer to
the key bindings specification for further details. |
protected KeyStroke | dividerResizeToggleKeyAs of Java 2 platform v1.3 this previously undocumented field is no
longer used.
Key bindings are now defined by the LookAndFeel, please refer to
the key bindings specification for further details. |
protected ActionListener | keyboardUpLeftListenerAs of Java 2 platform v1.3 this previously undocumented field is no
longer used.
Key bindings are now defined by the LookAndFeel, please refer to
the key bindings specification for further details. |
protected ActionListener | keyboardDownRightListenerAs of Java 2 platform v1.3 this previously undocumented field is no
longer used.
Key bindings are now defined by the LookAndFeel, please refer to
the key bindings specification for further details. |
protected ActionListener | keyboardHomeListenerAs of Java 2 platform v1.3 this previously undocumented field is no
longer used.
Key bindings are now defined by the LookAndFeel, please refer to
the key bindings specification for further details. |
protected ActionListener | keyboardEndListenerAs of Java 2 platform v1.3 this previously undocumented field is no
longer used.
Key bindings are now defined by the LookAndFeel, please refer to
the key bindings specification for further details. |
protected ActionListener | keyboardResizeToggleListenerAs of Java 2 platform v1.3 this previously undocumented field is no
longer used.
Key bindings are now defined by the LookAndFeel, please refer to
the key bindings specification for further details. |
private int | orientation |
private int | lastDragLocation |
private boolean | continuousLayout |
private boolean | dividerKeyboardResize |
private boolean | dividerLocationIsSet |
private Color | dividerDraggingColor |
private boolean | rememberPaneSizes |
private boolean | keepHidden |
boolean | paintedIndicates that we have painted once. |
boolean | ignoreDividerLocationChangeIf true, setDividerLocation does nothing. |
Methods Summary |
---|
private void | addHeavyweightDivider()
if(nonContinuousLayoutDivider != null && splitPane != null) {
/* Needs to remove all the components and re-add them! YECK! */
// This is all done so that the nonContinuousLayoutDivider will
// be drawn on top of the other components, without this, one
// of the heavyweights will draw over the divider!
Component leftC = splitPane.getLeftComponent();
Component rightC = splitPane.getRightComponent();
int lastLocation = splitPane.
getDividerLocation();
if(leftC != null)
splitPane.setLeftComponent(null);
if(rightC != null)
splitPane.setRightComponent(null);
splitPane.remove(divider);
splitPane.add(nonContinuousLayoutDivider, BasicSplitPaneUI.
NON_CONTINUOUS_DIVIDER,
splitPane.getComponentCount());
splitPane.setLeftComponent(leftC);
splitPane.setRightComponent(rightC);
splitPane.add(divider, JSplitPane.DIVIDER);
if(rememberPaneSizes) {
splitPane.setDividerLocation(lastLocation);
}
}
|
public javax.swing.plaf.basic.BasicSplitPaneDivider | createDefaultDivider()Creates the default divider.
return new BasicSplitPaneDivider(this);
|
protected java.awt.Component | createDefaultNonContinuousLayoutDivider()Returns the default non continuous layout divider, which is an
instanceof Canvas that fills the background in dark gray.
return new Canvas() {
public void paint(Graphics g) {
if(!isContinuousLayout() && getLastDragLocation() != -1) {
Dimension size = splitPane.getSize();
g.setColor(dividerDraggingColor);
if(orientation == JSplitPane.HORIZONTAL_SPLIT) {
g.fillRect(0, 0, dividerSize - 1, size.height - 1);
} else {
g.fillRect(0, 0, size.width - 1, dividerSize - 1);
}
}
}
};
|
protected java.awt.event.FocusListener | createFocusListener()Creates a FocusListener for the JSplitPane UI.
return getHandler();
|
protected java.awt.event.ActionListener | createKeyboardDownRightListener()As of Java 2 platform v1.3 this method is no
longer used. Subclassers previously using this method should
instead create an Action wrapping the ActionListener, and register
that Action by overriding installKeyboardActions and
placing the Action in the SplitPane's ActionMap. Please refer to
the key bindings specification for further details.
Creates a ActionListener for the JSplitPane UI that listens for
specific key presses.
return new KeyboardDownRightHandler();
|
protected java.awt.event.ActionListener | createKeyboardEndListener()As of Java 2 platform v1.3 this method is no
longer used. Subclassers previously using this method should
instead create an Action wrapping the ActionListener, and register
that Action by overriding installKeyboardActions and
placing the Action in the SplitPane's ActionMap. Please refer to
the key bindings specification for further details.
Creates a ActionListener for the JSplitPane UI that listens for
specific key presses.
return new KeyboardEndHandler();
|
protected java.awt.event.ActionListener | createKeyboardHomeListener()As of Java 2 platform v1.3 this method is no
longer used. Subclassers previously using this method should
instead create an Action wrapping the ActionListener, and register
that Action by overriding installKeyboardActions and
placing the Action in the SplitPane's ActionMap. Please refer to
the key bindings specification for further details.
Creates a ActionListener for the JSplitPane UI that listens for
specific key presses.
return new KeyboardHomeHandler();
|
protected java.awt.event.ActionListener | createKeyboardResizeToggleListener()As of Java 2 platform v1.3 this method is no
longer used. Subclassers previously using this method should
instead create an Action wrapping the ActionListener, and register
that Action by overriding installKeyboardActions and
placing the Action in the SplitPane's ActionMap. Please refer to
the key bindings specification for further details.
Creates a ActionListener for the JSplitPane UI that listens for
specific key presses.
return new KeyboardResizeToggleHandler();
|
protected java.awt.event.ActionListener | createKeyboardUpLeftListener()As of Java 2 platform v1.3 this method is no
longer used. Subclassers previously using this method should
instead create an Action wrapping the ActionListener, and register
that Action by overriding installKeyboardActions and
placing the Action in the SplitPane's ActionMap. Please refer to
the key bindings specification for further details.
Creates a ActionListener for the JSplitPane UI that listens for
specific key presses.
return new KeyboardUpLeftHandler();
|
protected java.beans.PropertyChangeListener | createPropertyChangeListener()Creates a PropertyChangeListener for the JSplitPane UI.
return getHandler();
|
public static javax.swing.plaf.ComponentUI | createUI(javax.swing.JComponent x)Creates a new BasicSplitPaneUI instance
return new BasicSplitPaneUI();
|
protected void | dragDividerTo(int location)Messaged during a dragging session to move the divider to the
passed in location. If continuousLayout is true the location is
reset and the splitPane validated.
if(getLastDragLocation() != location) {
if(isContinuousLayout()) {
splitPane.setDividerLocation(location);
setLastDragLocation(location);
} else {
int lastLoc = getLastDragLocation();
setLastDragLocation(location);
if(orientation == JSplitPane.HORIZONTAL_SPLIT) {
if(draggingHW) {
nonContinuousLayoutDivider.setLocation(
getLastDragLocation(), 0);
} else {
int splitHeight = splitPane.getHeight();
splitPane.repaint(lastLoc, 0, dividerSize,
splitHeight);
splitPane.repaint(location, 0, dividerSize,
splitHeight);
}
} else {
if(draggingHW) {
nonContinuousLayoutDivider.setLocation(0,
getLastDragLocation());
} else {
int splitWidth = splitPane.getWidth();
splitPane.repaint(0, lastLoc, splitWidth,
dividerSize);
splitPane.repaint(0, location, splitWidth,
dividerSize);
}
}
}
}
|
protected void | finishDraggingTo(int location)Messaged to finish the dragging session. If not continuous display
the dividers location will be reset.
dragDividerTo(location);
setLastDragLocation(-1);
if(!isContinuousLayout()) {
Component leftC = splitPane.getLeftComponent();
Rectangle leftBounds = leftC.getBounds();
if (draggingHW) {
if(orientation == JSplitPane.HORIZONTAL_SPLIT) {
nonContinuousLayoutDivider.setLocation(-dividerSize, 0);
}
else {
nonContinuousLayoutDivider.setLocation(0, -dividerSize);
}
splitPane.remove(nonContinuousLayoutDivider);
}
splitPane.setDividerLocation(location);
}
|
public void | finishedPaintingChildren(javax.swing.JSplitPane jc, java.awt.Graphics g)Messaged after the JSplitPane the receiver is providing the look
and feel for paints its children.
if(jc == splitPane && getLastDragLocation() != -1 &&
!isContinuousLayout() && !draggingHW) {
Dimension size = splitPane.getSize();
g.setColor(dividerDraggingColor);
if(orientation == JSplitPane.HORIZONTAL_SPLIT) {
g.fillRect(getLastDragLocation(), 0, dividerSize - 1,
size.height - 1);
} else {
g.fillRect(0, lastDragLocation, size.width - 1,
dividerSize - 1);
}
}
|
public javax.swing.plaf.basic.BasicSplitPaneDivider | getDivider()Returns the divider between the top Components.
return divider;
|
protected int | getDividerBorderSize()As of Java 2 platform v1.3 this method is no longer used. Instead
you should set the border on the divider.
Returns the width of one side of the divider border.
return 1;
|
public int | getDividerLocation(javax.swing.JSplitPane jc)Returns the location of the divider, which may differ from what
the splitpane thinks the location of the divider is.
if(orientation == JSplitPane.HORIZONTAL_SPLIT)
return divider.getLocation().x;
return divider.getLocation().y;
|
private javax.swing.plaf.basic.BasicSplitPaneUI$Handler | getHandler()
if (handler == null) {
handler = new Handler();
}
return handler;
|
javax.swing.InputMap | getInputMap(int condition)
if (condition == JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT) {
return (InputMap)DefaultLookup.get(splitPane, this,
"SplitPane.ancestorInputMap");
}
return null;
|
public java.awt.Insets | getInsets(javax.swing.JComponent jc)Returns the insets. The insets are returned from the border insets
of the current border.
return null;
|
private boolean | getKeepHidden()The value returned indicates if one of the splitpane sides is expanded.
return keepHidden;
|
int | getKeyboardMoveIncrement()
return KEYBOARD_DIVIDER_MOVE_OFFSET;
|
public int | getLastDragLocation()Returns the last drag location of the JSplitPane.
return lastDragLocation;
|
public int | getMaximumDividerLocation(javax.swing.JSplitPane jc)Gets the maximum location of the divider.
Dimension splitPaneSize = splitPane.getSize();
int maxLoc = 0;
Component rightC = splitPane.getRightComponent();
if (rightC != null) {
Insets insets = splitPane.getInsets();
Dimension minSize = new Dimension(0, 0);
if (rightC.isVisible()) {
minSize = rightC.getMinimumSize();
}
if(orientation == JSplitPane.HORIZONTAL_SPLIT) {
maxLoc = splitPaneSize.width - minSize.width;
} else {
maxLoc = splitPaneSize.height - minSize.height;
}
maxLoc -= dividerSize;
if(insets != null) {
if(orientation == JSplitPane.HORIZONTAL_SPLIT) {
maxLoc -= insets.right;
} else {
maxLoc -= insets.top;
}
}
}
return Math.max(getMinimumDividerLocation(splitPane), maxLoc);
|
public java.awt.Dimension | getMaximumSize(javax.swing.JComponent jc)Returns the maximum size for the passed in component,
This is passed off to the current layoutmanager.
if(splitPane != null)
return layoutManager.maximumLayoutSize(splitPane);
return new Dimension(0, 0);
|
public int | getMinimumDividerLocation(javax.swing.JSplitPane jc)Gets the minimum location of the divider.
int minLoc = 0;
Component leftC = splitPane.getLeftComponent();
if ((leftC != null) && (leftC.isVisible())) {
Insets insets = splitPane.getInsets();
Dimension minSize = leftC.getMinimumSize();
if(orientation == JSplitPane.HORIZONTAL_SPLIT) {
minLoc = minSize.width;
} else {
minLoc = minSize.height;
}
if(insets != null) {
if(orientation == JSplitPane.HORIZONTAL_SPLIT) {
minLoc += insets.left;
} else {
minLoc += insets.top;
}
}
}
return minLoc;
|
public java.awt.Dimension | getMinimumSize(javax.swing.JComponent jc)Returns the minimum size for the passed in component,
This is passed off to the current layoutmanager.
if(splitPane != null)
return layoutManager.minimumLayoutSize(splitPane);
return new Dimension(0, 0);
|
public java.awt.Component | getNonContinuousLayoutDivider()Returns the divider to use when the splitPane is configured to
not continuously layout. This divider will only be used during a
dragging session.
return nonContinuousLayoutDivider;
|
public int | getOrientation()Returns the orientation for the JSplitPane.
return orientation;
|
public java.awt.Dimension | getPreferredSize(javax.swing.JComponent jc)Returns the preferred size for the passed in component,
This is passed off to the current layoutmanager.
if(splitPane != null)
return layoutManager.preferredLayoutSize(splitPane);
return new Dimension(0, 0);
|
public javax.swing.JSplitPane | getSplitPane()Returns the splitpane this instance is currently contained
in.
return splitPane;
|
protected void | installDefaults()Installs the UI defaults.
LookAndFeel.installBorder(splitPane, "SplitPane.border");
LookAndFeel.installColors(splitPane, "SplitPane.background",
"SplitPane.foreground");
LookAndFeel.installProperty(splitPane, "opaque", Boolean.TRUE);
if (divider == null) divider = createDefaultDivider();
divider.setBasicSplitPaneUI(this);
Border b = divider.getBorder();
if (b == null || !(b instanceof UIResource)) {
divider.setBorder(UIManager.getBorder("SplitPaneDivider.border"));
}
dividerDraggingColor = UIManager.getColor("SplitPaneDivider.draggingColor");
setOrientation(splitPane.getOrientation());
// This plus 2 here is to provide backwards consistancy. Previously,
// the old size did not include the 2 pixel border around the divider,
// it now does.
LookAndFeel.installProperty(splitPane, "dividerSize",
UIManager.get("SplitPane.dividerSize"));
divider.setDividerSize(splitPane.getDividerSize());
dividerSize = divider.getDividerSize();
splitPane.add(divider, JSplitPane.DIVIDER);
setContinuousLayout(splitPane.isContinuousLayout());
resetLayoutManager();
/* Install the nonContinuousLayoutDivider here to avoid having to
add/remove everything later. */
if(nonContinuousLayoutDivider == null) {
setNonContinuousLayoutDivider(
createDefaultNonContinuousLayoutDivider(),
true);
} else {
setNonContinuousLayoutDivider(nonContinuousLayoutDivider, true);
}
// focus forward traversal key
if (managingFocusForwardTraversalKeys==null) {
managingFocusForwardTraversalKeys = new HashSet();
managingFocusForwardTraversalKeys.add(
KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0));
}
splitPane.setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS,
managingFocusForwardTraversalKeys);
// focus backward traversal key
if (managingFocusBackwardTraversalKeys==null) {
managingFocusBackwardTraversalKeys = new HashSet();
managingFocusBackwardTraversalKeys.add(
KeyStroke.getKeyStroke(KeyEvent.VK_TAB, InputEvent.SHIFT_MASK));
}
splitPane.setFocusTraversalKeys(KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS,
managingFocusBackwardTraversalKeys);
|
protected void | installKeyboardActions()Installs the keyboard actions for the UI.
InputMap km = getInputMap(JComponent.
WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
SwingUtilities.replaceUIInputMap(splitPane, JComponent.
WHEN_ANCESTOR_OF_FOCUSED_COMPONENT,
km);
LazyActionMap.installLazyActionMap(splitPane, BasicSplitPaneUI.class,
"SplitPane.actionMap");
|
protected void | installListeners()Installs the event listeners for the UI.
if ((propertyChangeListener = createPropertyChangeListener()) !=
null) {
splitPane.addPropertyChangeListener(propertyChangeListener);
}
if ((focusListener = createFocusListener()) != null) {
splitPane.addFocusListener(focusListener);
}
|
public void | installUI(javax.swing.JComponent c)Installs the UI.
splitPane = (JSplitPane) c;
dividerLocationIsSet = false;
dividerKeyboardResize = false;
keepHidden = false;
installDefaults();
installListeners();
installKeyboardActions();
setLastDragLocation(-1);
|
public boolean | isContinuousLayout()Determines wether the JSplitPane is set to use a continuous layout.
return continuousLayout;
|
static void | loadActionMap(javax.swing.plaf.basic.LazyActionMap map)
map.put(new Actions(Actions.NEGATIVE_INCREMENT));
map.put(new Actions(Actions.POSITIVE_INCREMENT));
map.put(new Actions(Actions.SELECT_MIN));
map.put(new Actions(Actions.SELECT_MAX));
map.put(new Actions(Actions.START_RESIZE));
map.put(new Actions(Actions.TOGGLE_FOCUS));
map.put(new Actions(Actions.FOCUS_OUT_FORWARD));
map.put(new Actions(Actions.FOCUS_OUT_BACKWARD));
|
public void | paint(java.awt.Graphics g, javax.swing.JComponent jc)Messaged to paint the look and feel.
if (!painted && splitPane.getDividerLocation()<0) {
ignoreDividerLocationChange = true;
splitPane.setDividerLocation(getDividerLocation(splitPane));
}
painted = true;
|
protected void | resetLayoutManager()Resets the layout manager based on orientation and messages it
with invalidateLayout to pull in appropriate Components.
if(orientation == JSplitPane.HORIZONTAL_SPLIT) {
layoutManager = new BasicHorizontalLayoutManager(0);
} else {
layoutManager = new BasicHorizontalLayoutManager(1);
}
splitPane.setLayout(layoutManager);
layoutManager.updateComponents();
splitPane.revalidate();
splitPane.repaint();
|
public void | resetToPreferredSizes(javax.swing.JSplitPane jc)Messaged to reset the preferred sizes.
if(splitPane != null) {
layoutManager.resetToPreferredSizes();
splitPane.revalidate();
splitPane.repaint();
}
|
public void | setContinuousLayout(boolean b)Turn continuous layout on/off.
continuousLayout = b;
|
public void | setDividerLocation(javax.swing.JSplitPane jc, int location)Sets the location of the divider to location.
if (!ignoreDividerLocationChange) {
dividerLocationIsSet = true;
splitPane.revalidate();
splitPane.repaint();
if (keepHidden) {
Insets insets = splitPane.getInsets();
int orientation = splitPane.getOrientation();
if ((orientation == JSplitPane.VERTICAL_SPLIT &&
location != insets.top &&
location != splitPane.getHeight()-divider.getHeight()-insets.top) ||
(orientation == JSplitPane.HORIZONTAL_SPLIT &&
location != insets.left &&
location != splitPane.getWidth()-divider.getWidth()-insets.left)) {
setKeepHidden(false);
}
}
}
else {
ignoreDividerLocationChange = false;
}
|
void | setKeepHidden(boolean keepHidden)Set the value to indicate if one of the splitpane sides is expanded.
this.keepHidden = keepHidden;
|
public void | setLastDragLocation(int l)Set the last drag location of the JSplitPane.
lastDragLocation = l;
|
protected void | setNonContinuousLayoutDivider(java.awt.Component newDivider)Sets the divider to use when the splitPane is configured to
not continuously layout. This divider will only be used during a
dragging session. It is recommended that the passed in component
be a heavy weight.
setNonContinuousLayoutDivider(newDivider, true);
|
protected void | setNonContinuousLayoutDivider(java.awt.Component newDivider, boolean rememberSizes)Sets the divider to use.
rememberPaneSizes = rememberSizes;
if(nonContinuousLayoutDivider != null && splitPane != null) {
splitPane.remove(nonContinuousLayoutDivider);
}
nonContinuousLayoutDivider = newDivider;
|
public void | setOrientation(int orientation)Set the orientation for the JSplitPane.
this.orientation = orientation;
|
protected void | startDragging()Should be messaged before the dragging session starts, resets
lastDragLocation and dividerSize.
Component leftC = splitPane.getLeftComponent();
Component rightC = splitPane.getRightComponent();
ComponentPeer cPeer;
beginDragDividerLocation = getDividerLocation(splitPane);
draggingHW = false;
if(leftC != null && (cPeer = leftC.getPeer()) != null &&
!(cPeer instanceof LightweightPeer)) {
draggingHW = true;
} else if(rightC != null && (cPeer = rightC.getPeer()) != null
&& !(cPeer instanceof LightweightPeer)) {
draggingHW = true;
}
if(orientation == JSplitPane.HORIZONTAL_SPLIT) {
setLastDragLocation(divider.getBounds().x);
dividerSize = divider.getSize().width;
if(!isContinuousLayout() && draggingHW) {
nonContinuousLayoutDivider.setBounds
(getLastDragLocation(), 0, dividerSize,
splitPane.getHeight());
addHeavyweightDivider();
}
} else {
setLastDragLocation(divider.getBounds().y);
dividerSize = divider.getSize().height;
if(!isContinuousLayout() && draggingHW) {
nonContinuousLayoutDivider.setBounds
(0, getLastDragLocation(), splitPane.getWidth(),
dividerSize);
addHeavyweightDivider();
}
}
|
protected void | uninstallDefaults()Uninstalls the UI defaults.
if(splitPane.getLayout() == layoutManager) {
splitPane.setLayout(null);
}
if(nonContinuousLayoutDivider != null) {
splitPane.remove(nonContinuousLayoutDivider);
}
LookAndFeel.uninstallBorder(splitPane);
Border b = divider.getBorder();
if (b instanceof UIResource) {
divider.setBorder(null);
}
splitPane.remove(divider);
divider.setBasicSplitPaneUI(null);
layoutManager = null;
divider = null;
nonContinuousLayoutDivider = null;
setNonContinuousLayoutDivider(null);
// sets the focus forward and backward traversal keys to null
// to restore the defaults
splitPane.setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, null);
splitPane.setFocusTraversalKeys(KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS, null);
|
protected void | uninstallKeyboardActions()Uninstalls the keyboard actions for the UI.
SwingUtilities.replaceUIActionMap(splitPane, null);
SwingUtilities.replaceUIInputMap(splitPane, JComponent.
WHEN_ANCESTOR_OF_FOCUSED_COMPONENT,
null);
|
protected void | uninstallListeners()Uninstalls the event listeners for the UI.
if (propertyChangeListener != null) {
splitPane.removePropertyChangeListener(propertyChangeListener);
propertyChangeListener = null;
}
if (focusListener != null) {
splitPane.removeFocusListener(focusListener);
focusListener = null;
}
keyboardUpLeftListener = null;
keyboardDownRightListener = null;
keyboardHomeListener = null;
keyboardEndListener = null;
keyboardResizeToggleListener = null;
handler = null;
|
public void | uninstallUI(javax.swing.JComponent c)Uninstalls the UI.
uninstallKeyboardActions();
uninstallListeners();
uninstallDefaults();
dividerLocationIsSet = false;
dividerKeyboardResize = false;
splitPane = null;
|