public class ToolbarGroupDockPerspective extends Object implements PerspectiveStation, PerspectiveDockable
PerspectiveStation representing a ToolbarGroupDockStation.| Constructor and Description |
|---|
ToolbarGroupDockPerspective()
Creates a new, empty station.
|
ToolbarGroupDockPerspective(ToolbarGroupDockStationLayout layout,
Map<Integer,PerspectiveDockable> children)
Creates a new station.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int column,
PerspectiveDockable dockable)
Adds
dockable at the end of column column. |
PerspectiveDockable |
asDockable() |
PerspectiveStation |
asStation() |
int |
getColumnCount()
Gets the number of columns, only includes columns that contain at least one child.
|
PerspectiveDockable |
getDockable(int index) |
PerspectiveDockable |
getDockable(int column,
int line)
Gets the item that is stored in column
column at line line. |
int |
getDockableCount() |
DockableProperty |
getDockableProperty(PerspectiveDockable child,
PerspectiveDockable target) |
PerspectivePlaceholderToolbarGrid |
getDockables()
Allows access to the internal data structure of this station.
|
ExpandedState |
getExpandedState()
Gets the default size of this station.
|
String |
getFactoryID() |
int |
getLineCount(int column)
Gets the number of items in
column. |
ToolbarColumnModel<PerspectiveDockable,PerspectiveDockable> |
getModel()
Gets access to an abstraction of the model of this station.
|
Orientation |
getOrientation()
Gets the orientation of this station.
|
PerspectiveStation |
getParent() |
Path |
getPlaceholder() |
PlaceholderMap |
getPlaceholders() |
void |
insert(int column,
int line,
PerspectiveDockable dockable)
Adds
dockable to column column at position line. |
void |
insert(int column,
PerspectiveDockable dockable)
Adds a new column to the grid and inserts
dockable as first child. |
void |
read(ToolbarGroupDockStationLayout layout,
Map<Integer,PerspectiveDockable> children)
Updates the layout of this station by reading
layout. |
void |
remove(int column,
int line)
Removes the item at
column/line. |
boolean |
remove(PerspectiveDockable dockable) |
void |
replace(PerspectiveDockable oldDockable,
PerspectiveDockable newDockable) |
void |
setExpandedtState(ExpandedState state)
Sets the default size of this station
|
void |
setOrientation(Orientation orientation)
Sets the orientation of this station.
|
void |
setParent(PerspectiveStation parent) |
void |
setPlaceholders(PlaceholderMap placeholders) |
PlaceholderMap |
toMap(Map<PerspectiveDockable,Integer> children)
Converts this station into a map of
PerspectiveDockables. |
public ToolbarGroupDockPerspective()
public ToolbarGroupDockPerspective(ToolbarGroupDockStationLayout layout, Map<Integer,PerspectiveDockable> children)
layout - the layout of the stationchildren - the unique identifiers of the childrenpublic void read(ToolbarGroupDockStationLayout layout, Map<Integer,PerspectiveDockable> children)
layout.layout - the new layoutchildren - the new children of this stationpublic PerspectivePlaceholderToolbarGrid getDockables()
public PlaceholderMap toMap(Map<PerspectiveDockable,Integer> children)
PerspectiveDockables.children - the unique identifiers of the childrenpublic void setExpandedtState(ExpandedState state)
state - the size, not nullpublic ExpandedState getExpandedState()
nullpublic void setOrientation(Orientation orientation)
DockStation.orientation - the orientation, must not be nullpublic Orientation getOrientation()
nullpublic ToolbarColumnModel<PerspectiveDockable,PerspectiveDockable> getModel()
ToolbarGroupDockStation, hence it's behavior is identical.public PerspectiveDockable getDockable(int column, int line)
column at line line.column - the column in which to searchline - the line in which the dockable should be foundcolumn/linepublic int getColumnCount()
public int getLineCount(int column)
column.column - the column whose size is askedcolumnpublic void add(int column,
PerspectiveDockable dockable)
dockable at the end of column column. This method
may create a new column.column - the index of a columndockable - the item to add to columnpublic void insert(int column,
int line,
PerspectiveDockable dockable)
dockable to column column at position line.
This method may create a new column.column - the column in which to insert the new itemline - the position in the columndockable - the new itempublic void insert(int column,
PerspectiveDockable dockable)
dockable as first child. This method
will try to reuse existing but empty columns if possible.column - The index of the new column, can be -1 to create a column at the
beginning of the listdockable - the new itempublic void remove(int column,
int line)
column/line.column - the column from which the dockable should be removedline - the line in which the dockable is currently storedpublic String getFactoryID()
getFactoryID in interface PerspectiveElementpublic PerspectiveStation asStation()
asStation in interface PerspectiveElementpublic PerspectiveDockable asDockable()
asDockable in interface PerspectiveElementasDockable in interface PlaceholderListItem<PerspectiveDockable>public Path getPlaceholder()
getPlaceholder in interface PerspectiveDockablepublic PerspectiveStation getParent()
getParent in interface PerspectiveDockablepublic void setParent(PerspectiveStation parent)
setParent in interface PerspectiveDockablepublic int getDockableCount()
getDockableCount in interface PerspectiveStationpublic PerspectiveDockable getDockable(int index)
getDockable in interface PerspectiveStationpublic DockableProperty getDockableProperty(PerspectiveDockable child, PerspectiveDockable target)
getDockableProperty in interface PerspectiveStationpublic PlaceholderMap getPlaceholders()
getPlaceholders in interface PerspectiveStationpublic void setPlaceholders(PlaceholderMap placeholders)
setPlaceholders in interface PerspectiveStationpublic boolean remove(PerspectiveDockable dockable)
remove in interface PerspectiveStationpublic void replace(PerspectiveDockable oldDockable, PerspectiveDockable newDockable)
replace in interface PerspectiveStationCopyright © 2018. All rights reserved.