|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.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 SplitDockProperty ,
StackDockProperty , ScreenDockProperty
and FlapDockProperty 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. |
void |
write(DockableProperty property,
DataOutputStream out)
Writes property and all its successors into out . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyTransformer()
SplitDockProperty
,
StackDockProperty
, ScreenDockProperty
and FlapDockProperty
are
installed.
public PropertyTransformer(DockablePropertyFactory... factories)
factories
.
factories
- a list of factories to installMethod Detail |
---|
public void addFactory(DockablePropertyFactory factory)
factory
- the new factorypublic 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 exceptionpublic DockableProperty read(DataInputStream in) throws IOException
in
- a stream to read from
IOException
- if the property can't be read
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |