public class ToolbarDockPerspective extends ListDockableStationPerspective
PerspectiveStation representing a ToolbarDockStation.| Constructor and Description |
|---|
ToolbarDockPerspective()
Creates a new, empty station.
|
ToolbarDockPerspective(ToolbarDockStationLayout layout,
Map<Integer,PerspectiveDockable> children)
Creates a new station.
|
| Modifier and Type | Method and Description |
|---|---|
protected DockableProperty |
getDockableProperty(int index,
Path placeholder,
PerspectiveDockable child,
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() |
PlaceholderMap |
getPlaceholders(Map<PerspectiveDockable,Integer> children)
Converts the list of children of this perspective into a
PlaceholderMap. |
void |
read(ToolbarDockStationLayout layout,
Map<Integer,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, setPlaceholderspublic ToolbarDockPerspective()
public ToolbarDockPerspective(ToolbarDockStationLayout layout, Map<Integer,PerspectiveDockable> children)
layout - the layout of the stationchildren - the children of the stationpublic void read(ToolbarDockStationLayout layout, Map<Integer,PerspectiveDockable> children)
layout - the new layoutchildren - the new childrenpublic PlaceholderMap getPlaceholders(Map<PerspectiveDockable,Integer> children)
PlaceholderMap.children - the unique identifier of each childpublic String getFactoryID()
public void setExpandedState(ExpandedState state)
state - the preferred size, not nullpublic ExpandedState getExpandedState()
nullprotected DockableProperty getDockableProperty(int index, Path placeholder, PerspectiveDockable child, PerspectiveDockable target)
ListDockableStationPerspectiveListDockableStationPerspective.getDockableProperty(PerspectiveDockable, PerspectiveDockable), returns a new
DockableProperty which matches the location described by index and placeholder.getDockableProperty in class ListDockableStationPerspectiveindex - the index of the item in the list of dockables, can be -1placeholder - the name of the item, can be nullchild - the child whose location is requestedtarget - the item whose location is requested, this may be childchildCopyright © 2018. All rights reserved.