public class UIEvent extends Event
ABORT, ALT_MASK, AT_TARGET, BACK, BLUR, BUBBLING_PHASE, CAPTURING_PHASE, CHANGE, CLICK, CONTROL_MASK, DBLCLICK, DRAGDROP, ERROR, FOCUS, FORWARD, HELP, KEYDOWN, KEYPRESS, KEYUP, LOAD, LOCATE, META_MASK, MOUSEDOWN, MOUSEDRAG, MOUSEMOVE, MOUSEOUT, MOUSEOVER, MOUSEUP, MOVE, NONE, RESET, RESIZE, SCROLL, SELECT, SHIFT_MASK, SUBMIT, TEXT, TYPE_BEFORE_UNLOAD, TYPE_BLUR, TYPE_CHANGE, TYPE_DOM_DOCUMENT_LOADED, TYPE_ERROR, TYPE_FOCUS, TYPE_FOCUS_IN, TYPE_FOCUS_OUT, TYPE_HASH_CHANGE, TYPE_INPUT, TYPE_KEY_DOWN, TYPE_KEY_PRESS, TYPE_KEY_UP, TYPE_LOAD, TYPE_MESSAGE, TYPE_PROPERTY_CHANGE, TYPE_READY_STATE_CHANGE, TYPE_RESET, TYPE_SUBMIT, TYPE_UNLOAD, UNLOAD, XFER_DONE| Constructor and Description |
|---|
UIEvent()
Creates a new UI event instance.
|
UIEvent(DomNode domNode,
String type)
Creates a new UI event instance.
|
UIEvent(SimpleScriptable scriptable,
String type)
Creates a new event instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAltKey()
Overridden to modify browser configurations.
|
boolean |
getCancelBubble() |
boolean |
getCtrlKey()
Overridden to modify browser configurations.
|
long |
getDetail()
Returns some detail information about the event, depending on the event type.
|
boolean |
getMetaKey()
Returns whether or not the "meta" key was pressed during the event firing.
|
boolean |
getShiftKey()
Overridden to modify browser configurations.
|
Object |
getView()
Returns the view from which the event was generated.
|
void |
initUIEvent(String type,
boolean bubbles,
boolean cancelable,
Object view,
int detail)
Implementation of the DOM Level 3 Event method for initializing the UI event.
|
void |
setCancelBubble(boolean newValue) |
protected void |
setDetail(long detail)
Sets the detail information for this event.
|
protected void |
setMetaKey(boolean metaKey) |
applies, createPropertyChangeEvent, eventCreated, getBubbles, getCancelable, getCurrentTarget, getDefaultPrevented, getEventPhase, getKeyCode, getPropertyName, getReturnValue, getSrcElement, getTarget, getTimeStamp, getType, initEvent, isAborted, isPropagationStopped, jsConstructor, preventDefault, setAltKey, setBubbles, setCancelable, setCtrlKey, setCurrentTarget, setEventPhase, setEventType, setKeyCode, setReturnValue, setShiftKey, setSrcElement, setTarget, setType, stopPropagation, toStringclone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement, setParentScopeapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setPrototype, sizepublic UIEvent()
public UIEvent(DomNode domNode, String type)
domNode - the DOM node that triggered the eventtype - the event typepublic UIEvent(SimpleScriptable scriptable, String type)
scriptable - the SimpleScriptable that triggered the eventtype - the event typepublic long getDetail()
protected void setDetail(long detail)
detail - the detail information for this eventpublic boolean getCancelBubble()
getCancelBubble in class Eventpublic void setCancelBubble(boolean newValue)
setCancelBubble in class EventnewValue - indicates if event propagation is stoppedpublic Object getView()
public void initUIEvent(String type, boolean bubbles, boolean cancelable, Object view, int detail)
type - the event typebubbles - can the event bubblecancelable - can the event be canceledview - the view to use for this eventdetail - the detail to set for the eventpublic boolean getMetaKey()
protected void setMetaKey(boolean metaKey)
metaKey - whether Meta has been pressed during this event or notpublic boolean getAltKey()
public boolean getCtrlKey()
getCtrlKey in class Eventpublic boolean getShiftKey()
getShiftKey in class EventCopyright © 2002–2014 Gargoyle Software Inc.. All rights reserved.