public class ToolbarGroupDockPerspective
extends java.lang.Object
implements bibliothek.gui.dock.perspective.PerspectiveStation, bibliothek.gui.dock.perspective.PerspectiveDockable
PerspectiveStation
representing a ToolbarGroupDockStation
.Constructor and Description |
---|
ToolbarGroupDockPerspective()
Creates a new, empty station.
|
ToolbarGroupDockPerspective(ToolbarGroupDockStationLayout layout,
java.util.Map<java.lang.Integer,bibliothek.gui.dock.perspective.PerspectiveDockable> children)
Creates a new station.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int column,
bibliothek.gui.dock.perspective.PerspectiveDockable dockable)
Adds
dockable at the end of column column . |
bibliothek.gui.dock.perspective.PerspectiveDockable |
asDockable() |
bibliothek.gui.dock.perspective.PerspectiveStation |
asStation() |
int |
getColumnCount()
Gets the number of columns, only includes columns that contain at least one child.
|
bibliothek.gui.dock.perspective.PerspectiveDockable |
getDockable(int index) |
bibliothek.gui.dock.perspective.PerspectiveDockable |
getDockable(int column,
int line)
Gets the item that is stored in column
column at line line . |
int |
getDockableCount() |
bibliothek.gui.dock.layout.DockableProperty |
getDockableProperty(bibliothek.gui.dock.perspective.PerspectiveDockable child,
bibliothek.gui.dock.perspective.PerspectiveDockable target) |
PerspectivePlaceholderToolbarGrid |
getDockables()
Allows access to the internal data structure of this station.
|
ExpandedState |
getExpandedState()
Gets the default size of this station.
|
java.lang.String |
getFactoryID() |
int |
getLineCount(int column)
Gets the number of items in
column . |
ToolbarColumnModel<bibliothek.gui.dock.perspective.PerspectiveDockable,bibliothek.gui.dock.perspective.PerspectiveDockable> |
getModel()
Gets access to an abstraction of the model of this station.
|
Orientation |
getOrientation()
Gets the orientation of this station.
|
bibliothek.gui.dock.perspective.PerspectiveStation |
getParent() |
bibliothek.util.Path |
getPlaceholder() |
bibliothek.gui.dock.station.support.PlaceholderMap |
getPlaceholders() |
void |
insert(int column,
int line,
bibliothek.gui.dock.perspective.PerspectiveDockable dockable)
Adds
dockable to column column at position line . |
void |
insert(int column,
bibliothek.gui.dock.perspective.PerspectiveDockable dockable)
Adds a new column to the grid and inserts
dockable as first child. |
void |
read(ToolbarGroupDockStationLayout layout,
java.util.Map<java.lang.Integer,bibliothek.gui.dock.perspective.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(bibliothek.gui.dock.perspective.PerspectiveDockable dockable) |
void |
replace(bibliothek.gui.dock.perspective.PerspectiveDockable oldDockable,
bibliothek.gui.dock.perspective.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(bibliothek.gui.dock.perspective.PerspectiveStation parent) |
void |
setPlaceholders(bibliothek.gui.dock.station.support.PlaceholderMap placeholders) |
bibliothek.gui.dock.station.support.PlaceholderMap |
toMap(java.util.Map<bibliothek.gui.dock.perspective.PerspectiveDockable,java.lang.Integer> children)
Converts this station into a map of
PerspectiveDockable s. |
public ToolbarGroupDockPerspective()
public ToolbarGroupDockPerspective(ToolbarGroupDockStationLayout layout, java.util.Map<java.lang.Integer,bibliothek.gui.dock.perspective.PerspectiveDockable> children)
layout
- the layout of the stationchildren
- the unique identifiers of the childrenpublic void read(ToolbarGroupDockStationLayout layout, java.util.Map<java.lang.Integer,bibliothek.gui.dock.perspective.PerspectiveDockable> children)
layout
.layout
- the new layoutchildren
- the new children of this stationpublic PerspectivePlaceholderToolbarGrid getDockables()
public bibliothek.gui.dock.station.support.PlaceholderMap toMap(java.util.Map<bibliothek.gui.dock.perspective.PerspectiveDockable,java.lang.Integer> children)
PerspectiveDockable
s.children
- the unique identifiers of the childrenpublic void setExpandedtState(ExpandedState state)
state
- the size, not null
public ExpandedState getExpandedState()
null
public void setOrientation(Orientation orientation)
DockStation
.orientation
- the orientation, must not be null
public Orientation getOrientation()
null
public ToolbarColumnModel<bibliothek.gui.dock.perspective.PerspectiveDockable,bibliothek.gui.dock.perspective.PerspectiveDockable> getModel()
ToolbarGroupDockStation
, hence it's behavior is identical.public bibliothek.gui.dock.perspective.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/line
public int getColumnCount()
public int getLineCount(int column)
column
.column
- the column whose size is askedcolumn
public void add(int column, bibliothek.gui.dock.perspective.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 column
public void insert(int column, int line, bibliothek.gui.dock.perspective.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, bibliothek.gui.dock.perspective.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 java.lang.String getFactoryID()
getFactoryID
in interface bibliothek.gui.dock.perspective.PerspectiveElement
public bibliothek.gui.dock.perspective.PerspectiveStation asStation()
asStation
in interface bibliothek.gui.dock.perspective.PerspectiveElement
public bibliothek.gui.dock.perspective.PerspectiveDockable asDockable()
asDockable
in interface bibliothek.gui.dock.perspective.PerspectiveElement
asDockable
in interface bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.dock.perspective.PerspectiveDockable>
public bibliothek.util.Path getPlaceholder()
getPlaceholder
in interface bibliothek.gui.dock.perspective.PerspectiveDockable
public bibliothek.gui.dock.perspective.PerspectiveStation getParent()
getParent
in interface bibliothek.gui.dock.perspective.PerspectiveDockable
public void setParent(bibliothek.gui.dock.perspective.PerspectiveStation parent)
setParent
in interface bibliothek.gui.dock.perspective.PerspectiveDockable
public int getDockableCount()
getDockableCount
in interface bibliothek.gui.dock.perspective.PerspectiveStation
public bibliothek.gui.dock.perspective.PerspectiveDockable getDockable(int index)
getDockable
in interface bibliothek.gui.dock.perspective.PerspectiveStation
public bibliothek.gui.dock.layout.DockableProperty getDockableProperty(bibliothek.gui.dock.perspective.PerspectiveDockable child, bibliothek.gui.dock.perspective.PerspectiveDockable target)
getDockableProperty
in interface bibliothek.gui.dock.perspective.PerspectiveStation
public bibliothek.gui.dock.station.support.PlaceholderMap getPlaceholders()
getPlaceholders
in interface bibliothek.gui.dock.perspective.PerspectiveStation
public void setPlaceholders(bibliothek.gui.dock.station.support.PlaceholderMap placeholders)
setPlaceholders
in interface bibliothek.gui.dock.perspective.PerspectiveStation
public boolean remove(bibliothek.gui.dock.perspective.PerspectiveDockable dockable)
remove
in interface bibliothek.gui.dock.perspective.PerspectiveStation
public void replace(bibliothek.gui.dock.perspective.PerspectiveDockable oldDockable, bibliothek.gui.dock.perspective.PerspectiveDockable newDockable)
replace
in interface bibliothek.gui.dock.perspective.PerspectiveStation