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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
Removes all items in the Storage.void
removeItem
(String storage, String key) Removes the item in the Storage associated with the specified key.protected void
void
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
-
Constructor Details
-
StorageImplNonNativeEvents
StorageImplNonNativeEvents()
-
-
Method Details
-
clear
Description copied from class:StorageImpl
Removes all items in the Storage.- Overrides:
clear
in classStorageImpl
- Parameters:
storage
- eitherStorageImpl.LOCAL_STORAGE
orStorageImpl.SESSION_STORAGE
- See Also:
-
removeItem
Description copied from class:StorageImpl
Removes the item in the Storage associated with the specified key.- Overrides:
removeItem
in classStorageImpl
- Parameters:
storage
- eitherStorageImpl.LOCAL_STORAGE
orStorageImpl.SESSION_STORAGE
key
- the key to a value in the Storage- See Also:
-
setItem
Description copied from class:StorageImpl
Sets the value in the Storage associated with the specified key to the specified data.- Overrides:
setItem
in classStorageImpl
- Parameters:
storage
- eitherStorageImpl.LOCAL_STORAGE
orStorageImpl.SESSION_STORAGE
key
- the key to a value in the Storagedata
- the value associated with the key- See Also:
-
addStorageEventHandler0
protected void addStorageEventHandler0()- Overrides:
addStorageEventHandler0
in classStorageImpl
-
removeStorageEventHandler0
protected void removeStorageEventHandler0()- Overrides:
removeStorageEventHandler0
in classStorageImpl
-