B - the intermediate format used for properties by the ModeSettingsConverter@FrameworkOnly public class CLocationModeSettings<B> extends ModeSettings<Location,B>
ModeSettings provides operations to load settings that were
stored with version 1.0.7, no additional settings were added.| Constructor and Description |
|---|
CLocationModeSettings(ModeSettingsConverter<Location,B> converter)
Creates a new setting.
|
| Modifier and Type | Method and Description |
|---|---|
void |
rescue(CMaximizedMode maximizedMode)
If there were settings rescued from an older version, then
these settings are transferred to
maximizedMode. |
protected void |
rescueSettings(DataInputStream in,
Version version)
Called if some setting with version < 1.0.8 is found.
|
protected void |
rescueSettings(XElement element)
Called if some setting does not have the "modes" entry, the assumption is that
only old settings are missing this entry.
|
protected Path |
resuceMode(String mode)
Called if a single identifier of a mode is found as was used in
version 1.0.7 and below.
|
add, add, add, addFactory, getConverter, getCurrent, getHistory, getId, getProperties, getSettings, indexOf, read, readXML, size, write, writeXMLpublic CLocationModeSettings(ModeSettingsConverter<Location,B> converter)
converter - conversion tool for meta datapublic void rescue(CMaximizedMode maximizedMode)
maximizedMode.maximizedMode - the mode to store settings inprotected Path resuceMode(String mode)
ModeSettingsresuceMode in class ModeSettings<Location,B>mode - the single identifiernullprotected void rescueSettings(DataInputStream in, Version version) throws IOException
ModeSettingsrescueSettings in class ModeSettings<Location,B>in - the stream to read fromversion - the version that was foundIOException - in case of an errorprotected void rescueSettings(XElement element)
ModeSettingsrescueSettings in class ModeSettings<Location,B>element - the entry that has to be rescuedCopyright © 2018. All rights reserved.