public class StorageWriteProxy extends Object implements DataProxy<StorageWriteProxy.KeyAndValue,Void>
| Modifier and Type | Class and Description |
|---|---|
static class |
StorageWriteProxy.KeyAndValue
Defines a key / value pair.
|
| Constructor and Description |
|---|
StorageWriteProxy(boolean session)
Creates a storage write proxy that saves a key and value to HTML5 browser
based storage.
|
StorageWriteProxy(com.google.gwt.storage.client.Storage storage)
Creates a storage write proxy that saves a key and value to the given HTML5
browser based storage.
|
| Modifier and Type | Method and Description |
|---|---|
void |
load(StorageWriteProxy.KeyAndValue data,
Callback<Void,Throwable> callback)
Data should be retrieved using the specified load config.
|
public StorageWriteProxy(boolean session)
session - true to use session storage, false to use local storagepublic StorageWriteProxy(com.google.gwt.storage.client.Storage storage)
storage - the browser based storagepublic void load(StorageWriteProxy.KeyAndValue data, Callback<Void,Throwable> callback)
DataProxyDataReader can be used to "process" the raw data.load in interface DataProxy<StorageWriteProxy.KeyAndValue,Void>data - the load config object to be passed to servercallback - the data callbackCopyright © 2012. All Rights Reserved.