java.lang.Object | |||
↳ | javax.swing.plaf.ComponentUI | ||
↳ | javax.swing.plaf.SplitPaneUI | ||
↳ | javax.swing.plaf.basic.BasicSplitPaneUI |
![]() |
A Basic L&F implementation of the SplitPaneUI.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BasicSplitPaneUI.BasicHorizontalLayoutManager | LayoutManager for JSplitPanes that have an orientation of HORIZONTAL_SPLIT. | ||||||||||
BasicSplitPaneUI.BasicVerticalLayoutManager | LayoutManager used for JSplitPanes with an orientation of VERTICAL_SPLIT. | ||||||||||
BasicSplitPaneUI.FocusHandler | Implementation of the FocusListener that the JSplitPane UI uses. | ||||||||||
BasicSplitPaneUI.KeyboardDownRightHandler | Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses. | ||||||||||
BasicSplitPaneUI.KeyboardEndHandler | Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses. | ||||||||||
BasicSplitPaneUI.KeyboardHomeHandler | Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses. | ||||||||||
BasicSplitPaneUI.KeyboardResizeToggleHandler | Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses. | ||||||||||
BasicSplitPaneUI.KeyboardUpLeftHandler | Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses. | ||||||||||
BasicSplitPaneUI.PropertyHandler | Implementation of the PropertyChangeListener that the JSplitPane UI uses. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | NON_CONTINUOUS_DIVIDER | The divider used for non-continuous layout is added to the split pane with this object. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
KEYBOARD_DIVIDER_MOVE_OFFSET | How far (relative) the divider does move when it is moved around by the cursor keys on the keyboard. | ||||||||||
beginDragDividerLocation | Location of the divider when the dragging session began. | ||||||||||
divider | Instance of the divider for this JSplitPane. | ||||||||||
dividerResizeToggleKey | This field is deprecated. As of Java 2 platform v1.3. | ||||||||||
dividerSize | The size of the divider while the dragging session is valid. | ||||||||||
downKey | This field is deprecated. As of Java 2 platform v1.3. | ||||||||||
draggingHW | Set to true in startDragging if any of the children (not including the nonContinuousLayoutDivider) are heavy weights. | ||||||||||
endKey | This field is deprecated. As of Java 2 platform v1.3. | ||||||||||
focusListener | Instance of the FocusListener for this JSplitPane. | ||||||||||
homeKey | This field is deprecated. As of Java 2 platform v1.3. | ||||||||||
keyboardDownRightListener | This field is deprecated. As of Java 2 platform v1.3. | ||||||||||
keyboardEndListener | This field is deprecated. As of Java 2 platform v1.3. | ||||||||||
keyboardHomeListener | This field is deprecated. As of Java 2 platform v1.3. | ||||||||||
keyboardResizeToggleListener | This field is deprecated. As of Java 2 platform v1.3. | ||||||||||
keyboardUpLeftListener | This field is deprecated. As of Java 2 platform v1.3. | ||||||||||
layoutManager | LayoutManager that is created and placed into the split pane. | ||||||||||
leftKey | This field is deprecated. As of Java 2 platform v1.3. | ||||||||||
nonContinuousLayoutDivider | Instance for the shadow of the divider when non continuous layout is being used. | ||||||||||
propertyChangeListener | Instance of the PropertyChangeListener for this JSplitPane. | ||||||||||
rightKey | This field is deprecated. As of Java 2 platform v1.3. | ||||||||||
splitPane | JSplitPane instance this instance is providing the look and feel for. | ||||||||||
upKey | This field is deprecated. As of Java 2 platform v1.3. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates the default divider.
| |||||||||||
Creates a new BasicSplitPaneUI instance
| |||||||||||
Messaged after the JSplitPane the receiver is providing the look
and feel for paints its children.
| |||||||||||
Returns the divider between the top Components.
| |||||||||||
Returns the location of the divider, which may differ from what
the splitpane thinks the location of the divider is.
| |||||||||||
Returns the insets.
| |||||||||||
Returns the last drag location of the JSplitPane.
| |||||||||||
Gets the maximum location of the divider.
| |||||||||||
Returns the maximum size for the passed in component,
This is passed off to the current layoutmanager.
| |||||||||||
Gets the minimum location of the divider.
| |||||||||||
Returns the minimum size for the passed in component,
This is passed off to the current layoutmanager.
| |||||||||||
Returns the divider to use when the splitPane is configured to
not continuously layout.
| |||||||||||
Returns the orientation for the JSplitPane.
| |||||||||||
Returns the preferred size for the passed in component,
This is passed off to the current layoutmanager.
| |||||||||||
Returns the splitpane this instance is currently contained
in.
| |||||||||||
Installs the UI.
| |||||||||||
Determines wether the JSplitPane is set to use a continuous layout.
| |||||||||||
Messaged to paint the look and feel.
| |||||||||||
Messaged to reset the preferred sizes.
| |||||||||||
Turn continuous layout on/off.
| |||||||||||
Sets the location of the divider to location.
| |||||||||||
Set the last drag location of the JSplitPane.
| |||||||||||
Set the orientation for the JSplitPane.
| |||||||||||
Uninstalls the UI.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the default non continuous layout divider, which is an
instanceof Canvas that fills the background in dark gray.
| |||||||||||
Creates a FocusListener for the JSplitPane UI.
| |||||||||||
This method is deprecated.
As of Java 2 platform v1.3.
| |||||||||||
This method is deprecated.
As of Java 2 platform v1.3.
| |||||||||||
This method is deprecated.
As of Java 2 platform v1.3.
| |||||||||||
This method is deprecated.
As of Java 2 platform v1.3.
| |||||||||||
This method is deprecated.
As of Java 2 platform v1.3.
| |||||||||||
Creates a PropertyChangeListener for the JSplitPane UI.
| |||||||||||
Messaged during a dragging session to move the divider to the
passed in location.
| |||||||||||
Messaged to finish the dragging session.
| |||||||||||
This method is deprecated.
As of Java 2 platform v1.3, instead set the border on the
divider.
| |||||||||||
Installs the UI defaults.
| |||||||||||
Installs the keyboard actions for the UI.
| |||||||||||
Installs the event listeners for the UI.
| |||||||||||
Resets the layout manager based on orientation and messages it
with invalidateLayout to pull in appropriate Components.
| |||||||||||
Sets the divider to use when the splitPane is configured to
not continuously layout.
| |||||||||||
Sets the divider to use.
| |||||||||||
Should be messaged before the dragging session starts, resets
lastDragLocation and dividerSize.
| |||||||||||
Uninstalls the UI defaults.
| |||||||||||
Uninstalls the keyboard actions for the UI.
| |||||||||||
Uninstalls the event listeners for the UI.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
The divider used for non-continuous layout is added to the split pane with this object.
How far (relative) the divider does move when it is moved around by the cursor keys on the keyboard.
Location of the divider when the dragging session began.
This field is 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.
The size of the divider while the dragging session is valid.
This field is 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.
Set to true in startDragging if any of the children (not including the nonContinuousLayoutDivider) are heavy weights.
This field is 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.
This field is 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.
This field is 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.
This field is 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.
This field is 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.
This field is 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.
This field is 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.
LayoutManager that is created and placed into the split pane.
This field is 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.
Instance for the shadow of the divider when non continuous layout is being used.
Instance of the PropertyChangeListener for this JSplitPane.
This field is 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.
JSplitPane instance this instance is providing the look and feel for.
This field is 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.
Messaged after the JSplitPane the receiver is providing the look and feel for paints its children.
Returns the location of the divider, which may differ from what the splitpane thinks the location of the divider is.
Returns the insets. The insets are returned from the border insets of the current border.
Returns the last drag location of the JSplitPane.
Returns the maximum size for the passed in component, This is passed off to the current layoutmanager.
jc | the component whose maximum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components |
---|
Dimension
object or null
Returns the minimum size for the passed in component, This is passed off to the current layoutmanager.
jc | the component whose minimum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components |
---|
Dimension
object or null
Returns the divider to use when the splitPane is configured to not continuously layout. This divider will only be used during a dragging session.
Returns the orientation for the JSplitPane.
Returns the preferred size for the passed in component, This is passed off to the current layoutmanager.
jc | the component whose preferred size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components |
---|
Installs the UI.
c | the component where this UI delegate is being installed |
---|
Determines wether the JSplitPane is set to use a continuous layout.
Messaged to paint the look and feel.
g | the Graphics context in which to paint |
---|---|
jc | the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components |
Turn continuous layout on/off.
Sets the location of the divider to location.
Set the last drag location of the JSplitPane.
Set the orientation for the JSplitPane.
Uninstalls the UI.
c | the component from which this UI delegate is being removed; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components |
---|
Returns the default non continuous layout divider, which is an instanceof Canvas that fills the background in dark gray.
This method is 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.
This method is 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.
This method is 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.
This method is 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.
This method is 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.
Creates a PropertyChangeListener for the JSplitPane UI.
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.
Messaged to finish the dragging session. If not continuous display the dividers location will be reset.
This method is 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.
Installs the UI defaults.
Installs the keyboard actions for the UI.
Installs the event listeners for the UI.
Resets the layout manager based on orientation and messages it with invalidateLayout to pull in appropriate Components.
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.
Sets the divider to use.
Should be messaged before the dragging session starts, resets lastDragLocation and dividerSize.
Uninstalls the UI defaults.
Uninstalls the keyboard actions for the UI.
Uninstalls the event listeners for the UI.