|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.support.mode.ModeSettings<Location,B>
bibliothek.gui.dock.facile.mode.CLocationModeSettings<B>
B - the intermediate format used for properties by the ModeSettingsConverter@FrameworkOnly public class CLocationModeSettings<B>
This ModeSettings provides operations to load settings that were
stored with version 1.0.7, no additional settings were added.
| Constructor Summary | |
|---|---|
CLocationModeSettings(ModeSettingsConverter<Location,B> converter)
Creates a new setting. |
|
| Method Summary | |
|---|---|
void |
rescue(CMaximizedMode maximizedMode)
If there were settings rescued from an older version, then these settings are transfered 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. |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CLocationModeSettings(ModeSettingsConverter<Location,B> converter)
converter - conversion tool for meta data| Method Detail |
|---|
public void rescue(CMaximizedMode maximizedMode)
maximizedMode.
maximizedMode - the mode to store settings inprotected Path resuceMode(String mode)
ModeSettings
resuceMode in class ModeSettings<Location,B>mode - the single identifier
null
protected void rescueSettings(DataInputStream in,
Version version)
throws IOException
ModeSettings
rescueSettings in class ModeSettings<Location,B>in - the stream to read fromversion - the version that was found
IOException - in case of an errorprotected void rescueSettings(XElement element)
ModeSettings
rescueSettings in class ModeSettings<Location,B>element - the entry that has to be rescued
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||