javax.swing.plaf.basic
Class BasicSplitPaneUI

java.lang.Object
  |
  +--javax.swing.plaf.ComponentUI
        |
        +--javax.swing.plaf.SplitPaneUI
              |
              +--javax.swing.plaf.basic.BasicSplitPaneUI
Direct Known Subclasses:
MetalSplitPaneUI

public class BasicSplitPaneUI
extends SplitPaneUI

A Basic L&F implementation of the SplitPaneUI.


Inner Class Summary
 class BasicSplitPaneUI.BasicHorizontalLayoutManager
BasicSplitPaneUI.BasicHorizontalLayoutManager
LayoutManager for JSplitPanes that have an orientation of HORIZONTAL_SPLIT.

This inner class is marked "public" due to a compiler bug. This class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicSplitPaneUI.

 class BasicSplitPaneUI.BasicVerticalLayoutManager
BasicSplitPaneUI.BasicVerticalLayoutManager
LayoutManager used for JSplitPanes with an orientation of VERTICAL_SPLIT.

This inner class is marked "public" due to a compiler bug. This class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicSplitPaneUI.

 class BasicSplitPaneUI.FocusHandler
BasicSplitPaneUI.FocusHandler
Implementation of the FocusListener that the JSplitPane UI uses.

This inner class is marked "public" due to a compiler bug. This class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicSplitPaneUI.

 class BasicSplitPaneUI.KeyboardDownRightHandler
BasicSplitPaneUI.KeyboardDownRightHandler
Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses.

This inner class is marked "public" due to a compiler bug. This class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicSplitPaneUI.

 class BasicSplitPaneUI.KeyboardEndHandler
BasicSplitPaneUI.KeyboardEndHandler
Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses.

This inner class is marked "public" due to a compiler bug. This class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicSplitPaneUI.

 class BasicSplitPaneUI.KeyboardHomeHandler
BasicSplitPaneUI.KeyboardHomeHandler
Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses.

This inner class is marked "public" due to a compiler bug. This class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicSplitPaneUI.

 class BasicSplitPaneUI.KeyboardResizeToggleHandler
BasicSplitPaneUI.KeyboardResizeToggleHandler
Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses.

This inner class is marked "public" due to a compiler bug. This class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicSplitPaneUI.

 class BasicSplitPaneUI.KeyboardUpLeftHandler
BasicSplitPaneUI.KeyboardUpLeftHandler
Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses.

This inner class is marked "public" due to a compiler bug. This class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicSplitPaneUI.

 class BasicSplitPaneUI.PropertyHandler
BasicSplitPaneUI.PropertyHandler
Implementation of the PropertyChangeListener that the JSplitPane UI uses.

This inner class is marked "public" due to a compiler bug. This class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicSplitPaneUI.

 
Field Summary
protected  int beginDragDividerLocation
copy->  beginDragDividerLocation
Location of the divider when the dragging session began.
protected  BasicSplitPaneDivider divider
copy->  divider
Instance of the divider for this JSplitPane.
protected  KeyStroke dividerResizeToggleKey
copy->  dividerResizeToggleKey
Deprecated. As of Java 2 platform v1.3.

As 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  int dividerSize
copy->  dividerSize
The size of the divider while the dragging session is valid.
protected  KeyStroke downKey
copy->  downKey
Deprecated. As of Java 2 platform v1.3.

As 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  boolean draggingHW
copy->  draggingHW
Set to true in startDragging if any of the children (not including the nonContinuousLayoutDivider) are heavy weights.
protected  KeyStroke endKey
copy->  endKey
Deprecated. As of Java 2 platform v1.3.

As 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  FocusListener focusListener
copy->  focusListener
Instance of the FocusListener for this JSplitPane.
protected  KeyStroke homeKey
copy->  homeKey
Deprecated. As of Java 2 platform v1.3.

As 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 static int KEYBOARD_DIVIDER_MOVE_OFFSET
copy->  KEYBOARD_DIVIDER_MOVE_OFFSET
How far (relativ) the divider does move when it is moved around by the cursor keys on the keyboard.
protected  ActionListener keyboardDownRightListener
copy->  keyboardDownRightListener
Deprecated. As of Java 2 platform v1.3.

As 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 keyboardEndListener
copy->  keyboardEndListener
Deprecated. As of Java 2 platform v1.3.

As 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 keyboardHomeListener
copy->  keyboardHomeListener
Deprecated. As of Java 2 platform v1.3.

As 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 keyboardResizeToggleListener
copy->  keyboardResizeToggleListener
Deprecated. As of Java 2 platform v1.3.

As 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 keyboardUpLeftListener
copy->  keyboardUpLeftListener
Deprecated. As of Java 2 platform v1.3.

As 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  BasicSplitPaneUI.BasicHorizontalLayoutManager layoutManager
copy->  layoutManager
LayoutManager that is created and placed into the split pane.
protected  KeyStroke leftKey
copy->  leftKey
Deprecated. As of Java 2 platform v1.3.

As 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 static String NON_CONTINUOUS_DIVIDER
copy->  NON_CONTINUOUS_DIVIDER
The divider used for non-continuous layout is added to the split pane with this object.
protected  Component nonContinuousLayoutDivider
copy->  nonContinuousLayoutDivider
Instance for the shadow of the divider when non continuous layout is being used.
protected  PropertyChangeListener propertyChangeListener
copy->  propertyChangeListener
Instance of the PropertyChangeListener for this JSplitPane.
protected  KeyStroke rightKey
copy->  rightKey
Deprecated. As of Java 2 platform v1.3.

As 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  JSplitPane splitPane
copy->  splitPane
JSplitPane instance this instance is providing the look and feel for.
protected  KeyStroke upKey
copy->  upKey
Deprecated. As of Java 2 platform v1.3.

As 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.
 
Constructor Summary
BasicSplitPaneUI
copy->  new BasicSplitPaneUI()
copy->  <BasicSplitPaneUI var> = new BasicSplitPaneUI();
 
Method Summary
 BasicSplitPaneDivider createDefaultDivider()
copy->  .createDefaultDivider()
copy->  <BasicSplitPaneDivider var>=<BasicSplitPaneUI>.createDefaultDivider();
Creates the default divider.
protected  Component createDefaultNonContinuousLayoutDivider()
copy->  .createDefaultNonContinuousLayoutDivider()
copy->  <Component var>=<BasicSplitPaneUI>.createDefaultNonContinuousLayoutDivider();
Returns the default non continuous layout divider, which is an instanceof Canvas that fills the background in dark gray.
protected  FocusListener createFocusListener()
copy->  .createFocusListener()
copy->  <FocusListener var>=<BasicSplitPaneUI>.createFocusListener();
Creates a FocusListener for the JSplitPane UI.
protected  ActionListener createKeyboardDownRightListener()
copy->  .createKeyboardDownRightListener()
copy->  <ActionListener var>=<BasicSplitPaneUI>.createKeyboardDownRightListener();
Deprecated. As of Java 2 platform v1.3.

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.

protected  ActionListener createKeyboardEndListener()
copy->  .createKeyboardEndListener()
copy->  <ActionListener var>=<BasicSplitPaneUI>.createKeyboardEndListener();
Deprecated. As of Java 2 platform v1.3.

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.

protected  ActionListener createKeyboardHomeListener()
copy->  .createKeyboardHomeListener()
copy->  <ActionListener var>=<BasicSplitPaneUI>.createKeyboardHomeListener();
Deprecated. As of Java 2 platform v1.3.

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.

protected  ActionListener createKeyboardResizeToggleListener()
copy->  .createKeyboardResizeToggleListener()
copy->  <ActionListener var>=<BasicSplitPaneUI>.createKeyboardResizeToggleListener();
Deprecated. As of Java 2 platform v1.3.

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.

protected  ActionListener createKeyboardUpLeftListener()
copy->  .createKeyboardUpLeftListener()
copy->  <ActionListener var>=<BasicSplitPaneUI>.createKeyboardUpLeftListener();
Deprecated. As of Java 2 platform v1.3.

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.

protected  PropertyChangeListener createPropertyChangeListener()
copy->  .createPropertyChangeListener()
copy->  <PropertyChangeListener var>=<BasicSplitPaneUI>.createPropertyChangeListener();
Creates a PropertyChangeListener for the JSplitPane UI.
static ComponentUI createUI(JComponent x)
copy->  BasicSplitPaneUI.createUI( )
copy->  <ComponentUI var>=BasicSplitPaneUI.createUI(<JComponent x>);
Creates a new BasicSplitPaneUI instance
protected  void dragDividerTo(int location)
copy->  .dragDividerTo( )
copy->  <BasicSplitPaneUI>.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.
protected  void finishDraggingTo(int location)
copy->  .finishDraggingTo( )
copy->  <BasicSplitPaneUI>.finishDraggingTo(<int location>);
Messaged to finish the dragging session. If not continuous display the dividers location will be reset.
 void finishedPaintingChildren(JSplitPane jc, Graphics g)
copy->  .finishedPaintingChildren(, )
copy->  <BasicSplitPaneUI>.finishedPaintingChildren(<JSplitPane jc>, <Graphics g>);
Messaged after the JSplitPane the receiver is providing the look and feel for paints its children.
Overrides:
finishedPaintingChildren in class SplitPaneUI
 BasicSplitPaneDivider getDivider()
copy->  .getDivider()
copy->  <BasicSplitPaneDivider var>=<BasicSplitPaneUI>.getDivider();
Returns the divider between the top Components.
protected  int getDividerBorderSize()
copy->  .getDividerBorderSize()
copy->  <int var>=<BasicSplitPaneUI>.getDividerBorderSize();
Deprecated. As of Java 2 platform v1.3, instead set the border on the divider.

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.

 int getDividerLocation(JSplitPane jc)
copy->  .getDividerLocation( )
copy->  <int var>=<BasicSplitPaneUI>.getDividerLocation(<JSplitPane jc>);
Returns the location of the divider, which may differ from what the splitpane thinks the location of the divider is.
Overrides:
getDividerLocation in class SplitPaneUI
 Insets getInsets(JComponent jc)
copy->  .getInsets( )
copy->  <Insets var>=<BasicSplitPaneUI>.getInsets(<JComponent jc>);
Returns the insets. The insets are returned from the broder insets of the current border.
 int getLastDragLocation()
copy->  .getLastDragLocation()
copy->  <int var>=<BasicSplitPaneUI>.getLastDragLocation();
Returns the last drag location of the JSplitPane.
 int getMaximumDividerLocation(JSplitPane jc)
copy->  .getMaximumDividerLocation( )
copy->  <int var>=<BasicSplitPaneUI>.getMaximumDividerLocation(<JSplitPane jc>);
Gets the maximum location of the divider.
Overrides:
getMaximumDividerLocation in class SplitPaneUI
 Dimension getMaximumSize(JComponent jc)
copy->  .getMaximumSize( )
copy->  <Dimension var>=<BasicSplitPaneUI>.getMaximumSize(<JComponent jc>);
Returns the maximum size for the passed in component, This is passed off to the current layoutmanager.
Overrides:
getMaximumSize in class ComponentUI
 int getMinimumDividerLocation(JSplitPane jc)
copy->  .getMinimumDividerLocation( )
copy->  <int var>=<BasicSplitPaneUI>.getMinimumDividerLocation(<JSplitPane jc>);
Gets the minimum location of the divider.
Overrides:
getMinimumDividerLocation in class SplitPaneUI
 Dimension getMinimumSize(JComponent jc)
copy->  .getMinimumSize( )
copy->  <Dimension var>=<BasicSplitPaneUI>.getMinimumSize(<JComponent jc>);
Returns the minimum size for the passed in component, This is passed off to the current layoutmanager.
Overrides:
getMinimumSize in class ComponentUI
 Component getNonContinuousLayoutDivider()
copy->  .getNonContinuousLayoutDivider()
copy->  <Component var>=<BasicSplitPaneUI>.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.
 int getOrientation()
copy->  .getOrientation()
copy->  <int var>=<BasicSplitPaneUI>.getOrientation();
Returns the orientation for the JSplitPane.
 Dimension getPreferredSize(JComponent jc)
copy->  .getPreferredSize( )
copy->  <Dimension var>=<BasicSplitPaneUI>.getPreferredSize(<JComponent jc>);
Returns the preferred size for the passed in component, This is passed off to the current layoutmanager.
Overrides:
getPreferredSize in class ComponentUI
 JSplitPane getSplitPane()
copy->  .getSplitPane()
copy->  <JSplitPane var>=<BasicSplitPaneUI>.getSplitPane();
Returns the splitpane this instance is currently contained in.
protected  void installDefaults()
copy->  .installDefaults()
copy->  <BasicSplitPaneUI>.installDefaults();
Installs the UI defaults.
protected  void installKeyboardActions()
copy->  .installKeyboardActions()
copy->  <BasicSplitPaneUI>.installKeyboardActions();
Installs the keyboard actions for the UI.
protected  void installListeners()
copy->  .installListeners()
copy->  <BasicSplitPaneUI>.installListeners();
Installs the event listeners for the UI.
 void installUI(JComponent c)
copy->  .installUI( )
copy->  <BasicSplitPaneUI>.installUI(<JComponent c>);
Installs the UI.
Overrides:
installUI in class ComponentUI
 boolean isContinuousLayout()
copy->  .isContinuousLayout()
copy->  <boolean var>=<BasicSplitPaneUI>.isContinuousLayout();
Determines wether the JSplitPane is set to use a continuous layout.
 void paint(Graphics g, JComponent jc)
copy->  .paint(, )
copy->  <BasicSplitPaneUI>.paint(<Graphics g>, <JComponent jc>);
Messaged to paint the look and feel.
Overrides:
paint in class ComponentUI
protected  void resetLayoutManager()
copy->  .resetLayoutManager()
copy->  <BasicSplitPaneUI>.resetLayoutManager();
Resets the layout manager based on orientation and messages it with invalidateLayout to pull in appropriate Components.
 void resetToPreferredSizes(JSplitPane jc)
copy->  .resetToPreferredSizes( )
copy->  <BasicSplitPaneUI>.resetToPreferredSizes(<JSplitPane jc>);
Messaged to reset the preferred sizes.
Overrides:
resetToPreferredSizes in class SplitPaneUI
 void setContinuousLayout(boolean b)
copy->  .setContinuousLayout( )
copy->  <BasicSplitPaneUI>.setContinuousLayout(<boolean b>);
Turn continuous layout on/off.
 void setDividerLocation(JSplitPane jc, int location)
copy->  .setDividerLocation(, )
copy->  <BasicSplitPaneUI>.setDividerLocation(<JSplitPane jc>, <int location>);
Sets the location of the divider to location.
Overrides:
setDividerLocation in class SplitPaneUI
 void setLastDragLocation(int l)
copy->  .setLastDragLocation( )
copy->  <BasicSplitPaneUI>.setLastDragLocation(<int l>);
Set the last drag location of the JSplitPane.
protected  void setNonContinuousLayoutDivider(Component newDivider)
copy->  .setNonContinuousLayoutDivider( )
copy->  <BasicSplitPaneUI>.setNonContinuousLayoutDivider(<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.
protected  void setNonContinuousLayoutDivider(Component newDivider, boolean rememberSizes)
copy->  .setNonContinuousLayoutDivider(, )
copy->  <BasicSplitPaneUI>.setNonContinuousLayoutDivider(<Component newDivider>, <boolean rememberSizes>);
Sets the divider to use.
 void setOrientation(int orientation)
copy->  .setOrientation( )
copy->  <BasicSplitPaneUI>.setOrientation(<int orientation>);
Set the orientation for the JSplitPane.
protected  void startDragging()
copy->  .startDragging()
copy->  <BasicSplitPaneUI>.startDragging();
Should be messaged before the dragging session starts, resets lastDragLocation and dividerSize.
protected  void uninstallDefaults()
copy->  .uninstallDefaults()
copy->  <BasicSplitPaneUI>.uninstallDefaults();
Uninstalls the UI defaults.
protected  void uninstallKeyboardActions()
copy->  .uninstallKeyboardActions()
copy->  <BasicSplitPaneUI>.uninstallKeyboardActions();
Uninstalls the keyboard actions for the UI.
protected  void uninstallListeners()
copy->  .uninstallListeners()
copy->  <BasicSplitPaneUI>.uninstallListeners();
Uninstalls the event listeners for the UI.
 void uninstallUI(JComponent c)
copy->  .uninstallUI( )
copy->  <BasicSplitPaneUI>.uninstallUI(<JComponent c>);
Uninstalls the UI.
Overrides:
uninstallUI in class ComponentUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait