|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.common.perspective.AbstractCDockablePerspective bibliothek.gui.dock.common.perspective.MultipleCDockablePerspective
public class MultipleCDockablePerspective
Representation of a MultipleCDockable
in a perspective.
Nested Class Summary | |
---|---|
protected class |
MultipleCDockablePerspective.Intern
The default representation for a MultipleCDockablePerspective . |
Constructor Summary | |
---|---|
MultipleCDockablePerspective(String factoryId,
MultipleCDockableLayout layout)
Creates a new representation. |
|
MultipleCDockablePerspective(String factoryId,
String uniqueId,
MultipleCDockableLayout layout)
Creates a new representation. |
Method Summary | |
---|---|
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. |
Methods inherited from class bibliothek.gui.dock.common.perspective.AbstractCDockablePerspective |
---|
getLocationHistory, getParent, getWorkingArea, remove, setWorkingArea |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |