public class CMinimizePerspective extends Object implements CStationPerspective
PerspectiveStation represents a CMinimizeArea.| Modifier and Type | Class and Description |
|---|---|
class |
CMinimizePerspective.CommonFlapDockPerspective
The type of object that is used by
CMinimizePerspective as intern representation. |
| Constructor and Description |
|---|
CMinimizePerspective(String id)
Creates a new, empty perspective.
|
CMinimizePerspective(String id,
Path typeId)
Creates a new, empty perspective.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(CDockablePerspective dockable)
Adds
dockable at the end of the list of children of this area. |
void |
addPlaceholder(CDockablePerspective dockable)
Adds a placeholder for
dockable at the end of the list of children of this area. |
void |
addPlaceholder(Path placeholder)
Adds a placeholder at the end of the list of children of this area.
|
CDockablePerspective |
asDockable()
Gets
this as dockable, if this is a dockable. |
CStationPerspective |
asStation()
Gets
this as station, if this is a station. |
String |
getFactoryID() |
CPerspective |
getPerspective()
Gets the perspective which presents this station.
|
PlaceholderMap |
getPlaceholders() |
Path |
getTypeId()
Gets the unique id denoting the type of this
CStation, this should be the
exact same result as CStation.getTypeId() will return. |
String |
getUniqueId()
Gets the unique identifier of this station.
|
int |
indexOf(CDockablePerspective dockable)
Gets the location of
dockable on this area. |
void |
insert(int index,
CDockablePerspective dockable)
Inserts
dockable at location index to the list of children of this area. |
void |
insertPlaceholder(int index,
CDockablePerspective dockable)
Inserts a placeholder for
dockable at location index in the list of
children of this area. |
void |
insertPlaceholder(int index,
Path placeholder)
Inserts a placeholder at location
index in the list of
children of this area. |
CMinimizePerspective.CommonFlapDockPerspective |
intern()
Gets the internal representation for this element.
|
boolean |
isRoot()
Tells whether this is a root station or not.
|
boolean |
isWorkingArea()
Tells whether this station will act as a
working area. |
boolean |
remove(CDockablePerspective dockable)
Removes
dockable from this area. |
CDockablePerspective |
remove(int index)
Removes the
index'th child of this area. |
void |
setPerspective(CPerspective perspective)
Informs this station by which perspective it is used.
|
void |
setPlaceholders(PlaceholderMap placeholders) |
void |
setRoot(boolean root)
Sets the root station flag.
|
public CMinimizePerspective(String id)
id - the unique identifier of this perspectivepublic void setPerspective(CPerspective perspective)
CStationPerspectivesetPerspective in interface CStationPerspectiveperspective - the perspective that uses this station or nullpublic CPerspective getPerspective()
CStationPerspectivegetPerspective in interface CStationPerspectivenullpublic Path getTypeId()
CStationPerspectiveCStation, this should be the
exact same result as CStation.getTypeId() will return.getTypeId in interface CStationPerspectivenullpublic boolean isRoot()
CStationPerspectiveisRoot in interface CStationPerspectiveCStationPerspective.setRoot(boolean)public void setRoot(boolean root)
CStationPerspectiveroot parameter when calling
CControl.addStation(bibliothek.gui.dock.common.CStation, boolean). The location of a Dockable is
always relative to its nearest root-station parent.CControl.addStation(bibliothek.gui.dock.common.CStation, boolean) will
never be overridden by the flag set in the perspective.setRoot in interface CStationPerspectivepublic void add(CDockablePerspective dockable)
dockable at the end of the list of children of this area.dockable - the element to addpublic void insert(int index,
CDockablePerspective dockable)
dockable at location index to the list of children of this area.index - the location of dockabledockable - the element to insertpublic void addPlaceholder(CDockablePerspective dockable)
dockable at the end of the list of children of this area.dockable - the element for which a placeholder will be registeredpublic void addPlaceholder(Path placeholder)
placeholder - the new placeholder, not nullpublic void insertPlaceholder(int index,
CDockablePerspective dockable)
dockable at location index in the list of
children of this area.index - the location of the placeholderdockable - the element for which a placeholder will be registeredpublic void insertPlaceholder(int index,
Path placeholder)
index in the list of
children of this area.index - the location of the placeholderplaceholder - the new placeholder, not nullpublic int indexOf(CDockablePerspective dockable)
dockable on this area.dockable - some child of this areapublic boolean remove(CDockablePerspective dockable)
dockable from this area.dockable - the element to removetrue if dockable was found and removed,
false otherwisepublic CDockablePerspective remove(int index)
index'th child of this area.index - the index of the child to removenull if the child is not a CDockablePerspectivepublic CDockablePerspective asDockable()
CElementPerspectivethis as dockable, if this is a dockable.asDockable in interface CElementPerspectivethis or nullpublic CStationPerspective asStation()
CElementPerspectivethis as station, if this is a station.asStation in interface CElementPerspectivethis or nullpublic String getFactoryID()
public String getUniqueId()
CStationPerspectivegetUniqueId in interface CStationPerspectivepublic CMinimizePerspective.CommonFlapDockPerspective intern()
CElementPerspectiveCElementPerspective.asDockable() returns a non-null value, then intern().asDockable() must not
return null either.CElementPerspective.asStation() returns a non-null value, then intern().asStation() must not
return null either.intern in interface CElementPerspectivepublic PlaceholderMap getPlaceholders()
public void setPlaceholders(PlaceholderMap placeholders)
public boolean isWorkingArea()
CStationPerspectiveworking area.isWorkingArea in interface CStationPerspectiveCopyright © 2018. All rights reserved.