Class AbstractCDockablePerspective
java.lang.Object
bibliothek.gui.dock.common.perspective.AbstractCDockablePerspective
- All Implemented Interfaces:
CDockablePerspective,CElementPerspective
- Direct Known Subclasses:
MultipleCDockablePerspective,SingleCDockablePerspective
An abstract implementation of
CDockablePerspective providing some general methods.- Author:
- Benjamin Sigg
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets information about the locations this dockable had in the past.Gets the next parent of this perspective that represents aCStation.Gets the working-area of this elementvoidremove()Removes this dockable from its parent (if there is a parent).voidsetWorkingArea(CStationPerspective workingArea) Sets the working-area of this element.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface bibliothek.gui.dock.common.perspective.CElementPerspective
asDockable, asStation, intern
-
Constructor Details
-
AbstractCDockablePerspective
public AbstractCDockablePerspective()
-
-
Method Details
-
getParent
Description copied from interface:CDockablePerspectiveGets the next parent of this perspective that represents aCStation. This method may jump over some parents to get to the next station.- Specified by:
getParentin interfaceCDockablePerspective- Returns:
- the next station, may be
null
-
setWorkingArea
Description copied from interface:CDockablePerspectiveSets the working-area of this element. This user will not be able drag this element away from that working-area.- Specified by:
setWorkingAreain interfaceCDockablePerspective- Parameters:
workingArea- the working-area, can benull
-
getWorkingArea
Description copied from interface:CDockablePerspectiveGets the working-area of this element- Specified by:
getWorkingAreain interfaceCDockablePerspective- Returns:
- the area, can be
null - See Also:
-
getLocationHistory
Description copied from interface:CDockablePerspectiveGets information about the locations this dockable had in the past.- Specified by:
getLocationHistoryin interfaceCDockablePerspective- Returns:
- the locations, not
null
-
remove
public void remove()Removes this dockable from its parent (if there is a parent). This method tries to callCPerspective.storeLocation(CDockablePerspective)which will allow the dockable to store its last location, leave a placeholder, and make the perspective remember that there is an invisible dockable.
-