|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.layout.PropertyTransformer
public class PropertyTransformer
A PropertTransformer can read and write instances of DockableProperty
, assuming that a factory is installed for the property.
| Constructor Summary | |
|---|---|
PropertyTransformer()
Creates a new transformer, the factories for all DockablePropertys implemented
by this framework are installed. |
|
PropertyTransformer(DockablePropertyFactory... factories)
Creates a new transformer and installs factories. |
|
| Method Summary | |
|---|---|
void |
addFactory(DockablePropertyFactory factory)
Installs a factory |
DockableProperty |
read(DataInputStream in)
Reads a property which was earlier stored. |
DockableProperty |
readXML(XElement element)
Reads a DockableProperty and its successors from an xml element. |
void |
write(DockableProperty property,
DataOutputStream out)
Writes property and all its successors into out
. |
void |
writeXML(DockableProperty property,
XElement element)
Writes property and all its successors into
element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyTransformer()
DockablePropertys implemented
by this framework are installed.
public PropertyTransformer(DockablePropertyFactory... factories)
factories.
factories - a list of factories to install| Method Detail |
|---|
public void addFactory(DockablePropertyFactory factory)
factory - the new factory
public void write(DockableProperty property,
DataOutputStream out)
throws IOException
property and all its successors into out
.
property - the property to writeout - a stream to write into
IOException - if the stream throws an exception
public DockableProperty read(DataInputStream in)
throws IOException
in - a stream to read from
IOException - if the property can't be read
public void writeXML(DockableProperty property,
XElement element)
property and all its successors into
element.
property - the property to writeelement - an xml element to which this method will add some childrenpublic DockableProperty readXML(XElement element)
DockableProperty and its successors from an xml element.
element - the element to read from
null if element is
empty
IllegalArgumentException - if a DockablePropertyFactory is missing.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||