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.
|
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, setWorkingAreapublic 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 nulllayout - description of the content of this dockable, will be given to the MultipleCDockableFactory
that is accessed through factoryIdpublic 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 nulluniqueId - a unique identifier for this dockable, can be nulllayout - description of the content of this dockable, will be given to the MultipleCDockableFactory
that is accessed through factoryIdpublic 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 nullpublic String getUniqueId()
nullprotected CommonElementPerspective create()
intern() is called, creates the internal representation of this
dockable.nullpublic CommonElementPerspective intern()
CElementPerspectiveCElementPerspective.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 nullpublic MultipleCDockableLayout getLayout()
nullpublic CDockablePerspective asDockable()
CElementPerspectivethis as dockable, if this is a dockable.this or nullpublic CStationPerspective asStation()
CElementPerspectivethis as station, if this is a station.this or nullpublic String getFactoryID()
nullCopyright © 2018. All rights reserved.