Class AppConfig

java.lang.Object
lu.kbra.modelizer_next.common.AppConfig

public class AppConfig extends Object
User configuration loaded from and saved to the application configuration file.
  • Constructor Details

    • AppConfig

      public AppConfig()
  • Method Details

    • getDefaultPaletteName

      public String getDefaultPaletteName()
      Returns the default palette name.
      Returns:
      the default palette name
    • getPinnedPaletteNames

      public List<String> getPinnedPaletteNames()
      Returns the pinned palette names.
      Returns:
      the pinned palette names
    • getSelectedPaletteName

      public String getSelectedPaletteName()
      Returns the selected palette name.
      Returns:
      the selected palette name
    • getSkippedUpdateVersion

      public String getSkippedUpdateVersion()
      Returns the skipped update version.
      Returns:
      the skipped update version
    • getThemeMode

      public ThemeMode getThemeMode()
      Returns the theme mode.
      Returns:
      the theme mode
    • isAutoCheckUpdates

      public boolean isAutoCheckUpdates()
      Checks whether auto check updates is enabled or applies.
      Returns:
      true if auto check updates is enabled or applies; otherwise false
    • setAutoCheckUpdates

      public void setAutoCheckUpdates(boolean autoCheckUpdates)
      Sets the auto check updates.
      Parameters:
      autoCheckUpdates - whether auto check updates is enabled
    • setDefaultPaletteName

      public void setDefaultPaletteName(String defaultPaletteName)
      Sets the default palette name.
      Parameters:
      defaultPaletteName - name value to use
    • setPinnedPaletteNames

      public void setPinnedPaletteNames(List<String> pinnedPaletteNames)
      Sets the pinned palette names.
      Parameters:
      pinnedPaletteNames - name values to use
    • setSelectedPaletteName

      public void setSelectedPaletteName(String selectedPaletteName)
      Sets the selected palette name.
      Parameters:
      selectedPaletteName - name value to use
    • setSkippedUpdateVersion

      public void setSkippedUpdateVersion(String skippedUpdateVersion)
      Sets the skipped update version.
      Parameters:
      skippedUpdateVersion - text value for skipped update version
    • setThemeMode

      public void setThemeMode(ThemeMode themeMode)
      Sets the theme mode.
      Parameters:
      themeMode - theme mode value used by the operation
    • toString

      public String toString()
      Builds a debug string for this application config.
      Overrides:
      toString in class Object
      Returns:
      a debug string for this object