public class ToolbarDockPerspective extends ListDockableStationPerspective
PerspectiveStation
representing a ToolbarDockStation
.Constructor and Description |
---|
ToolbarDockPerspective()
Creates a new, empty station.
|
ToolbarDockPerspective(ToolbarDockStationLayout layout,
Map<Integer,bibliothek.gui.dock.perspective.PerspectiveDockable> children)
Creates a new station.
|
Modifier and Type | Method and Description |
---|---|
protected bibliothek.gui.dock.layout.DockableProperty |
getDockableProperty(int index,
bibliothek.util.Path placeholder,
bibliothek.gui.dock.perspective.PerspectiveDockable child,
bibliothek.gui.dock.perspective.PerspectiveDockable target)
Called by
ListDockableStationPerspective.getDockableProperty(PerspectiveDockable, PerspectiveDockable) , returns a new
DockableProperty which matches the location described by index and placeholder . |
ExpandedState |
getExpandedState()
Gets the preferred size of this station.
|
String |
getFactoryID() |
bibliothek.gui.dock.station.support.PlaceholderMap |
getPlaceholders(Map<bibliothek.gui.dock.perspective.PerspectiveDockable,Integer> children)
Converts the list of children of this perspective into a
PlaceholderMap . |
void |
read(ToolbarDockStationLayout layout,
Map<Integer,bibliothek.gui.dock.perspective.PerspectiveDockable> children)
Updates the layout of this station.
|
void |
setExpandedState(ExpandedState state)
Sets the preferred size of this station.
|
add, add, asDockable, asStation, getDockable, getDockableCount, getDockableProperty, getDockables, getParent, getPlaceholder, getPlaceholders, indexOf, remove, remove, replace, setDockables, setParent, setPlaceholders
public ToolbarDockPerspective()
public ToolbarDockPerspective(ToolbarDockStationLayout layout, Map<Integer,bibliothek.gui.dock.perspective.PerspectiveDockable> children)
layout
- the layout of the stationchildren
- the children of the stationpublic void read(ToolbarDockStationLayout layout, Map<Integer,bibliothek.gui.dock.perspective.PerspectiveDockable> children)
layout
- the new layoutchildren
- the new childrenpublic bibliothek.gui.dock.station.support.PlaceholderMap getPlaceholders(Map<bibliothek.gui.dock.perspective.PerspectiveDockable,Integer> children)
PlaceholderMap
.children
- the unique identifier of each childpublic String getFactoryID()
public void setExpandedState(ExpandedState state)
state
- the preferred size, not null
public ExpandedState getExpandedState()
null
protected bibliothek.gui.dock.layout.DockableProperty getDockableProperty(int index, bibliothek.util.Path placeholder, bibliothek.gui.dock.perspective.PerspectiveDockable child, bibliothek.gui.dock.perspective.PerspectiveDockable target)
ListDockableStationPerspective
ListDockableStationPerspective.getDockableProperty(PerspectiveDockable, PerspectiveDockable)
, returns a new
DockableProperty
which matches the location described by index
and placeholder
.getDockableProperty
in class ListDockableStationPerspective
index
- the index of the item in the list of dockables, can be -1
placeholder
- the name of the item, can be null
child
- the child whose location is requestedtarget
- the item whose location is requested, this may be child
child