| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class BasicSplitPaneUI extends SplitPaneUI
A Basic L&F implementation of the SplitPaneUI.
Nested Class Summary | |
---|---|
class |
LayoutManager for JSplitPanes that have an orientation of HORIZONTAL_SPLIT. |
class |
LayoutManager used for JSplitPanes with an orientation of VERTICAL_SPLIT. |
class |
Implementation of the FocusListener that the JSplitPane UI uses. |
class |
Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses. |
class |
Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses. |
class |
Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses. |
class |
Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses. |
class |
Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses. |
class |
Implementation of the PropertyChangeListener that the JSplitPane UI uses. |
Field Summary | |
---|---|
protected int |
beginDragDividerLocation
Location of the divider when the dragging session began. |
protected BasicSplitPaneDivider |
divider
Instance of the divider for this JSplitPane. |
protected KeyStroke |
dividerResizeToggleKey
As of Java 2 platform v1.3 this previously undocumented field is no longer used. |
protected int |
dividerSize
The size of the divider while the dragging session is valid. |
protected KeyStroke |
downKey
As of Java 2 platform v1.3 this previously undocumented field is no longer used. |
protected boolean |
draggingHW
Set to true in startDragging if any of the children (not including the nonContinuousLayoutDivider) are heavy weights. |
protected KeyStroke |
endKey
As of Java 2 platform v1.3 this previously undocumented field is no longer used. |
protected FocusListener |
focusListener
Instance of the FocusListener for this JSplitPane. |
protected KeyStroke |
homeKey
As of Java 2 platform v1.3 this previously undocumented field is no longer used. |
protected ActionListener |
keyboardDownRightListener
As of Java 2 platform v1.3 this previously undocumented field is no longer used. |
protected ActionListener |
keyboardEndListener
As of Java 2 platform v1.3 this previously undocumented field is no longer used. |
protected ActionListener |
keyboardHomeListener
As of Java 2 platform v1.3 this previously undocumented field is no longer used. |
protected ActionListener |
keyboardResizeToggleListener
As of Java 2 platform v1.3 this previously undocumented field is no longer used. |
protected ActionListener |
keyboardUpLeftListener
As of Java 2 platform v1.3 this previously undocumented field is no longer used. |
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 BasicSplitPaneUI.BasicHorizontalLayoutManager |
layoutManager
LayoutManager that is created and placed into the split pane. |
protected KeyStroke |
leftKey
As of Java 2 platform v1.3 this previously undocumented field is no longer used. |
protected Component |
nonContinuousLayoutDivider
Instance for the shadow of the divider when non continuous layout is being used. |
protected static String |
NON_CONTINUOUS_DIVIDER
The divider used for non-continuous layout is added to the split pane with this object. |
protected PropertyChangeListener |
propertyChangeListener
Instance of the PropertyChangeListener for this JSplitPane. |
protected KeyStroke |
rightKey
As of Java 2 platform v1.3 this previously undocumented field is no longer used. |
protected JSplitPane |
splitPane
JSplitPane instance this instance is providing the look and feel for. |
protected KeyStroke |
upKey
As of Java 2 platform v1.3 this previously undocumented field is no longer used. |
Constructor Summary | |
---|---|
|
Method Summary | |
---|---|
BasicSplitPaneDivider |
Creates the default divider. |
protected Component |
Returns the default non continuous layout divider, which is an instanceof Canvas that fills the background in dark gray. |
protected FocusListener |
Creates a FocusListener for the JSplitPane UI. |
protected ActionListener |
As of Java 2 platform v1.3 this method is no longer used. |
protected ActionListener |
As of Java 2 platform v1.3 this method is no longer used. |
protected ActionListener |
As of Java 2 platform v1.3 this method is no longer used. |
protected ActionListener |
As of Java 2 platform v1.3 this method is no longer used. |
protected ActionListener |
As of Java 2 platform v1.3 this method is no longer used. |
protected PropertyChangeListener |
Creates a PropertyChangeListener for the JSplitPane UI. |
static ComponentUI |
Creates a new BasicSplitPaneUI instance |
protected void |
dragDividerTo(int location) Messaged during a dragging session to move the divider to the passed in location. |
protected void |
finishDraggingTo(int location) Messaged to finish the dragging session. |
void |
Messaged after the JSplitPane the receiver is providing the look and feel for paints its children. |
BasicSplitPaneDivider |
Returns the divider between the top Components. |
protected int |
As of Java 2 platform v1.3 this method is no longer used. |
int |
Returns the location of the divider, which may differ from what the splitpane thinks the location of the divider is. |
Insets |
getInsets(JComponent jc) Returns the insets. |
int |
Returns the last drag location of the JSplitPane. |
int |
Gets the maximum location of the divider. |
Dimension |
Returns the maximum size for the passed in component, This is passed off to the current layoutmanager. |
int |
Gets the minimum location of the divider. |
Dimension |
Returns the minimum size for the passed in component, This is passed off to the current layoutmanager. |
Component |
Returns the divider to use when the splitPane is configured to not continuously layout. |
int |
Returns the orientation for the JSplitPane. |
Dimension |
Returns the preferred size for the passed in component, This is passed off to the current layoutmanager. |
JSplitPane |
Returns the splitpane this instance is currently contained in. |
protected void |
Installs the UI defaults. |
protected void |
Installs the keyboard actions for the UI. |
protected void |
Installs the event listeners for the UI. |
void |
Installs the UI. |
boolean |
Determines wether the JSplitPane is set to use a continuous layout. |
void |
paint(Graphics g, JComponent jc) Messaged to paint the look and feel. |
protected void |
Resets the layout manager based on orientation and messages it with invalidateLayout to pull in appropriate Components. |
void |
Messaged to reset the preferred sizes. |
void |
setContinuousLayout(boolean b) Turn continuous layout on/off. |
void |
setDividerLocation(JSplitPane jc, int location) Sets the location of the divider to location. |
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. |
protected void |
setNonContinuousLayoutDivider(Component newDivider, boolean rememberSizes) Sets the divider to use. |
void |
setOrientation(int orientation) Set the orientation for the JSplitPane. |
protected void |
Should be messaged before the dragging session starts, resets lastDragLocation and dividerSize. |
protected void |
Uninstalls the UI defaults. |
protected void |
Uninstalls the keyboard actions for the UI. |
protected void |
Uninstalls the event listeners for the UI. |
void |
Uninstalls the UI. |
Methods inherited from class javax.swing.plaf.SplitPaneUI |
---|
finishedPaintingChildren, getDividerLocation, getMaximumDividerLocation, getMinimumDividerLocation, resetToPreferredSizes, setDividerLocation |
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int beginDragDividerLocation
protected BasicSplitPaneDivider divider
protected KeyStroke dividerResizeToggleKey
protected int dividerSize
protected KeyStroke downKey
protected boolean draggingHW
protected KeyStroke endKey
protected FocusListener focusListener
protected KeyStroke homeKey
protected ActionListener keyboardDownRightListener
protected ActionListener keyboardEndListener
protected ActionListener keyboardHomeListener
protected ActionListener keyboardResizeToggleListener
protected ActionListener keyboardUpLeftListener
protected static int KEYBOARD_DIVIDER_MOVE_OFFSET
protected BasicSplitPaneUI.BasicHorizontalLayoutManager layoutManager
protected KeyStroke leftKey
protected Component nonContinuousLayoutDivider
protected static final String NON_CONTINUOUS_DIVIDER
protected PropertyChangeListener propertyChangeListener
protected KeyStroke rightKey
protected JSplitPane splitPane
protected KeyStroke upKey
Constructor Detail |
---|
public BasicSplitPaneUI()
Method Detail |
---|
public BasicSplitPaneDivider createDefaultDivider()
protected Component createDefaultNonContinuousLayoutDivider()
protected FocusListener createFocusListener()
protected ActionListener createKeyboardDownRightListener()
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()
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()
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()
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()
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()
public static ComponentUI createUI(JComponent x)
x
protected void dragDividerTo(int location)
location
protected void finishDraggingTo(int location)
location
public void finishedPaintingChildren(JSplitPane jc, Graphics g)
finishedPaintingChildren
in class SplitPaneUI
jc
g
public BasicSplitPaneDivider getDivider()
protected int getDividerBorderSize()
Returns the width of one side of the divider border.
public int getDividerLocation(JSplitPane jc)
getDividerLocation
in class SplitPaneUI
jc
public Insets getInsets(JComponent jc)
jc
public int getLastDragLocation()
public int getMaximumDividerLocation(JSplitPane jc)
getMaximumDividerLocation
in class SplitPaneUI
jc
public Dimension getMaximumSize(JComponent jc)
getMaximumSize
in class ComponentUI
jc
public int getMinimumDividerLocation(JSplitPane jc)
getMinimumDividerLocation
in class SplitPaneUI
jc
public Dimension getMinimumSize(JComponent jc)
getMinimumSize
in class ComponentUI
jc
public Component getNonContinuousLayoutDivider()
public int getOrientation()
public Dimension getPreferredSize(JComponent jc)
getPreferredSize
in class ComponentUI
jc
public JSplitPane getSplitPane()
protected void installDefaults()
protected void installKeyboardActions()
protected void installListeners()
public void installUI(JComponent c)
installUI
in class ComponentUI
c
public boolean isContinuousLayout()
public void paint(Graphics g, JComponent jc)
paint
in class ComponentUI
g
jc
protected void resetLayoutManager()
public void resetToPreferredSizes(JSplitPane jc)
resetToPreferredSizes
in class SplitPaneUI
jc
public void setContinuousLayout(boolean b)
b
public void setDividerLocation(JSplitPane jc, int location)
setDividerLocation
in class SplitPaneUI
jc
location
public void setLastDragLocation(int l)
l
protected void setNonContinuousLayoutDivider(Component newDivider)
newDivider
protected void setNonContinuousLayoutDivider(Component newDivider, boolean rememberSizes)
newDivider
rememberSizes
public void setOrientation(int orientation)
orientation
protected void startDragging()
protected void uninstallDefaults()
protected void uninstallKeyboardActions()
protected void uninstallListeners()
public void uninstallUI(JComponent c)
uninstallUI
in class ComponentUI
c
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |