com.google.gwt.gadgets.client
Class UserPreferences.Preference<T>

java.lang.Object
  extended by com.google.gwt.gadgets.client.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 java.lang.Object

Represents the types of user preferences available in the Gadget container.


Field Summary
protected  PreferencesUtil prefs
          Access to the low-level preferences API.
 
Constructor Summary
UserPreferences.Preference()
           
 
Method Summary
abstract  java.lang.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
 

Field Detail

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.

Constructor Detail

UserPreferences.Preference

public UserPreferences.Preference()
Method Detail

getName

public abstract java.lang.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.