public class UIEvent extends Event
AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE, TYPE_BEFORE_UNLOAD, TYPE_BLUR, TYPE_CHANGE, TYPE_DOM_DOCUMENT_LOADED, TYPE_FOCUS, TYPE_KEY_DOWN, TYPE_KEY_PRESS, TYPE_KEY_UP, TYPE_LOAD, TYPE_RESET, TYPE_SUBMIT, TYPE_UNLOAD
Constructor and Description |
---|
UIEvent()
Creates a new UI event instance.
|
UIEvent(DomNode domNode,
String type,
boolean shiftKey,
boolean ctrlKey,
boolean altKey)
Creates a new UI event instance.
|
Modifier and Type | Method and Description |
---|---|
void |
copyPropertiesFrom(Event event)
Copies properties from another event to this event.
|
void |
jsxFunction_initUIEvent(String type,
boolean bubbles,
boolean cancelable,
Object view,
int detail)
Implementation of the DOM Level 3 Event method for initializing the UI event.
|
long |
jsxGet_detail()
Returns some detail information about the event, depending on the event type.
|
Object |
jsxGet_view()
Returns the view from which the event was generated.
|
protected void |
setDetail(long detail)
Sets the detail information for this event.
|
isPreventDefault, isPropagationStopped, jsxFunction_initEvent, jsxFunction_preventDefault, jsxFunction_stopPropagation, jsxGet_altKey, jsxGet_bubbles, jsxGet_cancelable, jsxGet_cancelBubble, jsxGet_ctrlKey, jsxGet_currentTarget, jsxGet_eventPhase, jsxGet_keyCode, jsxGet_returnValue, jsxGet_shiftKey, jsxGet_srcElement, jsxGet_target, jsxGet_timeStamp, jsxGet_type, jsxSet_cancelBubble, jsxSet_returnValue, jsxSet_srcElement, setAltKey, setCtrlKey, setCurrentTarget, setEventPhase, setEventType, setShiftKey, toString
get, getBooleanArg, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getIntArg, getLog, getObjectArg, getPrototype, getScriptableFor, getStartingScope, getStringArg, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, makeScriptableFor, setDomNode, setDomNode, setHtmlElement
associateValue, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isConst, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype
public UIEvent()
public UIEvent(DomNode domNode, String type, boolean shiftKey, boolean ctrlKey, boolean altKey)
domNode
- The DOM node that triggered the event.type
- The event type.shiftKey
- true if SHIFT is pressedctrlKey
- true if CTRL is pressedaltKey
- true if ALT is pressedpublic void copyPropertiesFrom(Event event)
copyPropertiesFrom
in class Event
event
- the event to copy the properties frompublic long jsxGet_detail()
protected void setDetail(long detail)
detail
- the detail information for this eventpublic Object jsxGet_view()
public void jsxFunction_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 eventCopyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.