public class SingleCDockablePerspective extends AbstractCDockablePerspective
SingleCDockable
.Modifier and Type | Class and Description |
---|---|
protected class |
SingleCDockablePerspective.Intern
The type of object that is created by the default implementation of
create() |
Constructor and Description |
---|
SingleCDockablePerspective(java.lang.String uniqueId)
Creates a new representation of a
SingleCDockable . |
Modifier and Type | Method and Description |
---|---|
CDockablePerspective |
asDockable()
Gets
this as dockable, if this is a dockable. |
CStationPerspective |
asStation()
Gets
this as station, if this is a station. |
protected CommonElementPerspective |
create()
Called the first time
intern() is called, this method creates
the intern representation of this SingleCDockablePerspective . |
java.lang.String |
getUniqueId()
Gets the unique identifier that is associated with this element.
|
CommonElementPerspective |
intern()
Gets the internal representation for this element.
If CElementPerspective.asDockable() returns a non-null value, then intern().asDockable() must not
return null either.If CElementPerspective.asStation() returns a non-null value, then intern().asStation() must not
return null either. |
getLocationHistory, getParent, getWorkingArea, remove, setWorkingArea
public SingleCDockablePerspective(java.lang.String uniqueId)
SingleCDockable
.uniqueId
- the unique identifier of this dockable, not null
protected CommonElementPerspective create()
intern()
is called, this method creates
the intern representation of this SingleCDockablePerspective
.this
public CommonElementPerspective intern()
CElementPerspective
CElementPerspective.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.public java.lang.String getUniqueId()
public CDockablePerspective asDockable()
CElementPerspective
this
as dockable, if this is a dockable.this
or null
public CStationPerspective asStation()
CElementPerspective
this
as station, if this is a station.this
or null