public final class StorageEvent extends JavaScriptObject
Experimental API: This API is still under development and is subject to change.
A Storage Event is fired when a storage area changes, as described in these two sections (for session storage, for local storage).
Modifier and Type | Class and Description |
---|---|
static interface |
StorageEvent.Handler
Represents an Event handler for
StorageEvent s. |
Modifier | Constructor and Description |
---|---|
protected |
StorageEvent() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKey()
Returns the key being changed.
|
java.lang.String |
getNewValue()
Returns the new value of the key being changed.
|
java.lang.String |
getOldValue()
Returns the old value of the key being changed.
|
Storage |
getStorageArea()
Returns the
Storage object that was affected. |
java.lang.String |
getUrl()
Returns the address of the document whose key changed.
|
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
public java.lang.String getKey()
public java.lang.String getNewValue()
public java.lang.String getOldValue()
public Storage getStorageArea()
Storage
object that was affected.Storage
object that was affectedpublic java.lang.String getUrl()