Interface CStationPerspective
- All Superinterfaces:
CElementPerspective
- All Known Implementing Classes:
CExternalizePerspective,CGridPerspective,CMinimizePerspective,CWorkingPerspective
A representation of a
CStation.- Author:
- Benjamin Sigg
-
Method Summary
Modifier and TypeMethodDescriptionGets the perspective which presents this station.Gets the unique id denoting the type of thisCStation, this should be the exact same result asCStation.getTypeId()will return.Gets the unique identifier of this station.booleanisRoot()Tells whether this is a root station or not.booleanTells whether this station will act as aworking area.voidsetPerspective(CPerspective perspective) Informs this station by which perspective it is used.voidsetRoot(boolean root) Sets the root station flag.Methods inherited from interface bibliothek.gui.dock.common.perspective.CElementPerspective
asDockable, asStation, intern
-
Method Details
-
getUniqueId
String getUniqueId()Gets the unique identifier of this station.- Returns:
- the unique identifier
-
getTypeId
Path getTypeId()Gets the unique id denoting the type of thisCStation, this should be the exact same result asCStation.getTypeId()will return.- Returns:
- the type id, can be
null
-
setPerspective
Informs this station by which perspective it is used.- Parameters:
perspective- the perspective that uses this station ornull
-
getPerspective
CPerspective getPerspective()Gets the perspective which presents this station.- Returns:
- the owner of this station, can be
null
-
isWorkingArea
boolean isWorkingArea()Tells whether this station will act as aworking area.- Returns:
- whether this station acts as working area
-
isRoot
boolean isRoot()Tells whether this is a root station or not.- Returns:
- the root flag
- See Also:
-
setRoot
void setRoot(boolean root) Sets the root station flag. Setting flag is equivalent of setting therootparameter when callingCControl.addStation(bibliothek.gui.dock.common.CStation, boolean). The location of aDockableis always relative to its nearest root-station parent.
Please note that the root-flag set by callingCControl.addStation(bibliothek.gui.dock.common.CStation, boolean)will never be overridden by the flag set in the perspective.- Parameters:
root-
-