Package com.google.gwt.storage.client
Class StorageEvent
- java.lang.Object
-
- com.google.gwt.core.client.JavaScriptObject
-
- com.google.gwt.storage.client.StorageEvent
-
public final class StorageEvent extends JavaScriptObject
Represents a Storage Event.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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStorageEvent.HandlerRepresents an Event handler forStorageEvents.
-
Constructor Summary
Constructors Modifier Constructor Description protectedStorageEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetKey()Returns the key being changed.java.lang.StringgetNewValue()Returns the new value of the key being changed.java.lang.StringgetOldValue()Returns the old value of the key being changed.StoragegetStorageArea()Returns theStorageobject that was affected.java.lang.StringgetUrl()Returns the address of the document whose key changed.-
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
-
-
-
-
Method Detail
-
getKey
public java.lang.String getKey()
Returns the key being changed.- Returns:
- the key being changed
- See Also:
- W3C Web Storage - StorageEvent.key
-
getNewValue
public java.lang.String getNewValue()
Returns the new value of the key being changed.- Returns:
- the new value of the key being changed
- See Also:
- W3C Web Storage - StorageEvent.newValue
-
getOldValue
public java.lang.String getOldValue()
Returns the old value of the key being changed.- Returns:
- the old value of the key being changed
- See Also:
- W3C Web Storage - StorageEvent.oldValue
-
getStorageArea
public Storage getStorageArea()
Returns theStorageobject that was affected.- Returns:
- the
Storageobject that was affected - See Also:
- W3C Web Storage - StorageEvent.storageArea
-
getUrl
public java.lang.String getUrl()
Returns the address of the document whose key changed.- Returns:
- the address of the document whose key changed
- See Also:
- W3C Web Storage - StorageEvent.url
-
-