pivot.wtk
Class SplitPane
java.lang.Object
pivot.wtk.Component
pivot.wtk.Container
pivot.wtk.SplitPane
- All Implemented Interfaces:
- Iterable<Component>, Sequence<Component>, ConstrainedVisual, Visual
public class SplitPane
- extends Container
A SplitPane is a container component that splits its size up into
two regions, each of which is capable of holding one component. A split
pane may be setup to support either horizontal or veritcal splits. The area
in between the two regions is known as the splitter and typically
allows the user to adjust the partitioning between the two regions.
Since SplitPanes only support a single splitter, multiple
SplitPanes may be nested to support more complex layouts. In
that case, one split pane will "own" the other. The implication of this
is noticed when a split pane directly contains a child split pane of the same
orientation. The parent pane's separator will be able to travel past that
of it's child, but the child's separator will be unable to pass the parent's.
- Author:
- tvolkert
Nested Class Summary |
static class |
SplitPane.Region
Enumeration defining split pane regions. |
Methods inherited from class pivot.wtk.Container |
add, containsFocus, get, getComponentAt, getContainerListeners, getContainerMouseListeners, getContextKey, getDescendantAt, getFocusTraversalPolicy, getLength, indexOf, insert, isAncestor, isFocusable, iterator, load, mouseClick, mouseDown, mouseMove, mouseOut, mouseUp, mouseWheel, move, paint, remove, removeAll, requestFocus, setContextKey, setEnabled, setFocusTraversalPolicy, setParent, setTooltip, setVisible, store, update, validate |
Methods inherited from class pivot.wtk.Component |
clearFocus, clearFocus, finalize, getAttributes, getBounds, getComponentClassListeners, getComponentDataListeners, getComponentDecoratorListeners, getComponentDragDropListeners, getComponentKeyListeners, getComponentLayoutListeners, getComponentListeners, getComponentMouseButtonListeners, getComponentMouseListeners, getComponentMouseWheelListeners, getComponents, getComponentStateListeners, getCursor, getDecoratedBounds, getDecorators, getDisplay, getDragSource, getDropTarget, getFocusedComponent, getGraphics, getHandle, getHeight, getLocation, getParent, getPreferredHeight, getPreferredHeight, getPreferredSize, getPreferredWidth, getPreferredWidth, getSize, getSkin, getStyles, getTooltipText, getUserData, getVisibleArea, getVisibleArea, getVisibleArea, getWidth, getWindow, getX, getY, installSkin, invalidate, isBlocked, isDisplayable, isEnabled, isFocused, isMouseOver, isOpaque, isPreferredHeightSet, isPreferredSizeSet, isPreferredWidthSet, isShowing, isValid, isVisible, keyPressed, keyReleased, keyTyped, load, mapPointFromAncestor, mapPointToAncestor, mouseOver, repaint, repaint, repaint, repaint, repaint, repaint, requestFocus, scrollAreaToVisible, scrollAreaToVisible, setAttributes, setCursor, setCursor, setDisplayable, setDragSource, setDropTarget, setFocused, setHeight, setLocation, setLocation, setPreferredHeight, setPreferredSize, setPreferredSize, setPreferredWidth, setSize, setSize, setSkin, setStyles, setStyles, setStyles, setTooltipText, setWidth, setX, setY, store, toString, transferFocus |
SplitPane
public SplitPane()
SplitPane
public SplitPane(Orientation orientation)
getTopLeftComponent
public Component getTopLeftComponent()
setTopLeftComponent
public void setTopLeftComponent(Component topLeftComponent)
getBottomRightComponent
public Component getBottomRightComponent()
setBottomRightComponent
public void setBottomRightComponent(Component bottomRightComponent)
getTop
public Component getTop()
setTop
public void setTop(Component component)
getBottom
public Component getBottom()
setBottom
public void setBottom(Component component)
getLeft
public Component getLeft()
setLeft
public void setLeft(Component component)
getRight
public Component getRight()
setRight
public void setRight(Component component)
getOrientation
public Orientation getOrientation()
setOrientation
public void setOrientation(Orientation orientation)
setOrientation
public void setOrientation(String orientation)
getPrimaryRegion
public SplitPane.Region getPrimaryRegion()
setPrimaryRegion
public void setPrimaryRegion(SplitPane.Region primaryRegion)
setPrimaryRegion
public void setPrimaryRegion(String primaryRegion)
getSplitLocation
public int getSplitLocation()
setSplitLocation
public void setSplitLocation(int splitLocation)
getSplitBounds
public Span getSplitBounds()
setSplitBounds
public void setSplitBounds(Span splitBounds)
setSplitBounds
public final void setSplitBounds(Dictionary<String,?> splitBounds)
setSplitBounds
public final void setSplitBounds(String splitBounds)
isLocked
public boolean isLocked()
setLocked
public void setLocked(boolean locked)
remove
public Sequence<Component> remove(int index,
int count)
- Description copied from interface:
Sequence
- Removes one or more items from the sequence.
- Specified by:
remove
in interface Sequence<Component>
- Overrides:
remove
in class Container
- Parameters:
index
- The starting index to remove.count
- The number of items to remove, beginning with index.
- Returns:
- A sequence containing the items that were removed.
getSplitPaneListeners
public ListenerList<SplitPaneListener> getSplitPaneListeners()