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, removeStorageEventHandler
public void clear(java.lang.String storage)
StorageImpl
clear
in class StorageImpl
storage
- either StorageImpl.LOCAL_STORAGE
or StorageImpl.SESSION_STORAGE
public void removeItem(java.lang.String storage, java.lang.String key)
StorageImpl
removeItem
in class StorageImpl
storage
- either StorageImpl.LOCAL_STORAGE
or StorageImpl.SESSION_STORAGE
key
- the key to a value in the Storagepublic void setItem(java.lang.String storage, java.lang.String key, java.lang.String data)
StorageImpl
setItem
in class StorageImpl
storage
- either StorageImpl.LOCAL_STORAGE
or StorageImpl.SESSION_STORAGE
key
- the key to a value in the Storagedata
- the value associated with the keyprotected void addStorageEventHandler0()
addStorageEventHandler0
in class StorageImpl
protected void removeStorageEventHandler0()
removeStorageEventHandler0
in class StorageImpl