Package com.google.gwt.storage.client
Class StorageImplNonNativeEvents
java.lang.Object
com.google.gwt.storage.client.StorageImpl
com.google.gwt.storage.client.StorageImplNonNativeEvents
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidRemoves all items in the Storage.voidremoveItem(String storage, String key) Removes the item in the Storage associated with the specified key.protected voidvoidSets 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
-
Constructor Details
-
StorageImplNonNativeEvents
StorageImplNonNativeEvents()
-
-
Method Details
-
clear
Description copied from class:StorageImplRemoves all items in the Storage.- Overrides:
clearin classStorageImpl- Parameters:
storage- eitherStorageImpl.LOCAL_STORAGEorStorageImpl.SESSION_STORAGE- See Also:
-
removeItem
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:
-
setItem
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:
-
addStorageEventHandler0
protected void addStorageEventHandler0()- Overrides:
addStorageEventHandler0in classStorageImpl
-
removeStorageEventHandler0
protected void removeStorageEventHandler0()- Overrides:
removeStorageEventHandler0in classStorageImpl
-