public class CToolbarAreaPerspective extends Object implements bibliothek.gui.dock.common.perspective.CStationPerspective
CToolbarArea
as perspective.Constructor and Description |
---|
CToolbarAreaPerspective(String id)
Creates a new perspective.
|
Modifier and Type | Method and Description |
---|---|
bibliothek.gui.dock.common.perspective.CDockablePerspective |
asDockable() |
bibliothek.gui.dock.common.perspective.CStationPerspective |
asStation() |
int |
getGroupCount()
Gets the number of
groups this station currently has. |
bibliothek.gui.dock.common.perspective.CPerspective |
getPerspective() |
bibliothek.util.Path |
getTypeId() |
String |
getUniqueId() |
CToolbarGroupPerspective |
group(int index)
Gets or creates a group of toolbars at location
index . |
CToolbarGroupPerspective |
insert(int index)
Creates a new
CToolbarGroupPerspective and inserts the new group at index . |
CommonToolbarContainerDockPerspective |
intern() |
boolean |
isRoot() |
boolean |
isWorkingArea() |
void |
remove(CToolbarGroupPerspective group)
Removes
group from this station. |
void |
remove(int index)
Removes the group at location
index from this station. |
void |
setPerspective(bibliothek.gui.dock.common.perspective.CPerspective perspective) |
void |
setRoot(boolean root) |
public CToolbarAreaPerspective(String id)
id
- the unique identifier of this stationpublic int getGroupCount()
groups
this station currently has. This method
assumes that the client did not modify the ToolbarStrategy
.public CToolbarGroupPerspective group(int index)
index
.index
- the index of an existing group, -1
or getGroupCount()
index
or null
if the child at index
has
the wrong type. A result of null
can only happen if the client modified the ToolbarStrategy
.public CToolbarGroupPerspective insert(int index)
CToolbarGroupPerspective
and inserts the new group at index
.index
- the location of the new grouppublic void remove(int index)
index
from this station.index
- the index of the group to removepublic void remove(CToolbarGroupPerspective group)
group
from this station.group
- the group to remove, not null
public CommonToolbarContainerDockPerspective intern()
intern
in interface bibliothek.gui.dock.common.perspective.CElementPerspective
public bibliothek.gui.dock.common.perspective.CDockablePerspective asDockable()
asDockable
in interface bibliothek.gui.dock.common.perspective.CElementPerspective
public bibliothek.gui.dock.common.perspective.CStationPerspective asStation()
asStation
in interface bibliothek.gui.dock.common.perspective.CElementPerspective
public String getUniqueId()
getUniqueId
in interface bibliothek.gui.dock.common.perspective.CStationPerspective
public bibliothek.util.Path getTypeId()
getTypeId
in interface bibliothek.gui.dock.common.perspective.CStationPerspective
public void setPerspective(bibliothek.gui.dock.common.perspective.CPerspective perspective)
setPerspective
in interface bibliothek.gui.dock.common.perspective.CStationPerspective
public bibliothek.gui.dock.common.perspective.CPerspective getPerspective()
getPerspective
in interface bibliothek.gui.dock.common.perspective.CStationPerspective
public boolean isWorkingArea()
isWorkingArea
in interface bibliothek.gui.dock.common.perspective.CStationPerspective
public boolean isRoot()
isRoot
in interface bibliothek.gui.dock.common.perspective.CStationPerspective
public void setRoot(boolean root)
setRoot
in interface bibliothek.gui.dock.common.perspective.CStationPerspective