Package lu.kbra.modelizer_next.common
Class AppConfig
java.lang.Object
lu.kbra.modelizer_next.common.AppConfig
User configuration loaded from and saved to the application configuration file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the default palette name.Returns the pinned palette names.Returns the selected palette name.Returns the skipped update version.Returns the theme mode.booleanChecks whether auto check updates is enabled or applies.voidsetAutoCheckUpdates(boolean autoCheckUpdates) Sets the auto check updates.voidsetDefaultPaletteName(String defaultPaletteName) Sets the default palette name.voidsetPinnedPaletteNames(List<String> pinnedPaletteNames) Sets the pinned palette names.voidsetSelectedPaletteName(String selectedPaletteName) Sets the selected palette name.voidsetSkippedUpdateVersion(String skippedUpdateVersion) Sets the skipped update version.voidsetThemeMode(ThemeMode themeMode) Sets the theme mode.toString()Builds a debug string for this application config.
-
Constructor Details
-
AppConfig
public AppConfig()
-
-
Method Details
-
getDefaultPaletteName
Returns the default palette name.- Returns:
- the default palette name
-
getPinnedPaletteNames
Returns the pinned palette names.- Returns:
- the pinned palette names
-
getSelectedPaletteName
Returns the selected palette name.- Returns:
- the selected palette name
-
getSkippedUpdateVersion
Returns the skipped update version.- Returns:
- the skipped update version
-
getThemeMode
Returns the theme mode.- Returns:
- the theme mode
-
isAutoCheckUpdates
public boolean isAutoCheckUpdates()Checks whether auto check updates is enabled or applies.- Returns:
trueif auto check updates is enabled or applies; otherwisefalse
-
setAutoCheckUpdates
public void setAutoCheckUpdates(boolean autoCheckUpdates) Sets the auto check updates.- Parameters:
autoCheckUpdates- whether auto check updates is enabled
-
setDefaultPaletteName
Sets the default palette name.- Parameters:
defaultPaletteName- name value to use
-
setPinnedPaletteNames
Sets the pinned palette names.- Parameters:
pinnedPaletteNames- name values to use
-
setSelectedPaletteName
Sets the selected palette name.- Parameters:
selectedPaletteName- name value to use
-
setSkippedUpdateVersion
Sets the skipped update version.- Parameters:
skippedUpdateVersion- text value for skipped update version
-
setThemeMode
Sets the theme mode.- Parameters:
themeMode- theme mode value used by the operation
-
toString
Builds a debug string for this application config.
-