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 the ModeSettingsConverter

@FrameworkOnly public class CLocationModeSettings<B> extends ModeSettings<Location,B>
This ModeSettings provides operations to load settings that were stored with version 1.0.7, no additional settings were added.
Author:
Benjamin Sigg
  • Constructor Details

    • CLocationModeSettings

      public CLocationModeSettings(ModeSettingsConverter<Location,B> converter)
      Creates a new setting.
      Parameters:
      converter - conversion tool for meta data
  • Method Details

    • rescue

      public void rescue(CMaximizedMode maximizedMode)
      If there were settings rescued from an older version, then these settings are transferred to maximizedMode.
      Parameters:
      maximizedMode - the mode to store settings in
    • resuceMode

      protected Path resuceMode(String mode)
      Description copied from class: ModeSettings
      Called if a single identifier of a mode is found as was used in version 1.0.7 and below.
      Overrides:
      resuceMode in class ModeSettings<Location,B>
      Parameters:
      mode - the single identifier
      Returns:
      the identifier of the matching mode, can be null
    • rescueSettings

      protected void rescueSettings(DataInputStream in, Version version) throws IOException
      Description copied from class: ModeSettings
      Called 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:
      rescueSettings in class ModeSettings<Location,B>
      Parameters:
      in - the stream to read from
      version - the version that was found
      Throws:
      IOException - in case of an error
    • rescueSettings

      protected void rescueSettings(XElement element)
      Description copied from class: ModeSettings
      Called if some setting does not have the "modes" entry, the assumption is that only old settings are missing this entry.
      Overrides:
      rescueSettings in class ModeSettings<Location,B>
      Parameters:
      element - the entry that has to be rescued