public class WizardSplitDockStation
extends bibliothek.gui.dock.SplitDockStation
implements javax.swing.Scrollable
WizardSplitDockStation
has some additional restrictions and other behavior than an ordinary SplitDockStation
:
Dockable
s are ordered in columns.JScrollPane
, it even implements Scrollable
to fully support the JScrollPane
.Modifier and Type | Class and Description |
---|---|
static class |
WizardSplitDockStation.Side
the side where dockables are pushed to
|
class |
WizardSplitDockStation.WizardLayoutManager
This
SplitLayoutManager adds restrictions on how a drag and drop operation
can be performed, and what the boundaries of the children are:
DnD operations must ensure that the Dockable s remain in columns, see WizardSplitDockStation.WizardLayoutManager.ensureDropLocation(PutInfo)
|
bibliothek.gui.dock.SplitDockStation.Access, bibliothek.gui.dock.SplitDockStation.Orientation
javax.swing.JLayeredPane.AccessibleJLayeredPane
javax.swing.JComponent.AccessibleJComponent
DISPLAYER_ID, DIVIDER_STRATEGY, dockStationListeners, LAYOUT_MANAGER, MAXIMIZE_ACCELERATOR, TITLE_ID
DEFAULT_LAYER, DRAG_LAYER, FRAME_CONTENT_LAYER, LAYER_PROPERTY, MODAL_LAYER, PALETTE_LAYER, POPUP_LAYER
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
WizardSplitDockStation(WizardSplitDockStation.Side side)
Creates a new station.
|
Modifier and Type | Method and Description |
---|---|
boolean |
drop(bibliothek.gui.Dockable dockable,
bibliothek.gui.dock.station.split.SplitDockPlaceholderProperty property)
Ensures that the dropped
Dockable does not come to rest at a location that would destroy the columns. |
protected boolean |
dropAside(bibliothek.gui.dock.station.split.SplitNode neighbor,
bibliothek.gui.dock.station.split.PutInfo.Put put,
bibliothek.gui.Dockable dockable,
bibliothek.gui.dock.station.split.Leaf leaf,
double divider,
bibliothek.gui.dock.DockHierarchyLock.Token token) |
protected boolean |
dropOver(bibliothek.gui.dock.station.split.Leaf leaf,
bibliothek.gui.Dockable dockable,
bibliothek.gui.dock.layout.DockableProperty property,
bibliothek.gui.dock.station.support.CombinerSource source,
bibliothek.gui.dock.station.support.CombinerTarget target) |
java.lang.String |
getFactoryID() |
int |
getMaxColumnCount()
Gets the maximal amount of columns.
|
java.awt.Dimension |
getMinimumSize() |
PersistentColumn[] |
getPersistentColumns() |
java.awt.Dimension |
getPreferredScrollableViewportSize() |
java.awt.Dimension |
getPreferredSize() |
int |
getScrollableBlockIncrement(java.awt.Rectangle visibleRect,
int orientation,
int direction) |
boolean |
getScrollableTracksViewportHeight() |
boolean |
getScrollableTracksViewportWidth() |
int |
getScrollableUnitIncrement(java.awt.Rectangle visibleRect,
int orientation,
int direction) |
WizardSplitDockStation.Side |
getSide()
Gets the side to which this station leans.
|
int |
getSideGap()
Gets the size of the empty space at the moveable side of this station.
|
WizardSpanStrategy |
getWizardSpanStrategy()
Gets the strategy which is responsible for managing the
Span s. |
WizardSplitDockStation.WizardLayoutManager |
getWizardSplitLayoutManager() |
boolean |
isResizeOnRemove()
Tells whether the column of a removed
Dockable is automatically resized. |
protected void |
paintOverlay(java.awt.Graphics g) |
void |
resetToPreferredSizes()
Changes the size of all columns and cells such that they met their preferred size.
|
void |
revalidateOutside()
Calls
JComponent.revalidate() on the first JComponent that is outside of the current JScrollPane . |
void |
setController(bibliothek.gui.DockController controller) |
void |
setDividerSize(int dividerSize) |
void |
setMaxColumnCount(int maxColumnCount)
Sets the maximum amount of columns that the user can create.
|
void |
setPersistentColumns(bibliothek.gui.Dockable[][] columnsAndCells,
int[][] cellSizes,
int[] columnSizes) |
protected void |
setPut(bibliothek.gui.dock.station.split.PutInfo info) |
void |
setResizeOnRemove(boolean resizeOnRemove)
If a
Dockable is removed from this WizardSplitDockStation , then the column of the
Dockable is resized such that it has again its preferred size. |
void |
setSide(WizardSplitDockStation.Side side)
Sets the side to which this station leans.
|
void |
setSideGap(int sideGap)
Sets an empty space at the moveable side of this station.
|
protected void |
unsetPut() |
accept, accept, accept, addDockable, addDockableListener, addDockableStateListener, addDockHierarchyListener, addDockStationListener, addMouseInputListener, addSplitDockStationListener, asDockable, asDockStation, aside, bind, callDockUiUpdateTheme, canDrag, canReplace, changed, configureDisplayerHints, createFullScreenAction, createPlaceholderConverter, createRootHandler, createTree, createTree, discard, drag, drop, drop, drop, drop, drop, dropGrid, dropOver, dropTree, dropTree, fireFullScreenChanged, fireTitleExchanged, fireTitleExchanged, getAccess, getBorderSideSnapSize, getCombiner, getComponent, getComponentConfiguration, getConfigurableDisplayerHints, getController, getCurrentSplitLayoutManager, getDirectActionOffers, getDisplayerFactory, getDisplayers, getDividerSize, getDividerStrategy, getDockable, getDockableCount, getDockableLocationProperty, getDockablePathProperty, getDockablePathProperty, getDockablePlaceholderProperty, getDockableProperty, getDockParent, getDropInfo, getDropInfo, getElement, getFrontDockable, getFullScreen, getGlobalActionOffers, getIndirectActionOffers, getLayers, getLocalActionOffers, getLowestNode, getMinimumLeafSize, getNode, getNodeFactory, getPaint, getPlaceholderMapping, getPlaceholders, getPlaceholderStrategy, getPopupLocation, getRoot, getSideSnapSize, getSpanStrategy, getSplitLayoutManager, getTheme, getTitleIcon, getTitleText, getTitleToolTip, hasFullScreenAction, indexOfDockable, isAllowSideSnap, isChildShowing, isContinousDisplay, isDisabled, isDockableShowing, isDockableVisible, isExpandOnDoubleclick, isFullScreen, isResizingEnabled, isStationShowing, isStationVisible, isUsedAsTitle, isVisible, listBoundTitles, move, prepareDrag, prepareDrop, removeAllDockables, removeDockable, removeDockableListener, removeDockableStateListener, removeDockHierarchyListener, removeDockStationListener, removeMouseInputListener, removePlaceholder, removePlaceholders, removeSplitDockStationListener, replace, replace, requestChildDisplayer, requestChildDockTitle, requestDisplayer, requestDockTitle, resetTitleIcon, root, setAllowSideSnap, setBorderSideSnapSize, setComponentConfiguration, setContinousDisplay, setDisabled, setDividerStrategy, setDockParent, setDropInfo, setExpandOnDoubleclick, setFrontDockable, setFullScreen, setFullScreenAction, setMinimumLeafSize, setNextFullScreen, setNodeFactory, setPlaceholders, setPlaceholderStrategy, setResizingEnabled, setSideSnapSize, setSplitLayoutManager, setTitleIcon, setTitleText, setTitleToolTip, shouldFocus, shouldTransfersFocus, toString, unbind, unsetDropInfo, updateBounds, updateConfigurableDisplayerHints, updateTheme, updateVisibility, visit
createGlassPane, install, isUseGlassPane, setUseGlassPane, uninstall
doLayout, getBasePane, getContentPane, getMaximumSize, isSolid, setBasePane, setContentPane, setSolid
addImpl, getAccessibleContext, getComponentCountInLayer, getComponentsInLayer, getComponentToLayer, getIndexOf, getLayer, getLayer, getLayeredPaneAbove, getObjectForLayer, getPosition, highestLayer, insertIndexForLayer, isOptimizedDrawingEnabled, lowestLayer, moveToBack, moveToFront, paint, paramString, putLayer, remove, removeAll, setLayer, setLayer, setPosition
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
public WizardSplitDockStation(WizardSplitDockStation.Side side)
side
- the side at which this station is presented, e.g. if this station is at the left side
of a JFrame
, the parameter should be WizardSplitDockStation.Side.LEFT
public void revalidateOutside()
JComponent.revalidate()
on the first JComponent
that is outside of the current JScrollPane
.public java.lang.String getFactoryID()
getFactoryID
in interface bibliothek.gui.dock.DockElement
getFactoryID
in class bibliothek.gui.dock.SplitDockStation
public WizardSplitDockStation.WizardLayoutManager getWizardSplitLayoutManager()
public WizardSpanStrategy getWizardSpanStrategy()
Span
s.public void setDividerSize(int dividerSize)
setDividerSize
in class bibliothek.gui.dock.SplitDockStation
public void setResizeOnRemove(boolean resizeOnRemove)
Dockable
is removed from this WizardSplitDockStation
, then the column of the
Dockable
is resized such that it has again its preferred size.resizeOnRemove
- whether to automatically resize the columnspublic boolean isResizeOnRemove()
Dockable
is automatically resized.public void setController(bibliothek.gui.DockController controller)
setController
in interface bibliothek.gui.Dockable
setController
in interface bibliothek.gui.DockStation
setController
in class bibliothek.gui.dock.SplitDockStation
protected void setPut(bibliothek.gui.dock.station.split.PutInfo info)
setPut
in class bibliothek.gui.dock.SplitDockStation
protected void unsetPut()
unsetPut
in class bibliothek.gui.dock.SplitDockStation
protected boolean dropAside(bibliothek.gui.dock.station.split.SplitNode neighbor, bibliothek.gui.dock.station.split.PutInfo.Put put, bibliothek.gui.Dockable dockable, bibliothek.gui.dock.station.split.Leaf leaf, double divider, bibliothek.gui.dock.DockHierarchyLock.Token token)
dropAside
in class bibliothek.gui.dock.SplitDockStation
protected boolean dropOver(bibliothek.gui.dock.station.split.Leaf leaf, bibliothek.gui.Dockable dockable, bibliothek.gui.dock.layout.DockableProperty property, bibliothek.gui.dock.station.support.CombinerSource source, bibliothek.gui.dock.station.support.CombinerTarget target)
dropOver
in class bibliothek.gui.dock.SplitDockStation
public int getSideGap()
public void setSideGap(int sideGap)
sideGap
- the size of the gap, should be at least 0
public WizardSplitDockStation.Side getSide()
public void setSide(WizardSplitDockStation.Side side)
side
- the new side, not null
public int getScrollableUnitIncrement(java.awt.Rectangle visibleRect, int orientation, int direction)
getScrollableUnitIncrement
in interface javax.swing.Scrollable
public int getScrollableBlockIncrement(java.awt.Rectangle visibleRect, int orientation, int direction)
getScrollableBlockIncrement
in interface javax.swing.Scrollable
public java.awt.Dimension getPreferredScrollableViewportSize()
getPreferredScrollableViewportSize
in interface javax.swing.Scrollable
public boolean getScrollableTracksViewportWidth()
getScrollableTracksViewportWidth
in interface javax.swing.Scrollable
public boolean getScrollableTracksViewportHeight()
getScrollableTracksViewportHeight
in interface javax.swing.Scrollable
public java.awt.Dimension getMinimumSize()
getMinimumSize
in class bibliothek.gui.dock.SplitDockStation
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class bibliothek.gui.dock.SplitDockStation
protected void paintOverlay(java.awt.Graphics g)
paintOverlay
in class bibliothek.gui.dock.SplitDockStation
public PersistentColumn[] getPersistentColumns()
public void setPersistentColumns(bibliothek.gui.Dockable[][] columnsAndCells, int[][] cellSizes, int[] columnSizes)
public int getMaxColumnCount()
-1
public void setMaxColumnCount(int maxColumnCount)
maxColumnCount
.-1
can be set, telling the station that there is no maximum.maxColumnCount
- the maximum amount of columns, -1
or any number that is greater than 0
public boolean drop(bibliothek.gui.Dockable dockable, bibliothek.gui.dock.station.split.SplitDockPlaceholderProperty property)
Dockable
does not come to rest at a location that would destroy the columns.drop
in class bibliothek.gui.dock.SplitDockStation
public void resetToPreferredSizes()