com.google.gwt.gadgets.client
Class SetPrefsFeature

java.lang.Object
  extended by com.google.gwt.gadgets.client.SetPrefsFeature
All Implemented Interfaces:
GadgetFeature

public class SetPrefsFeature
extends java.lang.Object
implements GadgetFeature

Provides access to the preference-saving API.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.google.gwt.gadgets.client.GadgetFeature
GadgetFeature.FeatureName, GadgetFeature.MayRequire
 
Method Summary
<T> void
set(UserPreferences.Preference<T> pref, T value)
          Assign a new value to the specified preference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

set

public <T> void set(UserPreferences.Preference<T> pref,
                    T value)
Assign a new value to the specified preference.

Type Parameters:
T - the type of data encapsulated by the preference
Parameters:
pref - a Preference object obtained from a subtype of UserPreferences
value - the new value to assign