Class CMinimizePerspective
java.lang.Object
bibliothek.gui.dock.common.perspective.CMinimizePerspective
- All Implemented Interfaces:
CElementPerspective,CStationPerspective
This
PerspectiveStation represents a CMinimizeArea.- Author:
- Benjamin Sigg
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassThe type of object that is used byCMinimizePerspectiveas intern representation. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new, empty perspective.CMinimizePerspective(String id, Path typeId) Creates a new, empty perspective. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(CDockablePerspective dockable) Addsdockableat the end of the list of children of this area.voidaddPlaceholder(CDockablePerspective dockable) Adds a placeholder fordockableat the end of the list of children of this area.voidaddPlaceholder(Path placeholder) Adds a placeholder at the end of the list of children of this area.Getsthisas dockable, if this is a dockable.Getsthisas station, if this is a station.Gets 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.intindexOf(CDockablePerspective dockable) Gets the location ofdockableon this area.voidinsert(int index, CDockablePerspective dockable) Insertsdockableat locationindexto the list of children of this area.voidinsertPlaceholder(int index, CDockablePerspective dockable) Inserts a placeholder fordockableat locationindexin the list of children of this area.voidinsertPlaceholder(int index, Path placeholder) Inserts a placeholder at locationindexin the list of children of this area.intern()Gets the internal representation for this element.
IfCElementPerspective.asDockable()returns a non-nullvalue, thenintern().asDockable()must not returnnulleither.
IfCElementPerspective.asStation()returns a non-nullvalue, thenintern().asStation()must not returnnulleither.booleanisRoot()Tells whether this is a root station or not.booleanTells whether this station will act as aworking area.remove(int index) Removes theindex'th child of this area.booleanremove(CDockablePerspective dockable) Removesdockablefrom this area.voidsetPerspective(CPerspective perspective) Informs this station by which perspective it is used.voidsetPlaceholders(PlaceholderMap placeholders) voidsetRoot(boolean root) Sets the root station flag.
-
Constructor Details
-
CMinimizePerspective
Creates a new, empty perspective.- Parameters:
id- the unique identifier of this perspective
-
CMinimizePerspective
Creates a new, empty perspective.- Parameters:
id- the unique identifier of this perspectivetypeId- the type of this station, can benull
-
-
Method Details
-
setPerspective
Description copied from interface:CStationPerspectiveInforms this station by which perspective it is used.- Specified by:
setPerspectivein interfaceCStationPerspective- Parameters:
perspective- the perspective that uses this station ornull
-
getPerspective
Description copied from interface:CStationPerspectiveGets the perspective which presents this station.- Specified by:
getPerspectivein interfaceCStationPerspective- Returns:
- the owner of this station, can be
null
-
getTypeId
Description copied from interface:CStationPerspectiveGets the unique id denoting the type of thisCStation, this should be the exact same result asCStation.getTypeId()will return.- Specified by:
getTypeIdin interfaceCStationPerspective- Returns:
- the type id, can be
null
-
isRoot
public boolean isRoot()Description copied from interface:CStationPerspectiveTells whether this is a root station or not.- Specified by:
isRootin interfaceCStationPerspective- Returns:
- the root flag
- See Also:
-
setRoot
public void setRoot(boolean root) Description copied from interface:CStationPerspectiveSets 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.- Specified by:
setRootin interfaceCStationPerspective- Parameters:
root-
-
add
Addsdockableat the end of the list of children of this area.- Parameters:
dockable- the element to add
-
insert
Insertsdockableat locationindexto the list of children of this area.- Parameters:
index- the location ofdockabledockable- the element to insert
-
addPlaceholder
Adds a placeholder fordockableat the end of the list of children of this area.- Parameters:
dockable- the element for which a placeholder will be registered
-
addPlaceholder
Adds a placeholder at the end of the list of children of this area.- Parameters:
placeholder- the new placeholder, notnull
-
insertPlaceholder
Inserts a placeholder fordockableat locationindexin the list of children of this area.- Parameters:
index- the location of the placeholderdockable- the element for which a placeholder will be registered
-
insertPlaceholder
Inserts a placeholder at locationindexin the list of children of this area.- Parameters:
index- the location of the placeholderplaceholder- the new placeholder, notnull
-
indexOf
Gets the location ofdockableon this area.- Parameters:
dockable- some child of this area- Returns:
- the location or -1 if not found
-
remove
Removesdockablefrom this area.- Parameters:
dockable- the element to remove- Returns:
trueifdockablewas found and removed,falseotherwise
-
remove
Removes theindex'th child of this area.- Parameters:
index- the index of the child to remove- Returns:
- the child that was removed,
nullif the child is not aCDockablePerspective
-
asDockable
Description copied from interface:CElementPerspectiveGetsthisas dockable, if this is a dockable.- Specified by:
asDockablein interfaceCElementPerspective- Returns:
thisornull
-
asStation
Description copied from interface:CElementPerspectiveGetsthisas station, if this is a station.- Specified by:
asStationin interfaceCElementPerspective- Returns:
thisornull
-
getFactoryID
-
getUniqueId
Description copied from interface:CStationPerspectiveGets the unique identifier of this station.- Specified by:
getUniqueIdin interfaceCStationPerspective- Returns:
- the unique identifier
-
intern
Description copied from interface:CElementPerspectiveGets the internal representation for this element.
IfCElementPerspective.asDockable()returns a non-nullvalue, thenintern().asDockable()must not returnnulleither.
IfCElementPerspective.asStation()returns a non-nullvalue, thenintern().asStation()must not returnnulleither.- Specified by:
internin interfaceCElementPerspective- Returns:
- the internal representation
-
getPlaceholders
-
setPlaceholders
-
isWorkingArea
public boolean isWorkingArea()Description copied from interface:CStationPerspectiveTells whether this station will act as aworking area.- Specified by:
isWorkingAreain interfaceCStationPerspective- Returns:
- whether this station acts as working area
-