com.sencha.gxt.state.client
Class Provider

java.lang.Object
  extended by com.sencha.gxt.state.client.Provider
Direct Known Subclasses:
AbstractRpcProvider, CookieProvider, HtmlStorageProvider

public abstract class Provider
extends Object

Abstract base class for state provider implementations. Providers are stores of String->String pairs, so that a given String key may be used to persist a String value, and that same key later can be used to load that value again. An empty string should be considered no value at all, so setValue(key, "") is equivalent to setValue(key, null), as to clear(key).


Constructor Summary
Provider()
           
 
Method Summary
 void clear(String name)
          Clears the named value.
abstract  void getValue(String name, Callback<String,Throwable> callback)
          Returns the value asynchronously.
abstract  void setValue(String name, String value)
          Sets the value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Provider

public Provider()
Method Detail

clear

public void clear(String name)
Clears the named value.

Parameters:
name - the property name

getValue

public abstract void getValue(String name,
                              Callback<String,Throwable> callback)
Returns the value asynchronously.

Parameters:
name - the property name
callback - the callback

setValue

public abstract void setValue(String name,
                              String value)
Sets the value.

Parameters:
name - the property name
value - the value


Copyright © 2012. All Rights Reserved.