class StorageImplNonNativeEvents extends StorageImpl
Implementation of StorageEvents is incomplete for many browsers. This class amends the properties consistently with W3C's StorageEvent.
jsHandler, LOCAL_STORAGE, SESSION_STORAGE, storageEventHandlers| Constructor and Description |
|---|
StorageImplNonNativeEvents() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addStorageEventHandler0() |
void |
clear(java.lang.String storage)
Removes all items in the Storage.
|
void |
removeItem(java.lang.String storage,
java.lang.String key)
Removes the item in the Storage associated with the specified key.
|
protected void |
removeStorageEventHandler0() |
void |
setItem(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.
|
addStorageEventHandler, getItem, getLength, getStorageEventHandlers, getStorageFromEvent, handleStorageEvent, hasStorageEventHandlers, key, removeStorageEventHandlerpublic void clear(java.lang.String storage)
StorageImplclear in class StorageImplstorage - either StorageImpl.LOCAL_STORAGE or StorageImpl.SESSION_STORAGEpublic void removeItem(java.lang.String storage,
java.lang.String key)
StorageImplremoveItem in class StorageImplstorage - either StorageImpl.LOCAL_STORAGE or StorageImpl.SESSION_STORAGEkey - the key to a value in the Storagepublic void setItem(java.lang.String storage,
java.lang.String key,
java.lang.String data)
StorageImplsetItem in class StorageImplstorage - either StorageImpl.LOCAL_STORAGE or StorageImpl.SESSION_STORAGEkey - the key to a value in the Storagedata - the value associated with the keyprotected void addStorageEventHandler0()
addStorageEventHandler0 in class StorageImplprotected void removeStorageEventHandler0()
removeStorageEventHandler0 in class StorageImpl