public class MultipleCDockablePerspective extends AbstractCDockablePerspective
MultipleCDockable
in a perspective.Modifier and Type | Class and Description |
---|---|
protected class |
MultipleCDockablePerspective.Intern
The default representation for a
MultipleCDockablePerspective . |
Constructor and Description |
---|
MultipleCDockablePerspective(String factoryId,
MultipleCDockableLayout layout)
Creates a new representation.
|
MultipleCDockablePerspective(String factoryId,
String uniqueId,
MultipleCDockableLayout layout)
Creates a new representation.
|
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, creates the internal representation of this
dockable. |
String |
getFactoryID()
Gets the unique identifier of the factory that handles this kind of dockable.
|
MultipleCDockableLayout |
getLayout()
Gets the layout which describes the content of this dockable.
|
String |
getUniqueId()
Gets the unique identifier of 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. |
void |
setLayout(MultipleCDockableLayout layout)
Sets the layout which describes this dockable.
|
void |
setUniqueId(String uniqueId)
Sets the unique identifier of this element.
|
getLocationHistory, getParent, getWorkingArea, remove, setWorkingArea
public MultipleCDockablePerspective(String factoryId, MultipleCDockableLayout layout)
MultipleCDockableFactory
that is registered at a CControl
through the method
CControl.addMultipleDockableFactory(String, MultipleCDockableFactory)
.factoryId
- the unique identifier of a MultipleCDockableFactory
, not null
layout
- description of the content of this dockable, will be given to the MultipleCDockableFactory
that is accessed through factoryId
public MultipleCDockablePerspective(String factoryId, String uniqueId, MultipleCDockableLayout layout)
MultipleCDockableFactory
that is registered at a CControl
through the method
CControl.addMultipleDockableFactory(String, MultipleCDockableFactory)
.factoryId
- the unique identifier of a MultipleCDockableFactory
, not null
uniqueId
- a unique identifier for this dockable, can be null
layout
- description of the content of this dockable, will be given to the MultipleCDockableFactory
that is accessed through factoryId
public void setUniqueId(String uniqueId)
MultipleCDockable
with the dockable that is represented by this. If no identifier is set, then a random identifier will be set when the CPerspective
is applied.uniqueId
- the unique id or null
public String getUniqueId()
null
protected CommonElementPerspective create()
intern()
is called, creates the internal representation of this
dockable.null
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 void setLayout(MultipleCDockableLayout layout)
layout
- the layout, not null
public MultipleCDockableLayout getLayout()
null
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
public String getFactoryID()
null