org.cruxframework.crux.plugin.gadget.client.features
Class UserPreferences.Preference<T>
java.lang.Object
org.cruxframework.crux.plugin.gadget.client.features.UserPreferences.Preference<T>
- Type Parameters:
T - the type of data encapsulated
- Direct Known Subclasses:
- BooleanPreference, EnumPreference, ListPreference, StringPreference
- Enclosing interface:
- UserPreferences
public abstract static class UserPreferences.Preference<T>
- extends Object
Represents the types of user preferences available in the Gadget container.
|
Method Summary |
abstract String |
getName()
The unique name of the preference. |
abstract T |
getValue()
Returns the current value of the preference. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
prefs
protected final PreferencesUtil prefs
- Access to the low-level preferences API. Access to this object should
only be necessary for implementors of new preference types.
UserPreferences.Preference
public UserPreferences.Preference()
getName
public abstract String getName()
- The unique name of the preference. This value is typically the name of
the accessor method.
getValue
public abstract T getValue()
- Returns the current value of the preference.
Copyright © 2014. All rights reserved.