Package com.google.gwt.storage.client
Class StorageImplNonNativeEvents
- java.lang.Object
-
- com.google.gwt.storage.client.StorageImpl
-
- com.google.gwt.storage.client.StorageImplNonNativeEvents
-
class StorageImplNonNativeEvents extends StorageImpl
Implementation of Storage with non-native events.Implementation of StorageEvents is incomplete for many browsers. This class amends the properties consistently with W3C's StorageEvent.
-
-
Field Summary
-
Fields inherited from class com.google.gwt.storage.client.StorageImpl
jsHandler, LOCAL_STORAGE, SESSION_STORAGE, storageEventHandlers
-
-
Constructor Summary
Constructors Constructor Description StorageImplNonNativeEvents()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddStorageEventHandler0()voidclear(java.lang.String storage)Removes all items in the Storage.voidremoveItem(java.lang.String storage, java.lang.String key)Removes the item in the Storage associated with the specified key.protected voidremoveStorageEventHandler0()voidsetItem(java.lang.String storage, java.lang.String key, java.lang.String data)Sets the value in the Storage associated with the specified key to the specified data.-
Methods inherited from class com.google.gwt.storage.client.StorageImpl
addStorageEventHandler, getItem, getLength, getStorageEventHandlers, getStorageFromEvent, handleStorageEvent, hasStorageEventHandlers, key, removeStorageEventHandler
-
-
-
-
Method Detail
-
clear
public void clear(java.lang.String storage)
Description copied from class:StorageImplRemoves all items in the Storage.- Overrides:
clearin classStorageImpl- Parameters:
storage- eitherStorageImpl.LOCAL_STORAGEorStorageImpl.SESSION_STORAGE- See Also:
- W3C Web Storage - Storage.clear()
-
removeItem
public void removeItem(java.lang.String storage, java.lang.String key)Description copied from class:StorageImplRemoves the item in the Storage associated with the specified key.- Overrides:
removeItemin classStorageImpl- Parameters:
storage- eitherStorageImpl.LOCAL_STORAGEorStorageImpl.SESSION_STORAGEkey- the key to a value in the Storage- See Also:
- W3C Web Storage - Storage.removeItem(k)
-
setItem
public void setItem(java.lang.String storage, java.lang.String key, java.lang.String data)Description copied from class:StorageImplSets the value in the Storage associated with the specified key to the specified data.- Overrides:
setItemin classStorageImpl- Parameters:
storage- eitherStorageImpl.LOCAL_STORAGEorStorageImpl.SESSION_STORAGEkey- the key to a value in the Storagedata- the value associated with the key- See Also:
- W3C Web Storage - Storage.setItem(k,v)
-
addStorageEventHandler0
protected void addStorageEventHandler0()
- Overrides:
addStorageEventHandler0in classStorageImpl
-
removeStorageEventHandler0
protected void removeStorageEventHandler0()
- Overrides:
removeStorageEventHandler0in classStorageImpl
-
-