|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.layout.DockLayoutInfo
public class DockLayoutInfo
A 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 DockElement
s.
Nested Class Summary | |
---|---|
static class |
DockLayoutInfo.Data
The kind of information a DockLayoutInfo contains. |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 infoMethod Detail |
---|
public DockLayoutInfo.Data getKind()
null
public void setLocation(DockableProperty location)
Dockable
,represented by this info,
on its parent station.
location
- the location, can be null
public DockableProperty getLocation()
Dockable
on its parent station.
null
public void setPlaceholder(Path placeholder)
placeholder
- the placeholder, can be null
public Path getPlaceholder()
null
public void setData(Object data)
data
must either be null
, or an instance of XElement
,
byte[]
or DockLayout
data
- the new data
IllegalArgumentException
- 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 null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |