org.cruxframework.crux.plugin.gadget.client.features
Class SetPrefsFeatureImpl

java.lang.Object
  extended by org.cruxframework.crux.plugin.gadget.client.features.SetPrefsFeatureImpl
All Implemented Interfaces:
SetPrefsFeature

public class SetPrefsFeatureImpl
extends Object
implements SetPrefsFeature

Provides access to the preference-saving API.


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


Copyright © 2014. All rights reserved.