@FrameworkOnly public class CSetting extends Setting
Setting
that stores also the contents of a CLocationModeManager
.Constructor and Description |
---|
CSetting() |
Modifier and Type | Method and Description |
---|---|
ModeSettings<Location,Location> |
getModes()
Gets the set of modes.
|
void |
read(DockSituation situation,
PropertyTransformer transformer,
boolean entry,
java.io.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 |
setModes(ModeSettings<Location,Location> modes)
Sets the set of modes.
|
void |
write(DockSituation situation,
PropertyTransformer transformer,
boolean entry,
java.io.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.
|
addInvisible, fillMissing, getInvisibleCount, getInvisibleKey, getInvisibleLayout, getInvisibleLocation, getInvisibleRoot, getRoot, getRootKeys, putRoot
public void setModes(ModeSettings<Location,Location> modes)
modes
- the modespublic ModeSettings<Location,Location> getModes()
public void write(DockSituation situation, PropertyTransformer transformer, boolean entry, java.io.DataOutputStream out) throws java.io.IOException
Setting
out
.write
in class Setting
situation
- can be used to write DockLayout
stransformer
- can be used to write DockableProperty
sentry
- 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 intojava.io.IOException
- if an I/O-error occurspublic void writeXML(DockSituation situation, PropertyTransformer transformer, boolean entry, XElement element)
Setting
writeXML
in class Setting
situation
- can be used to write DockLayout
stransformer
- can be used to write DockableProperty
sentry
- 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, java.io.DataInputStream in) throws java.io.IOException
Setting
read
in class Setting
situation
- can be used to read DockLayout
stransformer
- can be used to read DockableProperty
sentry
- 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 fromjava.io.IOException
- if an I/O-error occurspublic void readXML(DockSituation situation, PropertyTransformer transformer, boolean entry, XElement element)
Setting
readXML
in class Setting
situation
- can be used to read DockLayout
stransformer
- can be used to read DockableProperty
sentry
- 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