|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.common.intern.station.CommonDockStationLayout
public class CommonDockStationLayout
Information about the layout of a CommonDockStation
, used by the CommonDockStationFactory
to store and load the layout.
Constructor Summary | |
---|---|
CommonDockStationLayout(String id,
boolean root,
String factoryId,
byte[] layout)
Creates a new layout. |
|
CommonDockStationLayout(String id,
boolean root,
String factoryId,
DockLayout<?> layout)
Creates a new layout. |
|
CommonDockStationLayout(String id,
boolean root,
String factoryId,
XElement layout)
Creates a new layout. |
Method Summary | |
---|---|
String |
getFactoryId()
Gets the unique id of the DockFactory that is used to read and store the actual layout. |
String |
getId()
Gets the unique id of the CommonDockStation which is described by this layout. |
DockLayout<?> |
getLayout()
Gets the layout information that was produced the DockFactory with id getFactoryId() . |
byte[] |
getLayoutBytes()
Gets the layout information as byte array, assuming that the layout information is stored as byte array. |
XElement |
getLayoutXML()
Gets the layout information as xml element, assuming that the layout information is stored in xml. |
boolean |
isRoot()
Tells whether the CStation was added to the
CControl with the root flag set to true . |
void |
updateLayout(DockFactory<?,?,Object> factory,
PlaceholderStrategy placeholders)
Updates the contents of the internal DockLayoutInfo using factory to read
a byte array or an XElement . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommonDockStationLayout(String id, boolean root, String factoryId, DockLayout<?> layout)
id
- the unique identifier of the described CommonDockStation
, might be null
root
- whether the CStation
is a root stationfactoryId
- the unique identifier of the DockFactory
that is used to read or write the actual
layoutlayout
- the layout that was loaded by the factory factoryId
public CommonDockStationLayout(String id, boolean root, String factoryId, byte[] layout)
id
- the unique identifier of the described CommonDockStation
, might be null
root
- whether the CStation
is a root stationfactoryId
- the unique identifier of the DockFactory
that is used to read or write the actual
layoutlayout
- the layout that might be loaded by the factory factoryId
public CommonDockStationLayout(String id, boolean root, String factoryId, XElement layout)
id
- the unique identifier of the described CommonDockStation
, might be null
root
- whether the CStation
is a root stationfactoryId
- the unique identifier of the DockFactory
that is used to read or write the actual
layoutlayout
- the layout that might be loaded by the factory factoryId
Method Detail |
---|
public void updateLayout(DockFactory<?,?,Object> factory, PlaceholderStrategy placeholders)
DockLayoutInfo
using factory
to read
a byte array or an XElement
.
factory
- the factory used to read the layoutplaceholders
- the placeholders that may be usedpublic String getId()
CommonDockStation
which is described by this layout.
null
public boolean isRoot()
CStation
was added
to the
CControl
with the root
flag set to true
.
public String getFactoryId()
DockFactory
that is used to read and store the actual layout.
null
public byte[] getLayoutBytes()
null
if not stored in byte array formatpublic XElement getLayoutXML()
null
if not stored in xml formatpublic DockLayout<?> getLayout()
DockFactory
with id getFactoryId()
.
null
if not present in object format
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |