Package generic.theme

Class ThemePreferences

java.lang.Object
generic.theme.ThemePreferences

public class ThemePreferences extends Object
Reads and writes current theme info to preferences
  • Constructor Details

    • ThemePreferences

      public ThemePreferences()
  • Method Details

    • load

      public GTheme load()
      Returns the theme that was stored in preferences or the default theme if none stored.
      Returns:
      the last theme used (stored in preferences) or the default theme if not stored in preferences
    • save

      public void save(GTheme theme)
      Saves the current theme choice to Preferences.
      Parameters:
      theme - the theme to remember in Preferences