public class MaximizedModeSetting extends Object implements ModeSetting<Location>
MaximizedMode
.Modifier and Type | Field and Description |
---|---|
static ModeSettingFactory<Location> |
FACTORY
factory creating new
MaximizedModeSetting s |
Constructor and Description |
---|
MaximizedModeSetting() |
Modifier and Type | Method and Description |
---|---|
Map<String,Location> |
getLastMaximizedLocation()
Gets the location of
Dockable s that are currently maximized. |
Map<String,Path> |
getLastMaximizedMode()
Gets the modes of
Dockable s that are currently maximized. |
Path |
getModeId()
Gets the unique identifier of the
Mode this setting is
associated with. |
<B> void |
read(DataInputStream in,
ModeSettingsConverter<Location,B> converter)
Reads the contents of this setting from
in . |
<B> void |
read(XElement element,
ModeSettingsConverter<Location,B> converter)
Reads the contents of this setting from
element . |
void |
setLastMaximizedLocation(Map<String,Location> lastMaximizedLocation)
Sets the location of
Dockable s that are maximized. |
void |
setLastMaximizedMode(Map<String,Path> lastMaximizedMode)
Sets the mode of
Dockable s that are maximized. |
<B> void |
write(DataOutputStream out,
ModeSettingsConverter<Location,B> converter)
Writes the contents of this setting into
out . |
<B> void |
write(XElement element,
ModeSettingsConverter<Location,B> converter)
Writes the contents of this setting into
element . |
public static ModeSettingFactory<Location> FACTORY
MaximizedModeSetting
spublic Path getModeId()
ModeSetting
Mode
this setting is
associated with.getModeId
in interface ModeSetting<Location>
public void setLastMaximizedLocation(Map<String,Location> lastMaximizedLocation)
Dockable
s that are maximized. This method makes a copy
of the map.lastMaximizedLocation
- the map that is going to be copiedpublic void setLastMaximizedMode(Map<String,Path> lastMaximizedMode)
Dockable
s that are maximized. This method makes a copy
of the map.lastMaximizedMode
- the map that is going to be copiedpublic Map<String,Location> getLastMaximizedLocation()
Dockable
s that are currently maximized.public Map<String,Path> getLastMaximizedMode()
Dockable
s that are currently maximized.public <B> void write(DataOutputStream out, ModeSettingsConverter<Location,B> converter) throws IOException
ModeSetting
out
.write
in interface ModeSetting<Location>
out
- the stream to write intoconverter
- converts data to and from persistent storageIOException
- in case of an errorpublic <B> void read(DataInputStream in, ModeSettingsConverter<Location,B> converter) throws IOException
ModeSetting
in
.read
in interface ModeSetting<Location>
in
- the stream to read fromconverter
- converts data to and from persistent storageIOException
- in case of an errorpublic <B> void write(XElement element, ModeSettingsConverter<Location,B> converter)
ModeSetting
element
. This
method should add children to element
, but not change
the attributes of element
.write
in interface ModeSetting<Location>
element
- the item to write intoconverter
- converts data to and from persistent storagepublic <B> void read(XElement element, ModeSettingsConverter<Location,B> converter)
ModeSetting
element
.read
in interface ModeSetting<Location>
element
- the item to read fromconverter
- converts data to and from persistent storage