Java com.google.gwt.storage.client Storage fields, constructors, methods, implement or subclass

Example usage for Java com.google.gwt.storage.client Storage fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.gwt.storage.client Storage.

The text is from its open source code.

Method

HandlerRegistrationaddStorageEventHandler(StorageEvent.Handler handler)
Registers an event handler for StorageEvents.
voidclear()
Removes all items in the Storage.
StringgetItem(String key)
Returns the item in the Storage associated with the specified key.
intgetLength()
Returns the number of items in this Storage.
StoragegetLocalStorageIfSupported()
Returns a Local Storage.
StoragegetSessionStorageIfSupported()
Returns a Session Storage.
booleanisLocalStorageSupported()
Returns true if the localStorage part of the Storage API is supported on the running platform.
booleanisSessionStorageSupported()
Returns true if the sessionStorage part of the Storage API is supported on the running platform.
booleanisSupported()
Returns true if the Storage API (both localStorage and sessionStorage) is supported on the running platform.
Stringkey(int index)
Returns the key at the specified index.
voidremoveItem(String key)
Removes the item in the Storage associated with the specified key.
voidremoveStorageEventHandler(StorageEvent.Handler handler)
De-registers an event handler for StorageEvents.
voidsetItem(String key, String data)
Sets the value in the Storage associated with the specified key to the specified data.