public class WizardSplitDockStation extends SplitDockStation implements Scrollable
WizardSplitDockStation has some additional restrictions and other behavior than an ordinary SplitDockStation:
Dockables 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 Dockables remain in columns, see WizardSplitDockStation.WizardLayoutManager.ensureDropLocation(PutInfo)
|
SplitDockStation.Access, SplitDockStation.OrientationJLayeredPane.AccessibleJLayeredPaneJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategyDISPLAYER_ID, DIVIDER_STRATEGY, dockStationListeners, LAYOUT_MANAGER, MAXIMIZE_ACCELERATOR, TITLE_IDDEFAULT_LAYER, DRAG_LAYER, FRAME_CONTENT_LAYER, LAYER_PROPERTY, MODAL_LAYER, PALETTE_LAYER, POPUP_LAYERlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
WizardSplitDockStation(WizardSplitDockStation.Side side)
Creates a new station.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
drop(Dockable dockable,
SplitDockPlaceholderProperty property)
Ensures that the dropped
Dockable does not come to rest at a location that would destroy the columns. |
protected boolean |
dropAside(SplitNode neighbor,
PutInfo.Put put,
Dockable dockable,
Leaf leaf,
double divider,
DockHierarchyLock.Token token) |
protected boolean |
dropOver(Leaf leaf,
Dockable dockable,
DockableProperty property,
CombinerSource source,
CombinerTarget target) |
String |
getFactoryID() |
int |
getMaxColumnCount()
Gets the maximal amount of columns.
|
Dimension |
getMinimumSize() |
PersistentColumn[] |
getPersistentColumns() |
Dimension |
getPreferredScrollableViewportSize() |
Dimension |
getPreferredSize() |
int |
getScrollableBlockIncrement(Rectangle visibleRect,
int orientation,
int direction) |
boolean |
getScrollableTracksViewportHeight() |
boolean |
getScrollableTracksViewportWidth() |
int |
getScrollableUnitIncrement(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
Spans. |
WizardSplitDockStation.WizardLayoutManager |
getWizardSplitLayoutManager() |
boolean |
isResizeOnRemove()
Tells whether the column of a removed
Dockable is automatically resized. |
protected void |
paintOverlay(Graphics g) |
void |
resetToPreferredSizes()
Changes the size of all columns and cells such that they met their preferred size.
|
void |
revalidateOutside()
|
void |
setController(DockController controller) |
void |
setDividerSize(int dividerSize) |
void |
setMaxColumnCount(int maxColumnCount)
Sets the maximum amount of columns that the user can create.
|
void |
setPersistentColumns(Dockable[][] columnsAndCells,
int[][] cellSizes,
int[] columnSizes) |
protected void |
setPut(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, visitcreateGlassPane, install, isUseGlassPane, setUseGlassPane, uninstalldoLayout, getBasePane, getContentPane, getMaximumSize, isSolid, setBasePane, setContentPane, setSolidaddImpl, getAccessibleContext, getComponentCountInLayer, getComponentsInLayer, getComponentToLayer, getIndexOf, getLayer, getLayer, getLayeredPaneAbove, getObjectForLayer, getPosition, highestLayer, insertIndexForLayer, isOptimizedDrawingEnabled, lowestLayer, moveToBack, moveToFront, paint, paramString, putLayer, remove, removeAll, setLayer, setLayer, setPositionaddAncestorListener, 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, updateUIadd, 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, validateTreeaction, 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, transferFocusUpCyclepublic 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.LEFTpublic void revalidateOutside()
public String getFactoryID()
getFactoryID in interface DockElementgetFactoryID in class SplitDockStationpublic WizardSplitDockStation.WizardLayoutManager getWizardSplitLayoutManager()
public WizardSpanStrategy getWizardSpanStrategy()
Spans.public void setDividerSize(int dividerSize)
setDividerSize in class SplitDockStationpublic 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(DockController controller)
setController in interface DockablesetController in interface DockStationsetController in class SplitDockStationprotected void setPut(PutInfo info)
setPut in class SplitDockStationprotected void unsetPut()
unsetPut in class SplitDockStationprotected boolean dropAside(SplitNode neighbor, PutInfo.Put put, Dockable dockable, Leaf leaf, double divider, DockHierarchyLock.Token token)
dropAside in class SplitDockStationprotected boolean dropOver(Leaf leaf, Dockable dockable, DockableProperty property, CombinerSource source, CombinerTarget target)
dropOver in class SplitDockStationpublic int getSideGap()
public void setSideGap(int sideGap)
sideGap - the size of the gap, should be at least 0public WizardSplitDockStation.Side getSide()
public void setSide(WizardSplitDockStation.Side side)
side - the new side, not nullpublic int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
getScrollableUnitIncrement in interface Scrollablepublic int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
getScrollableBlockIncrement in interface Scrollablepublic Dimension getPreferredScrollableViewportSize()
getPreferredScrollableViewportSize in interface Scrollablepublic boolean getScrollableTracksViewportWidth()
getScrollableTracksViewportWidth in interface Scrollablepublic boolean getScrollableTracksViewportHeight()
getScrollableTracksViewportHeight in interface Scrollablepublic Dimension getMinimumSize()
getMinimumSize in class SplitDockStationpublic Dimension getPreferredSize()
getPreferredSize in class SplitDockStationprotected void paintOverlay(Graphics g)
paintOverlay in class SplitDockStationpublic PersistentColumn[] getPersistentColumns()
public void setPersistentColumns(Dockable[][] columnsAndCells, int[][] cellSizes, int[] columnSizes)
public int getMaxColumnCount()
-1public 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 0public boolean drop(Dockable dockable, SplitDockPlaceholderProperty property)
Dockable does not come to rest at a location that would destroy the columns.drop in class SplitDockStationpublic void resetToPreferredSizes()
Copyright © 2018. All rights reserved.