Class SingleCDockablePerspective
java.lang.Object
bibliothek.gui.dock.common.perspective.AbstractCDockablePerspective
bibliothek.gui.dock.common.perspective.SingleCDockablePerspective
- All Implemented Interfaces:
CDockablePerspective,CElementPerspective
- Direct Known Subclasses:
CGridPerspective
A class that represents a
SingleCDockable.- Author:
- Benjamin Sigg
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classThe type of object that is created by the default implementation ofcreate() -
Constructor Summary
ConstructorsConstructorDescriptionSingleCDockablePerspective(String uniqueId) Creates a new representation of aSingleCDockable. -
Method Summary
Modifier and TypeMethodDescriptionGetsthisas dockable, if this is a dockable.Getsthisas station, if this is a station.protected CommonElementPerspectivecreate()Called the first timeintern()is called, this method creates the intern representation of thisSingleCDockablePerspective.Gets the unique identifier that is associated with this element.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.Methods inherited from class bibliothek.gui.dock.common.perspective.AbstractCDockablePerspective
getLocationHistory, getParent, getWorkingArea, remove, setWorkingArea
-
Constructor Details
-
SingleCDockablePerspective
Creates a new representation of aSingleCDockable.- Parameters:
uniqueId- the unique identifier of this dockable, notnull
-
-
Method Details
-
create
Called the first timeintern()is called, this method creates the intern representation of thisSingleCDockablePerspective.- Returns:
- the internal representation of
this
-
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.- Returns:
- the internal representation
-
getUniqueId
Gets the unique identifier that is associated with this element.- Returns:
- the unique identifier
-
asDockable
Description copied from interface:CElementPerspectiveGetsthisas dockable, if this is a dockable.- Returns:
thisornull
-
asStation
Description copied from interface:CElementPerspectiveGetsthisas station, if this is a station.- Returns:
thisornull
-