com.google.gwt.gadgets.client
Class SetPrefsFeatureImpl

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

public class SetPrefsFeatureImpl
extends java.lang.Object
implements GadgetFeature, SetPrefsFeature

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)
Description copied from interface: SetPrefsFeature
Assign a new value to the specified preference.

Specified by:
set in interface SetPrefsFeature
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