Package bibliothek.gui.dock.facile.mode
Class MaximizedModeSetting
java.lang.Object
bibliothek.gui.dock.facile.mode.MaximizedModeSetting
- All Implemented Interfaces:
ModeSetting<Location>
Settings associated with a
MaximizedMode.- Author:
- Benjamin Sigg
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic ModeSettingFactory<Location>factory creating newMaximizedModeSettings -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the location ofDockables that are currently maximized.Gets the modes ofDockables that are currently maximized.Gets the unique identifier of theModethis setting is associated with.<B> voidread(XElement element, ModeSettingsConverter<Location, B> converter) Reads the contents of this setting fromelement.<B> voidread(DataInputStream in, ModeSettingsConverter<Location, B> converter) Reads the contents of this setting fromin.voidsetLastMaximizedLocation(Map<String, Location> lastMaximizedLocation) Sets the location ofDockables that are maximized.voidsetLastMaximizedMode(Map<String, Path> lastMaximizedMode) Sets the mode ofDockables that are maximized.<B> voidwrite(XElement element, ModeSettingsConverter<Location, B> converter) Writes the contents of this setting intoelement.<B> voidwrite(DataOutputStream out, ModeSettingsConverter<Location, B> converter) Writes the contents of this setting intoout.
-
Field Details
-
FACTORY
factory creating newMaximizedModeSettings
-
-
Constructor Details
-
MaximizedModeSetting
public MaximizedModeSetting()
-
-
Method Details
-
getModeId
Description copied from interface:ModeSettingGets the unique identifier of theModethis setting is associated with.- Specified by:
getModeIdin interfaceModeSetting<Location>- Returns:
- the identifier
-
setLastMaximizedLocation
Sets the location ofDockables that are maximized. This method makes a copy of the map.- Parameters:
lastMaximizedLocation- the map that is going to be copied
-
setLastMaximizedMode
Sets the mode ofDockables that are maximized. This method makes a copy of the map.- Parameters:
lastMaximizedMode- the map that is going to be copied
-
getLastMaximizedLocation
Gets the location ofDockables that are currently maximized.- Returns:
- an unmodifiable map
-
getLastMaximizedMode
Gets the modes ofDockables that are currently maximized.- Returns:
- an unmodifiable map
-
write
public <B> void write(DataOutputStream out, ModeSettingsConverter<Location, B> converter) throws IOExceptionDescription copied from interface:ModeSettingWrites the contents of this setting intoout.- Specified by:
writein interfaceModeSetting<Location>- Parameters:
out- the stream to write intoconverter- converts data to and from persistent storage- Throws:
IOException- in case of an error
-
read
public <B> void read(DataInputStream in, ModeSettingsConverter<Location, B> converter) throws IOExceptionDescription copied from interface:ModeSettingReads the contents of this setting fromin.- Specified by:
readin interfaceModeSetting<Location>- Parameters:
in- the stream to read fromconverter- converts data to and from persistent storage- Throws:
IOException- in case of an error
-
write
Description copied from interface:ModeSettingWrites the contents of this setting intoelement. This method should add children toelement, but not change the attributes ofelement.- Specified by:
writein interfaceModeSetting<Location>- Parameters:
element- the item to write intoconverter- converts data to and from persistent storage
-
read
Description copied from interface:ModeSettingReads the contents of this setting fromelement.- Specified by:
readin interfaceModeSetting<Location>- Parameters:
element- the item to read fromconverter- converts data to and from persistent storage
-