|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLayeredPane
bibliothek.gui.dock.station.OverpaintablePanel
bibliothek.gui.dock.security.SecureContainer
bibliothek.gui.dock.SplitDockStation
bibliothek.gui.dock.wizard.WizardSplitDockStation
public class WizardSplitDockStation
A 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
.
Nested Class Summary | |
---|---|
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)
|
Nested classes/interfaces inherited from class bibliothek.gui.dock.SplitDockStation |
---|
bibliothek.gui.dock.SplitDockStation.Access, bibliothek.gui.dock.SplitDockStation.Orientation, bibliothek.gui.dock.SplitDockStation.SplitDropOperation |
Nested classes/interfaces inherited from class javax.swing.JLayeredPane |
---|
JLayeredPane.AccessibleJLayeredPane |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class bibliothek.gui.dock.SplitDockStation |
---|
DISPLAYER_ID, DIVIDER_STRATEGY, dockStationListeners, LAYOUT_MANAGER, MAXIMIZE_ACCELERATOR, TITLE_ID |
Fields inherited from class javax.swing.JLayeredPane |
---|
DEFAULT_LAYER, DRAG_LAYER, FRAME_CONTENT_LAYER, LAYER_PROPERTY, MODAL_LAYER, PALETTE_LAYER, POPUP_LAYER |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
WizardSplitDockStation(WizardSplitDockStation.Side side)
Creates a new station. |
Method Summary | |
---|---|
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)
|
String |
getFactoryID()
|
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 Span s. |
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()
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 |
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()
|
Methods inherited from class bibliothek.gui.dock.SplitDockStation |
---|
accept, accept, accept, addDockable, addDockableListener, addDockableStateListener, addDockHierarchyListener, addDockStationListener, addMouseInputListener, addSplitDockStationListener, asDockable, asDockStation, bind, callDockUiUpdateTheme, canDrag, canReplace, changed, configureDisplayerHints, createFullScreenAction, createPlaceholderConverter, createTree, createTree, discard, drag, drop, drop, drop, drop, drop, dropGrid, dropOver, dropTree, dropTree, fireFullScreenChanged, fireTitleExchanged, fireTitleExchanged, getAccess, getBorderSideSnapSize, getCombiner, getComponent, getConfigurableDisplayerHints, getController, getCurrentSplitLayoutManager, getDirectActionOffers, getDisplayerFactory, getDisplayers, getDividerSize, getDividerStrategy, getDockable, getDockableCount, getDockableLocationProperty, getDockablePathProperty, getDockablePlaceholderProperty, getDockableProperty, getDockParent, getDropInfo, getElement, getFrontDockable, getFullScreen, getGlobalActionOffers, getIndirectActionOffers, getLayers, getLocalActionOffers, getMinimumLeafSize, getNode, getNodeFactory, getPaint, 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, setContinousDisplay, setDisabled, setDividerStrategy, setDockParent, setExpandOnDoubleclick, setFrontDockable, setFullScreen, setFullScreenAction, setMinimumLeafSize, setNextFullScreen, setNodeFactory, setPlaceholders, setPlaceholderStrategy, setResizingEnabled, setSideSnapSize, setSplitLayoutManager, setTitleIcon, setTitleText, setTitleToolTip, shouldFocus, shouldTransfersFocus, toString, unbind, updateBounds, updateConfigurableDisplayerHints, updateTheme, updateVisibility, visit |
Methods inherited from class bibliothek.gui.dock.security.SecureContainer |
---|
createGlassPane, install, isUseGlassPane, setUseGlassPane, uninstall |
Methods inherited from class bibliothek.gui.dock.station.OverpaintablePanel |
---|
doLayout, getBasePane, getContentPane, getMaximumSize, isSolid, setBasePane, setContentPane, setSolid |
Methods inherited from class javax.swing.JLayeredPane |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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
Method Detail |
---|
public void revalidateOutside()
JComponent.revalidate()
on the first JComponent
that is outside of the current JScrollPane
.
public 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 columnsspublic 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(Rectangle visibleRect, int orientation, int direction)
getScrollableUnitIncrement
in interface Scrollable
public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
getScrollableBlockIncrement
in interface Scrollable
public Dimension getPreferredScrollableViewportSize()
getPreferredScrollableViewportSize
in interface Scrollable
public boolean getScrollableTracksViewportWidth()
getScrollableTracksViewportWidth
in interface Scrollable
public boolean getScrollableTracksViewportHeight()
getScrollableTracksViewportHeight
in interface Scrollable
public Dimension getMinimumSize()
getMinimumSize
in class bibliothek.gui.dock.SplitDockStation
public Dimension getPreferredSize()
getPreferredSize
in class bibliothek.gui.dock.SplitDockStation
protected void paintOverlay(Graphics g)
paintOverlay
in class bibliothek.gui.dock.SplitDockStation
public PersistentColumn[] getPersistentColumns()
public void setPersistentColumns(bibliothek.gui.Dockable[][] columnsAndCells, int[][] cellSizes, int[] columnSizes)
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |