com.sencha.gxt.state.client
Class HtmlStorageProvider

java.lang.Object
  extended by com.sencha.gxt.state.client.Provider
      extended by com.sencha.gxt.state.client.HtmlStorageProvider

public class HtmlStorageProvider
extends Provider

Simple HTML5 Storage implementation of the state provider.


Constructor Summary
HtmlStorageProvider(com.google.gwt.storage.client.Storage storage)
           
 
Method Summary
 void clear(String name)
          Clears the named value.
 void getValue(String name, Callback<String,Throwable> callback)
          Returns the value asynchronously.
 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

HtmlStorageProvider

public HtmlStorageProvider(com.google.gwt.storage.client.Storage storage)
Method Detail

clear

public void clear(String name)
Description copied from class: Provider
Clears the named value.

Overrides:
clear in class Provider
Parameters:
name - the property name

getValue

public void getValue(String name,
                     Callback<String,Throwable> callback)
Description copied from class: Provider
Returns the value asynchronously.

Specified by:
getValue in class Provider
Parameters:
name - the property name
callback - the callback

setValue

public void setValue(String name,
                     String value)
Description copied from class: Provider
Sets the value.

Specified by:
setValue in class Provider
Parameters:
name - the property name
value - the value


Copyright © 2012. All Rights Reserved.