public class DockLayoutInfo extends Object
DockLayoutInfo is a wrapper around a DockLayout. The DockLayout
can either be stored as real object, as byte-stream or as part of an xml tree. This information
is normally used by a DockConverter to create or store DockElements.| Modifier and Type | Class and Description |
|---|---|
static class |
DockLayoutInfo.Data
The kind of information a
DockLayoutInfo contains. |
| Constructor and Description |
|---|
DockLayoutInfo()
Creates a new info.
|
DockLayoutInfo(byte[] data)
Creates a new info.
|
DockLayoutInfo(DockLayout<?> data)
Creates a new info
|
DockLayoutInfo(XElement data)
Creates a new info.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getDataByte()
Gets the data of this info as byte array.
|
DockLayout<?> |
getDataLayout()
Gets the data of this info as
DockLayout. |
XElement |
getDataXML()
Gets the data of this info formated as xml.
|
DockLayoutInfo.Data |
getKind()
Tells what kind of information can be found in this info.
|
DockableProperty |
getLocation()
Gets the location of of the
Dockable on its parent station. |
Path |
getPlaceholder()
Gets the representation of this element as placeholder.
|
void |
setData(Object data)
Sets the information of this info.
|
void |
setLocation(DockableProperty location)
Sets the location of the
Dockable ,represented by this info,
on its parent station. |
void |
setPlaceholder(Path placeholder)
Sets a placeholder which represents this element.
|
public DockLayoutInfo()
public DockLayoutInfo(byte[] data)
data - the data of this infopublic DockLayoutInfo(XElement data)
data - the data of this infopublic DockLayoutInfo(DockLayout<?> data)
data - the data of this infopublic DockLayoutInfo.Data getKind()
nullpublic void setLocation(DockableProperty location)
Dockable ,represented by this info,
on its parent station.location - the location, can be nullpublic DockableProperty getLocation()
Dockable on its parent station.nullpublic void setPlaceholder(Path placeholder)
placeholder - the placeholder, can be nullpublic Path getPlaceholder()
nullpublic void setData(Object data)
data
must either be null, or an instance of XElement,
byte[] or DockLayoutdata - the new dataIllegalArgumentException - if data has not one
of the specified typespublic XElement getDataXML()
null if it cannot be convertedpublic byte[] getDataByte()
null if it cannot be convertedpublic DockLayout<?> getDataLayout()
DockLayout.DockLayout data or nullCopyright © 2017 Docking Frames. All rights reserved.