Package generic.theme
Class ThemePreferences
java.lang.Object
generic.theme.ThemePreferences
Reads and writes current theme info to preferences
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionload()
Returns the theme that was stored in preferences or the default theme if none stored.void
Saves the current theme choice toPreferences
.
-
Constructor Details
-
ThemePreferences
public ThemePreferences()
-
-
Method Details
-
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
Saves the current theme choice toPreferences
.- Parameters:
theme
- the theme to remember inPreferences
-