Example usage for Java com.google.gwt.storage.client Storage fields, constructors, methods, implement or subclass
The text is from its open source code.
HandlerRegistration | addStorageEventHandler(StorageEvent.Handler handler) Registers an event handler for StorageEvents. |
void | clear() Removes all items in the Storage. |
String | getItem(String key) Returns the item in the Storage associated with the specified key. |
int | getLength() Returns the number of items in this Storage. |
Storage | getLocalStorageIfSupported() Returns a Local Storage. |
Storage | getSessionStorageIfSupported() Returns a Session Storage. |
boolean | isLocalStorageSupported() Returns true if the localStorage part of the Storage API is supported on the running platform. |
boolean | isSessionStorageSupported() Returns true if the sessionStorage part of the Storage API is supported on the running platform. |
boolean | isSupported() Returns true if the Storage API (both localStorage and sessionStorage) is supported on the running platform. |
String | key(int index) Returns the key at the specified index. |
void | removeItem(String key) Removes the item in the Storage associated with the specified key. |
void | removeStorageEventHandler(StorageEvent.Handler handler) De-registers an event handler for StorageEvents. |
void | setItem(String key, String data) Sets the value in the Storage associated with the specified key to the specified data. |