public interface StorageEvent extends Event
nsIDOMEvent
Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)
A StorageEvent
is sent to a window when a storage area changes.
Although this event existed prior to Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)
, it did not match the specification. The old event format is now represented by the nsIDOMStorageEventObsolete
interface.
AT_TARGET, BEFORECOPY, BEFORECUT, BEFOREPASTE, BLUR, BUBBLING_PHASE, CAPTURING_PHASE, CHANGE, CLICK, CONTEXTMENU, COPY, CUT, DBLCLICK, DRAG, DRAGEND, DRAGENTER, DRAGLEAVE, DRAGOVER, DRAGSTART, DROP, ERROR, FOCUS, FOCUSIN, FOCUSOUT, INPUT, INVALID, KEYDOWN, KEYPRESS, KEYUP, MOUSEDOWN, MOUSEMOVE, MOUSEOUT, MOUSEOVER, MOUSEUP, MOUSEWHEEL, NONE, PASTE, RESIZE, SCROLL, SELECTSTART, SUBMIT, TOUCHCANCEL, TOUCHEND, TOUCHMOVE, TOUCHSTART, WEBKITANIMATIONEND, WEBKITANIMATIONITERATION, WEBKITANIMATIONSTART, WEBKITTRANSITIONEND
Modifier and Type | Method and Description |
---|---|
String |
getKey()
Represents the key changed.
|
String |
getNewValue()
The new value of the
key . |
String |
getOldValue()
The original value of the
key . |
Storage |
getStorageArea()
Represents the Storage object that was affected.
|
String |
getUrl()
The URL of the document whose
key changed. |
void |
initStorageEvent(String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
String keyArg,
String oldValueArg,
String newValueArg,
String urlArg,
Storage storageAreaArg)
Initializes the event in a manner analogous to the similarly-named method in the DOM Events interfaces.
|
getClipboardData, getCurrentTarget, getEventPhase, getSrcElement, getTarget, getTimeStamp, getType, initEvent, isBubbles, isCancelable, isCancelBubble, isDefaultPrevented, isReturnValue, preventDefault, setCancelBubble, setReturnValue, stopImmediatePropagation, stopPropagation
String getKey()
key
attribute is null
when the change is caused by the storage clear()
method. Read only.String getNewValue()
key
. The newValue
is null
when the change has been invoked by storage clear()
method or the key
has been removed from the storage. Read only.String getOldValue()
key
. The oldValue
is null
when the change has been invoked by storage clear()
method or the key
has been newly added and therefor doesn't have any previous value. Read only.Storage getStorageArea()
String getUrl()
key
changed. Read only.void initStorageEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, String keyArg, String oldValueArg, String newValueArg, String urlArg, Storage storageAreaArg)
Initializes the event in a manner analogous to the similarly-named method in the DOM Events interfaces.
typeArg
canBubbleArg
cancelableArg
keyArg
oldValueArg
newValueArg
urlArg
storageAreaArg
Storage
object representing the storage area on which this event occurred.Copyright © 2016. All rights reserved.