public class JsStorageEvent extends JsEvent implements StorageEvent
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
SVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN
Modifier | Constructor and Description |
---|---|
protected |
JsStorageEvent() |
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 . |
JsStorage |
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
addEventListener, addEventListener, beginElement, beginElementAt, dispatchEvent, endElement, endElementAt, getAnimatedClassName, getAnimatedHeight, getAnimatedHref, getAnimatedResult, getAnimatedTransform, getAnimatedWidth, getAnimatedX, getAnimatedY, getBBox, getChildElementCount, getCTM, getExternalResourcesRequired, getFarthestViewportElement, getFirstElementChild, getLastElementChild, getNearestViewportElement, getNextElementSibling, getPresentationAttribute, getPreserveAspectRatio, getPreviousElementSibling, getRequiredExtensions, getRequiredFeatures, getScreenCTM, getSvgStyle, getSystemLanguage, getTransformToElement, getViewBox, getXmllang, getXmlspace, getZoomAndPan, hasExtension, querySelector, querySelectorAll, removeEventListener, removeEventListener, setXmllang, setXmlspace, setZoomAndPan
at, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAt
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getClipboardData, getCurrentTarget, getEventPhase, getSrcElement, getTarget, getTimeStamp, getType, initEvent, isBubbles, isCancelable, isCancelBubble, isDefaultPrevented, isReturnValue, preventDefault, setCancelBubble, setReturnValue, stopImmediatePropagation, stopPropagation
intAt, length
numberAt
public final String getKey()
StorageEvent
key
attribute is null
when the change is caused by the storage clear()
method. Read only.getKey
in interface StorageEvent
public final String getNewValue()
StorageEvent
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.getNewValue
in interface StorageEvent
public final String getOldValue()
StorageEvent
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.getOldValue
in interface StorageEvent
public final JsStorage getStorageArea()
StorageEvent
getStorageArea
in interface StorageEvent
public final String getUrl()
StorageEvent
key
changed. Read only.getUrl
in interface StorageEvent
public final void initStorageEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, String keyArg, String oldValueArg, String newValueArg, String urlArg, Storage storageAreaArg)
StorageEvent
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.initStorageEvent
in interface StorageEvent
Copyright © 2018. All rights reserved.