|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.frontend.Setting
public class Setting
The set of properties that describe one setting of a DockFrontend.
| Constructor Summary | |
|---|---|
Setting()
|
|
| Method Summary | |
|---|---|
void |
addInvisible(String key,
String root,
DockLayoutComposition layout,
DockableProperty location)
Stores the location of an invisible element. |
void |
fillMissing(DockSituation situation)
Using the factories given by situation, this method tries
to fill any gaps in the layout. |
int |
getInvisibleCount()
Gets the number of stored invisible elements. |
String |
getInvisibleKey(int index)
Gets the key of the index'th invisible element. |
DockLayoutComposition |
getInvisibleLayout(int index)
Gets the layout of the index'th invisible element. |
DockableProperty |
getInvisibleLocation(int index)
Gets the location of the index'th invisible element. |
String |
getInvisibleRoot(int index)
Gets the preferred root of the index'th invisible element. |
DockLayoutComposition |
getRoot(String root)
Gets the layout of a root. |
String[] |
getRootKeys()
Gets the keys of all known roots. |
void |
putRoot(String root,
DockLayoutComposition layout)
Stores the layout of a root. |
void |
read(DockSituation situation,
PropertyTransformer transformer,
boolean entry,
DataInputStream in)
Reads the properties of this setting. |
void |
readXML(DockSituation situation,
PropertyTransformer transformer,
boolean entry,
XElement element)
Reads the properties of this setting. |
void |
write(DockSituation situation,
PropertyTransformer transformer,
boolean entry,
DataOutputStream out)
Writes the properties of this setting into out. |
void |
writeXML(DockSituation situation,
PropertyTransformer transformer,
boolean entry,
XElement element)
Writes the properties of this setting in xml format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Setting()
| Method Detail |
|---|
public void putRoot(String root,
DockLayoutComposition layout)
root - the name of the rootlayout - the layoutpublic DockLayoutComposition getRoot(String root)
root - the root
nullpublic String[] getRootKeys()
public void addInvisible(String key,
String root,
DockLayoutComposition layout,
DockableProperty location)
key - the key of the elementroot - the preferred root of the elementlayout - the layout of the element, may be nulllocation - the location of the element on rootpublic int getInvisibleCount()
public String getInvisibleKey(int index)
index - the index of the element
public String getInvisibleRoot(int index)
index - the index of the element
public DockableProperty getInvisibleLocation(int index)
index - the index of the element
public DockLayoutComposition getInvisibleLayout(int index)
index - the index of the layout
nullpublic void fillMissing(DockSituation situation)
situation, this method tries
to fill any gaps in the layout.
situation - a set of factories to use
IllegalArgumentException - if situation cannot handle
the content of this setting
public void write(DockSituation situation,
PropertyTransformer transformer,
boolean entry,
DataOutputStream out)
throws IOException
out.
situation - can be used to write DockLayoutstransformer - can be used to write DockablePropertysentry - if true, then this setting is used as one of
the settings a user can choose. If false then this setting
is used as the final setting that is written when the application
shuts down.out - a stream to write into
IOException - if an I/O-error occurs
public void writeXML(DockSituation situation,
PropertyTransformer transformer,
boolean entry,
XElement element)
situation - can be used to write DockLayoutstransformer - can be used to write DockablePropertysentry - if true, then this setting is used as one of
the settings a user can choose. If false then this setting
is used as the final setting that is written when the application
shuts down.element - the element into which this setting writes, the attributes
of element are not changed.
public void read(DockSituation situation,
PropertyTransformer transformer,
boolean entry,
DataInputStream in)
throws IOException
situation - can be used to read DockLayoutstransformer - can be used to read DockablePropertysentry - if true, then this setting is used as one of
the settings a user can choose. If false then this setting
is used as the first setting that is read when the application
starts up.in - the stream to read from
IOException - if an I/O-error occurs
public void readXML(DockSituation situation,
PropertyTransformer transformer,
boolean entry,
XElement element)
situation - can be used to read DockLayoutstransformer - can be used to read DockablePropertysentry - if true, then this setting is used as one of
the settings a user can choose. If false then this setting
is used as the first setting that is read when the application
starts up.element - the element which should be read
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||