
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, WEBKITTRANSITIONENDSVG_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, stopPropagationaddEventListener, 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, setZoomAndPanat, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAtcast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toStringgetClipboardData, getCurrentTarget, getEventPhase, getSrcElement, getTarget, getTimeStamp, getType, initEvent, isBubbles, isCancelable, isCancelBubble, isDefaultPrevented, isReturnValue, preventDefault, setCancelBubble, setReturnValue, stopImmediatePropagation, stopPropagationintAt, lengthnumberAtpublic final String getKey()
StorageEventkey attribute is null when the change is caused by the storage clear() method. Read only.getKey in interface StorageEventpublic final String getNewValue()
StorageEventkey. 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 StorageEventpublic final String getOldValue()
StorageEventkey. 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 StorageEventpublic final JsStorage getStorageArea()
StorageEventgetStorageArea in interface StorageEventpublic final String getUrl()
StorageEventkey changed. Read only.getUrl in interface StorageEventpublic final void initStorageEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, String keyArg, String oldValueArg, String newValueArg, String urlArg, Storage storageAreaArg)
StorageEventInitializes the event in a manner analogous to the similarly-named method in the DOM Events interfaces.
typeArgcanBubbleArgcancelableArgkeyArgoldValueArgnewValueArgurlArgstorageAreaArgStorage
object representing the storage area on which this event occurred.initStorageEvent in interface StorageEventCopyright © 2016. All rights reserved.