public class CloseEvent extends Event
CloseEvent
.ALT_MASK, AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE, CONTROL_MASK, KEY_CURRENT_EVENT, META_MASK, NONE, SHIFT_MASK, TYPE_ABORT, TYPE_ACTIVATE, TYPE_AFTERPRINT, TYPE_AFTERSCRIPTEXECUTE, TYPE_ANIMATIONCANCEL, TYPE_ANIMATIONEND, TYPE_ANIMATIONITERATION, TYPE_ANIMATIONSTART, TYPE_AUXCLICK, TYPE_BEFORE_UNLOAD, TYPE_BEFOREACTIVATE, TYPE_BEFORECOPY, TYPE_BEFORECUT, TYPE_BEFOREDEACTIVATE, TYPE_BEFOREPASTE, TYPE_BEFOREPRINT, TYPE_BEFORESCRIPTEXECUTE, TYPE_BLUR, TYPE_CANCEL, TYPE_CANPLAY, TYPE_CANPLAYTHROUGH, TYPE_CHANGE, TYPE_CLOSE, TYPE_COPY, TYPE_CUECHANGE, TYPE_CUT, TYPE_DEACTIVATE, TYPE_DEVICELIGHT, TYPE_DEVICEMOTION, TYPE_DEVICEORIENTATION, TYPE_DEVICEORIENTATIONABSOLUTE, TYPE_DEVICEPROXIMITY, TYPE_DOM_DOCUMENT_LOADED, TYPE_DRAG, TYPE_DRAGEND, TYPE_DRAGENTER, TYPE_DRAGLEAVE, TYPE_DRAGOVER, TYPE_DRAGSTART, TYPE_DROP, TYPE_DURATIONCHANGE, TYPE_EMPTIED, TYPE_ENDED, TYPE_ERROR, TYPE_FOCUS, TYPE_FOCUS_IN, TYPE_FOCUS_OUT, TYPE_GAMEPAD_CONNECTED, TYPE_GAMEPAD_DISCONNECTED, TYPE_GOTPOINTERCAPTURE, TYPE_HASH_CHANGE, TYPE_HELP, TYPE_INPUT, TYPE_INVALID, TYPE_KEY_DOWN, TYPE_KEY_PRESS, TYPE_KEY_UP, TYPE_LANGUAGECHANGE, TYPE_LOAD, TYPE_LOAD_END, TYPE_LOAD_START, TYPE_LOADEDDATA, TYPE_LOADEDMETADATA, TYPE_LOSTPOINTERCAPTURE, TYPE_MESSAGE, TYPE_MOUDEENTER, TYPE_MOUSELEAVE, TYPE_MOUSEWHEEL, TYPE_MOZFULLSCREENCHANGE, TYPE_MOZFULLSCREENERROR, TYPE_MSCONTENTZOOM, TYPE_MSFULLSCREENCHANGE, TYPE_MSFULLSCREENERROR, TYPE_MSGESTURECHANGE, TYPE_MSGESTUREDOUBLETAP, TYPE_MSGESTUREEND, TYPE_MSGESTUREHOLD, TYPE_MSGESTURESTART, TYPE_MSGESTURETAP, TYPE_MSGOTPOINTERCAPTURE, TYPE_MSINERTIASTART, TYPE_MSLOSTPOINTERCAPTURE, TYPE_MSMANIPULATIONSTATECHANGED, TYPE_MSPOINTENTER, TYPE_MSPOINTERCANCEL, TYPE_MSPOINTERDOWN, TYPE_MSPOINTERLEAVE, TYPE_MSPOINTERMOVE, TYPE_MSPOINTEROUT, TYPE_MSPOINTEROVER, TYPE_MSPOINTERUP, TYPE_MSSITEMODEJUMPLISTITEMREMOVED, TYPE_MSTHUMBNAILCLICK, TYPE_OFFLINE, TYPE_ONLINE, TYPE_ONMESSAGEERROR, TYPE_ONTRANSITIONCANCEL, TYPE_ONTRANSITIONEND, TYPE_ONTRANSITIONRUN, TYPE_ONTRANSITIONSTART, TYPE_OPEN, TYPE_PAGEHIDE, TYPE_PAGESHOW, TYPE_PASTE, TYPE_PAUSE, TYPE_PLAY, TYPE_PLAYNG, TYPE_POINTERCANCEL, TYPE_POINTERDOWN, TYPE_POINTERENTER, TYPE_POINTERLEAVE, TYPE_POINTERLOCKCHANGE, TYPE_POINTERLOCKERROR, TYPE_POINTERMOVE, TYPE_POINTEROUT, TYPE_POINTEROVER, TYPE_POINTERUP, TYPE_POPSTATE, TYPE_PROGRESS, TYPE_PROPERTY_CHANGE, TYPE_RATECHANGE, TYPE_READY_STATE_CHANGE, TYPE_REJECTIONHANDLED, TYPE_RESET, TYPE_RESIZE, TYPE_SCROLL, TYPE_SEARCH, TYPE_SEEKED, TYPE_SEEKING, TYPE_SELECT, TYPE_SELECTIONCHANGE, TYPE_SELECTSTART, TYPE_SHOW, TYPE_STALLED, TYPE_STOP, TYPE_STORAGE, TYPE_STORAGECOMMIT, TYPE_SUBMIT, TYPE_SUSPEND, TYPE_TIMEOUT, TYPE_TIMEUPDATE, TYPE_TOGGLE, TYPE_TRANSITIONEND, TYPE_UNHANDLEDREJECTION, TYPE_UNLOAD, TYPE_USERPROXIMITY, TYPE_VOLUMECHANGE, TYPE_WAITING, TYPE_WEBANIMATIONSTART, TYPE_WEBKITANIMATIONEND, TYPE_WEBKITANIMATIONITERATION, TYPE_WEBKITFULLSCREENCHANGE, TYPE_WEBKITFULLSCREENERROR, TYPE_WEBKITTRANSITIONEND, TYPE_WHEEL
Constructor and Description |
---|
CloseEvent()
Creates a new event instance.
|
Modifier and Type | Method and Description |
---|---|
void |
eventCreated()
Called whenever an event is created using
Document.createEvent(..) . |
int |
getCode() |
String |
getReason() |
void |
initCloseEvent(String type,
boolean bubbles,
boolean cancelable,
boolean wasClean,
int reasonCode,
String reason)
Initializes this close event.
|
boolean |
isWasClean() |
void |
jsConstructor(String type,
net.sourceforge.htmlunit.corejs.javascript.ScriptableObject details)
JavaScript constructor.
|
void |
setCode(int code) |
void |
setReason(String reason) |
void |
setWasClean(boolean wasClean) |
createPropertyChangeEvent, endFire, getComposed, getCurrentTarget, getEventPhase, getKeyCode, getPropertyName, getReturnValue, getSrcElement, getTarget, getTimeStamp, getType, initEvent, isAborted, isAltKey, isBubbles, isCancelable, isCancelBubble, isCtrlKey, isDefaultPrevented, isImmediatePropagationStopped, isMissingOrUndefined, isPropagationStopped, isShiftKey, preventDefault, processLabelAfterBubbling, setAltKey, setBubbles, setCancelable, setCancelBubble, setCtrlKey, setCurrentTarget, setEventPhase, setEventType, setKeyCode, setReturnValue, setShiftKey, setSrcElement, setTarget, setType, startFire, stopImmediatePropagation, stopPropagation, toString
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setDomNode, setParentScope
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, size
public void eventCreated()
Document.createEvent(..)
.
This method is called after the parent scope was set so you are able to access the browser version.eventCreated
in class Event
public void jsConstructor(String type, net.sourceforge.htmlunit.corejs.javascript.ScriptableObject details)
jsConstructor
in class Event
type
- the event typedetails
- the event details (optional)public void initCloseEvent(String type, boolean bubbles, boolean cancelable, boolean wasClean, int reasonCode, String reason)
type
- the event typebubbles
- whether or not the event should bubblecancelable
- whether or not the event the event should be cancelablewasClean
- the wasClean flagreasonCode
- the reason codereason
- the reasonpublic int getCode()
public void setCode(int code)
code
- the codepublic String getReason()
public void setReason(String reason)
reason
- the reasonpublic boolean isWasClean()
public void setWasClean(boolean wasClean)
wasClean
- the wasCleanCopyright © 2002–2022 Gargoyle Software Inc.. All rights reserved.