public class MaximizedModeSetting extends Object implements ModeSetting<Location>
MaximizedMode.| Modifier and Type | Field and Description |
|---|---|
static ModeSettingFactory<Location> |
FACTORY
factory creating new
MaximizedModeSettings |
| Constructor and Description |
|---|
MaximizedModeSetting() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Location> |
getLastMaximizedLocation()
Gets the location of
Dockables that are currently maximized. |
Map<String,Path> |
getLastMaximizedMode()
Gets the modes of
Dockables 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
Dockables that are maximized. |
void |
setLastMaximizedMode(Map<String,Path> lastMaximizedMode)
Sets the mode of
Dockables 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
MaximizedModeSettingspublic Path getModeId()
ModeSettingMode this setting is
associated with.getModeId in interface ModeSetting<Location>public void setLastMaximizedLocation(Map<String,Location> lastMaximizedLocation)
Dockables 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)
Dockables that are maximized. This method makes a copy
of the map.lastMaximizedMode - the map that is going to be copiedpublic Map<String,Location> getLastMaximizedLocation()
Dockables that are currently maximized.public Map<String,Path> getLastMaximizedMode()
Dockables that are currently maximized.public <B> void write(DataOutputStream out, ModeSettingsConverter<Location,B> converter) throws IOException
ModeSettingout.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
ModeSettingin.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)
ModeSettingelement. 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)
ModeSettingelement.read in interface ModeSetting<Location>element - the item to read fromconverter - converts data to and from persistent storageCopyright © 2018. All rights reserved.