Save This Page
Home » openjdk-7 » javax » swing » plaf » basic » [javadoc | source]
javax.swing.plaf.basic
public class: BasicSplitPaneUI [javadoc | source]
java.lang.Object
   javax.swing.plaf.ComponentUI
      javax.swing.plaf.SplitPaneUI
         javax.swing.plaf.basic.BasicSplitPaneUI

Direct Known Subclasses:
    SynthSplitPaneUI, MetalSplitPaneUI

A Basic L&F implementation of the SplitPaneUI.
Nested Class Summary:
public class  BasicSplitPaneUI.PropertyHandler  Implementation of the PropertyChangeListener that the JSplitPane UI uses.

This class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicSplitPaneUI. 

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

This class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicSplitPaneUI. 

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

This class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicSplitPaneUI. 

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

This class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicSplitPaneUI. 

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

This class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicSplitPaneUI. 

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

This class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicSplitPaneUI. 

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

This class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicSplitPaneUI. 

public class  BasicSplitPaneUI.BasicHorizontalLayoutManager  LayoutManager for JSplitPanes that have an orientation of HORIZONTAL_SPLIT. 
public class  BasicSplitPaneUI.BasicVerticalLayoutManager  LayoutManager used for JSplitPanes with an orientation of VERTICAL_SPLIT.

 

Field Summary
protected static final  String NON_CONTINUOUS_DIVIDER    The divider used for non-continuous layout is added to the split pane with this object. 
protected static  int KEYBOARD_DIVIDER_MOVE_OFFSET    How far (relative) the divider does move when it is moved around by the cursor keys on the keyboard. 
protected  JSplitPane splitPane    JSplitPane instance this instance is providing the look and feel for. 
protected  BasicSplitPaneUI.BasicHorizontalLayoutManager layoutManager    LayoutManager that is created and placed into the split pane. 
protected  BasicSplitPaneDivider divider    Instance of the divider for this JSplitPane. 
protected  PropertyChangeListener propertyChangeListener    Instance of the PropertyChangeListener for this JSplitPane. 
protected  FocusListener focusListener    Instance of the FocusListener for this JSplitPane. 
protected  int dividerSize    The size of the divider while the dragging session is valid. 
protected  Component nonContinuousLayoutDivider    Instance for the shadow of the divider when non continuous layout is being used. 
protected  boolean draggingHW    Set to true in startDragging if any of the children (not including the nonContinuousLayoutDivider) are heavy weights. 
protected  int beginDragDividerLocation    Location of the divider when the dragging session began. 
protected  KeyStroke upKey    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  KeyStroke downKey    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  KeyStroke leftKey    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  KeyStroke rightKey    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  KeyStroke homeKey    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  KeyStroke endKey    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  KeyStroke dividerResizeToggleKey    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    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 keyboardDownRightListener    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    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    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    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.
                           
                           boolean painted    Indicates that we have painted once. 
                           boolean ignoreDividerLocationChange    If true, setDividerLocation does nothing. 
                          Method from javax.swing.plaf.basic.BasicSplitPaneUI Summary:
                          createDefaultDivider,   createDefaultNonContinuousLayoutDivider,   createFocusListener,   createKeyboardDownRightListener,   createKeyboardEndListener,   createKeyboardHomeListener,   createKeyboardResizeToggleListener,   createKeyboardUpLeftListener,   createPropertyChangeListener,   createUI,   dragDividerTo,   finishDraggingTo,   finishedPaintingChildren,   getDivider,   getDividerBorderSize,   getDividerLocation,   getInputMap,   getInsets,   getKeyboardMoveIncrement,   getLastDragLocation,   getMaximumDividerLocation,   getMaximumSize,   getMinimumDividerLocation,   getMinimumSize,   getNonContinuousLayoutDivider,   getOrientation,   getPreferredSize,   getSplitPane,   installDefaults,   installKeyboardActions,   installListeners,   installUI,   isContinuousLayout,   loadActionMap,   paint,   resetLayoutManager,   resetToPreferredSizes,   setContinuousLayout,   setDividerLocation,   setKeepHidden,   setLastDragLocation,   setNonContinuousLayoutDivider,   setNonContinuousLayoutDivider,   setOrientation,   startDragging,   uninstallDefaults,   uninstallKeyboardActions,   uninstallListeners,   uninstallUI
                          Methods from javax.swing.plaf.SplitPaneUI:
                          finishedPaintingChildren,   getDividerLocation,   getMaximumDividerLocation,   getMinimumDividerLocation,   resetToPreferredSizes,   setDividerLocation
                          Methods from javax.swing.plaf.ComponentUI:
                          contains,   createUI,   getAccessibleChild,   getAccessibleChildrenCount,   getBaseline,   getBaselineResizeBehavior,   getMaximumSize,   getMinimumSize,   getPreferredSize,   installUI,   paint,   uninstallUI,   update
                          Methods from java.lang.Object:
                          clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
                          Method from javax.swing.plaf.basic.BasicSplitPaneUI Detail:
                           public BasicSplitPaneDivider createDefaultDivider() 
                            Creates the default divider.
                           protected Component createDefaultNonContinuousLayoutDivider() 
                            Returns the default non continuous layout divider, which is an instanceof Canvas that fills the background in dark gray.
                           protected FocusListener createFocusListener() 
                            Creates a FocusListener for the JSplitPane UI.
                           protected ActionListener 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() 
                          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() 
                          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() 
                          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() 
                          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() 
                            Creates a PropertyChangeListener for the JSplitPane UI.
                           public static ComponentUI createUI(JComponent x) 
                            Creates a new BasicSplitPaneUI instance
                           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.
                           protected  void finishDraggingTo(int location) 
                            Messaged to finish the dragging session. If not continuous display the dividers location will be reset.
                           public  void finishedPaintingChildren(JSplitPane jc,
                              Graphics g) 
                            Messaged after the JSplitPane the receiver is providing the look and feel for paints its children.
                           public BasicSplitPaneDivider getDivider() 
                            Returns the divider between the top Components.
                           protected int 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.

                           public int getDividerLocation(JSplitPane jc) 
                            Returns the location of the divider, which may differ from what the splitpane thinks the location of the divider is.
                           InputMap getInputMap(int condition) 
                           public Insets getInsets(JComponent jc) 
                            Returns the insets. The insets are returned from the border insets of the current border.
                           int getKeyboardMoveIncrement() 
                           public int getLastDragLocation() 
                            Returns the last drag location of the JSplitPane.
                           public int getMaximumDividerLocation(JSplitPane jc) 
                            Gets the maximum location of the divider.
                           public Dimension getMaximumSize(JComponent jc) 
                            Returns the maximum size for the passed in component, This is passed off to the current layoutmanager.
                           public int getMinimumDividerLocation(JSplitPane jc) 
                            Gets the minimum location of the divider.
                           public Dimension getMinimumSize(JComponent jc) 
                            Returns the minimum size for the passed in component, This is passed off to the current layoutmanager.
                           public 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.
                           public int getOrientation() 
                            Returns the orientation for the JSplitPane.
                           public Dimension getPreferredSize(JComponent jc) 
                            Returns the preferred size for the passed in component, This is passed off to the current layoutmanager.
                           public JSplitPane getSplitPane() 
                            Returns the splitpane this instance is currently contained in.
                           protected  void installDefaults() 
                            Installs the UI defaults.
                           protected  void installKeyboardActions() 
                            Installs the keyboard actions for the UI.
                           protected  void installListeners() 
                            Installs the event listeners for the UI.
                           public  void installUI(JComponent c) 
                            Installs the UI.
                           public boolean isContinuousLayout() 
                            Determines wether the JSplitPane is set to use a continuous layout.
                           static  void loadActionMap(LazyActionMap map) 
                           public  void paint(Graphics g,
                              JComponent jc) 
                            Messaged to paint the look and feel.
                           protected  void resetLayoutManager() 
                            Resets the layout manager based on orientation and messages it with invalidateLayout to pull in appropriate Components.
                           public  void resetToPreferredSizes(JSplitPane jc) 
                            Messaged to reset the preferred sizes.
                           public  void setContinuousLayout(boolean b) 
                            Turn continuous layout on/off.
                           public  void setDividerLocation(JSplitPane jc,
                              int location) 
                            Sets the location of the divider to location.
                            void setKeepHidden(boolean keepHidden) 
                            Set the value to indicate if one of the splitpane sides is expanded.
                           public  void setLastDragLocation(int l) 
                            Set the last drag location of the JSplitPane.
                           protected  void 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) 
                            Sets the divider to use.
                           public  void setOrientation(int orientation) 
                            Set the orientation for the JSplitPane.
                           protected  void startDragging() 
                            Should be messaged before the dragging session starts, resets lastDragLocation and dividerSize.
                           protected  void uninstallDefaults() 
                            Uninstalls the UI defaults.
                           protected  void uninstallKeyboardActions() 
                            Uninstalls the keyboard actions for the UI.
                           protected  void uninstallListeners() 
                            Uninstalls the event listeners for the UI.
                           public  void uninstallUI(JComponent c) 
                            Uninstalls the UI.