Package bibliothek.gui.dock.facile.mode
Class CLocationModeSettings<B>
java.lang.Object
bibliothek.gui.dock.support.mode.ModeSettings<Location,B>
bibliothek.gui.dock.facile.mode.CLocationModeSettings<B>
- Type Parameters:
B- the intermediate format used for properties by theModeSettingsConverter
This
ModeSettings provides operations to load settings that were
stored with version 1.0.7, no additional settings were added.- Author:
- Benjamin Sigg
-
Constructor Summary
ConstructorsConstructorDescriptionCLocationModeSettings(ModeSettingsConverter<Location, B> converter) Creates a new setting. -
Method Summary
Modifier and TypeMethodDescriptionvoidrescue(CMaximizedMode maximizedMode) If there were settings rescued from an older version, then these settings are transferred tomaximizedMode.protected voidrescueSettings(XElement element) Called if some setting does not have the "modes" entry, the assumption is that only old settings are missing this entry.protected voidrescueSettings(DataInputStream in, Version version) Called if some setting with version < 1.0.8 is found.protected PathresuceMode(String mode) Called if a single identifier of a mode is found as was used in version 1.0.7 and below.Methods inherited from class bibliothek.gui.dock.support.mode.ModeSettings
add, add, add, addFactory, getConverter, getCurrent, getHistory, getId, getProperties, getSettings, indexOf, read, readXML, size, write, writeXML
-
Constructor Details
-
CLocationModeSettings
Creates a new setting.- Parameters:
converter- conversion tool for meta data
-
-
Method Details
-
rescue
If there were settings rescued from an older version, then these settings are transferred tomaximizedMode.- Parameters:
maximizedMode- the mode to store settings in
-
resuceMode
Description copied from class:ModeSettingsCalled if a single identifier of a mode is found as was used in version 1.0.7 and below.- Overrides:
resuceModein classModeSettings<Location,B> - Parameters:
mode- the single identifier- Returns:
- the identifier of the matching mode, can be
null
-
rescueSettings
Description copied from class:ModeSettingsCalled if some setting with version < 1.0.8 is found. Subclasses may override this method to read and interpret the old settings. The default implementation does nothing.- Overrides:
rescueSettingsin classModeSettings<Location,B> - Parameters:
in- the stream to read fromversion- the version that was found- Throws:
IOException- in case of an error
-
rescueSettings
Description copied from class:ModeSettingsCalled if some setting does not have the "modes" entry, the assumption is that only old settings are missing this entry.- Overrides:
rescueSettingsin classModeSettings<Location,B> - Parameters:
element- the entry that has to be rescued
-