au.edu.swin.synergy.lib
Class BSplitPane
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JSplitPane
|
+--au.edu.swin.synergy.lib.BSplitPane
- public class BSplitPane
- extends JSplitPane
- implements ComponentListener
Extends JSplitPane so that you can specify the divider location
before the split pane becomes visible.
- Author:
- Tristan Austin
Please complete these missing tags
- Copyright Belongs To:
-
- See Also:
- Serialized Form
Fields inherited from class javax.swing.JSplitPane |
BOTTOM,
CONTINUOUS_LAYOUT_PROPERTY,
continuousLayout,
DIVIDER,
DIVIDER_SIZE_PROPERTY,
dividerSize,
HORIZONTAL_SPLIT,
LAST_DIVIDER_LOCATION_PROPERTY,
lastDividerLocation,
LEFT,
leftComponent,
ONE_TOUCH_EXPANDABLE_PROPERTY,
oneTouchExpandable,
orientation,
ORIENTATION_PROPERTY,
RIGHT,
rightComponent,
TOP,
VERTICAL_SPLIT |
Constructor Summary |
BSplitPane(int dividerOrientation)
Creates a new BSplitPane with the given divider
orientation |
Method Summary |
void |
componentHidden(ComponentEvent componentEvent)
When a registered component is hidden, this method is called. |
void |
componentMoved(ComponentEvent componentEvent)
When a registered component is moved, this method is called. |
void |
componentResized(ComponentEvent componentEvent)
When a registered component is hidden, this method is called. |
void |
componentShown(ComponentEvent componentEvent)
When a registered component is hidden, this method is called. |
boolean |
isInitialised()
Indicates whether this split pane has been initialised
yet or not. |
void |
paintComponent(Graphics graphics)
When the split pane is first validated, the divider is set
to the pre-specified location
Please complete the missing tags for paintComponent |
void |
resetDividerLocation()
This will reset the location of the divider to whatever was
specified directly, as opposed to where it was moved to
by user intervention. |
void |
setBuffering(boolean buffering)
Sets the buffering state to that specified |
void |
setDividerLocation(int newDividerLocation)
Performs the same operation as the super class, sets the
divider location to the specified value in pixels. |
void |
setOppositeSplitPane(BSplitPane oppositeSplitPane)
If moving the divider in this split pane affects the location
of another split pane, setting that pane here will enable this
split pane to keep the other in the same location as it
was before. |
Methods inherited from class javax.swing.JSplitPane |
addImpl,
getAccessibleContext,
getBottomComponent,
getDividerLocation,
getDividerSize,
getLastDividerLocation,
getLeftComponent,
getMaximumDividerLocation,
getMinimumDividerLocation,
getOrientation,
getRightComponent,
getTopComponent,
getUI,
getUIClassID,
isContinuousLayout,
isOneTouchExpandable,
paintChildren,
paramString,
remove,
remove,
removeAll,
resetToPreferredSizes,
setBottomComponent,
setContinuousLayout,
setDividerLocation,
setDividerSize,
setLastDividerLocation,
setLeftComponent,
setOneTouchExpandable,
setOrientation,
setRightComponent,
setTopComponent,
setUI,
updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener,
addNotify,
addPropertyChangeListener,
addVetoableChangeListener,
computeVisibleRect,
contains,
createToolTip,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
fireVetoableChange,
getActionForKeyStroke,
getAlignmentX,
getAlignmentY,
getAutoscrolls,
getBorder,
getBounds,
getClientProperty,
getComponentGraphics,
getConditionForKeyStroke,
getDebugGraphicsOptions,
getGraphics,
getHeight,
getInsets,
getInsets,
getLocation,
getMaximumSize,
getMinimumSize,
getNextFocusableComponent,
getPreferredSize,
getRegisteredKeyStrokes,
getRootPane,
getSize,
getToolTipLocation,
getToolTipText,
getToolTipText,
getTopLevelAncestor,
getVisibleRect,
getWidth,
getX,
getY,
grabFocus,
hasFocus,
isDoubleBuffered,
isFocusCycleRoot,
isFocusTraversable,
isLightweightComponent,
isManagingFocus,
isOpaque,
isOptimizedDrawingEnabled,
isPaintingTile,
isRequestFocusEnabled,
isValidateRoot,
paint,
paintBorder,
paintImmediately,
paintImmediately,
processComponentKeyEvent,
processFocusEvent,
processKeyEvent,
processMouseMotionEvent,
putClientProperty,
registerKeyboardAction,
registerKeyboardAction,
removeAncestorListener,
removeNotify,
removePropertyChangeListener,
removeVetoableChangeListener,
repaint,
repaint,
requestDefaultFocus,
requestFocus,
resetKeyboardActions,
reshape,
revalidate,
scrollRectToVisible,
setAlignmentX,
setAlignmentY,
setAutoscrolls,
setBackground,
setBorder,
setDebugGraphicsOptions,
setDoubleBuffered,
setEnabled,
setFont,
setForeground,
setMaximumSize,
setMinimumSize,
setNextFocusableComponent,
setOpaque,
setPreferredSize,
setRequestFocusEnabled,
setToolTipText,
setUI,
setVisible,
unregisterKeyboardAction,
update |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
removeContainerListener,
setLayout,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
getBackground,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getInputContext,
getInputMethodRequests,
getLocale,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getToolkit,
getTreeLock,
gotFocus,
handleEvent,
hide,
imageUpdate,
inside,
isDisplayable,
isEnabled,
isLightweight,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
postEvent,
prepareImage,
prepareImage,
printAll,
processComponentEvent,
processInputMethodEvent,
processMouseEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
resize,
resize,
setBounds,
setBounds,
setComponentOrientation,
setCursor,
setDropTarget,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
show,
show,
size,
toString,
transferFocus |
BSplitPane
public BSplitPane(int dividerOrientation)
- Creates a new BSplitPane with the given divider
orientation
- Parameters:
dividerOrientation
- BSplitPane.VERTICAL_SPLIT BSplitPane.HORIZONTAL_SPLIT
Please complete the missing tags for BSplitPane
setOppositeSplitPane
public void setOppositeSplitPane(BSplitPane oppositeSplitPane)
- If moving the divider in this split pane affects the location
of another split pane, setting that pane here will enable this
split pane to keep the other in the same location as it
was before.
- Parameters:
oppositeSplitPane
- The split pane to keep still
Please complete the missing tags for setOppositeSplitPane- Returns:
-
- Pre Condition:
-
- Post Condition:
-
setDividerLocation
public void setDividerLocation(int newDividerLocation)
- Performs the same operation as the super class, sets the
divider location to the specified value in pixels. It also
stores a copy of the value so that if the split pane isn't
yet visible, it can set it again when it is.
- Parameters:
newDividerLocation
- The divider location to set to
Please complete the missing tags for setDividerLocation- Returns:
-
- Overrides:
- setDividerLocation in class JSplitPane
- Pre Condition:
-
- Post Condition:
-
setBuffering
public void setBuffering(boolean buffering)
- Sets the buffering state to that specified
- Parameters:
buffering
- True to buffer, false otherwise
Please complete the missing tags for setBuffering- Returns:
-
- Pre Condition:
-
- Post Condition:
-
isInitialised
public boolean isInitialised()
- Indicates whether this split pane has been initialised
yet or not. Initialised indicating that the divider location
has not been set.
- Parameters:
- - Returns:
- True if it has, false otherwise
Please complete the missing tags for isInitialised
- Pre Condition:
-
- Post Condition:
-
paintComponent
public void paintComponent(Graphics graphics)
- When the split pane is first validated, the divider is set
to the pre-specified location
Please complete the missing tags for paintComponent
- Parameters:
- - Returns:
-
- Overrides:
- paintComponent in class JComponent
- Pre Condition:
-
- Post Condition:
-
componentHidden
public void componentHidden(ComponentEvent componentEvent)
- When a registered component is hidden, this method is called.
- Specified by:
- componentHidden in interface ComponentListener
- Parameters:
componentEvent
- The event fired
Please complete the missing tags for componentHidden- Returns:
-
- Pre Condition:
-
- Post Condition:
-
componentMoved
public void componentMoved(ComponentEvent componentEvent)
- When a registered component is moved, this method is called.
- Specified by:
- componentMoved in interface ComponentListener
- Parameters:
componentEvent
- The event fired
Please complete the missing tags for componentMoved- Returns:
-
- Pre Condition:
-
- Post Condition:
-
resetDividerLocation
public void resetDividerLocation()
- This will reset the location of the divider to whatever was
specified directly, as opposed to where it was moved to
by user intervention.
Please complete the missing tags for resetDividerLocation
- Parameters:
- - Returns:
-
- Pre Condition:
-
- Post Condition:
-
componentResized
public void componentResized(ComponentEvent componentEvent)
- When a registered component is hidden, this method is called.
- Specified by:
- componentResized in interface ComponentListener
- Parameters:
componentEvent
- The event fired
Please complete the missing tags for componentResized- Returns:
-
- Pre Condition:
-
- Post Condition:
-
componentShown
public void componentShown(ComponentEvent componentEvent)
- When a registered component is hidden, this method is called.
- Specified by:
- componentShown in interface ComponentListener
- Parameters:
componentEvent
- The event fired
Please complete the missing tags for componentShown- Returns:
-
- Pre Condition:
-
- Post Condition:
-