@DOMObjectAttribute @DOMNameAttribute(name="CustomEvent") public class UIEvent extends Event
The UIEvent interface provides specific contextual information associated with User Interface events.
Modifier and Type | Class and Description |
---|---|
class |
UIEvent.EventModifierInit
The MouseEvent and KeyboardEvent interfaces share a set of keyboard modifier attributes and support a mechanism for retrieving additional modifier states.
|
static class |
UIEvent.UIEventInit
Represents a dictionary that is having optional arguments for setting the details information about the event.
|
Event.EventInit
AT_TARGET_PHASE, BUBBLING_PHASE, CAPTURING_PHASE, NONE_PHASE
PropertyChanged
Constructor and Description |
---|
UIEvent(String type)
Initializes a new instance of the
UIEvent class. |
UIEvent(String type,
UIEvent.UIEventInit eventInitDict)
Initializes a new instance of the
UIEvent class. |
Modifier and Type | Method and Description |
---|---|
static Event |
createAbortEvent(UIEvent.UIEventInit eventInit) |
static Event |
createEvent(String type,
UIEvent.UIEventInit eventInit) |
static Event |
createLoadEvent(UIEvent.UIEventInit eventInit) |
static Event |
createSelectEvent(UIEvent.UIEventInit eventInit) |
static Event |
createUnLoadEvent(UIEvent.UIEventInit eventInit) |
long |
getDetail()
Specifies some detail information about the Event, depending on the type of event.
|
IWindow |
getView()
The view attribute identifies the Window from which the event was generated.
|
createDOMContentLoadedEvent, createError, createEvent, createEvent, createEventByType, dispatch, getBubbles, getCancelable, getCurrentTarget, getDefaultPrevented, getEventPhase, getTarget, getTimeStamp, getType, initEvent, isTrusted, preventDefault, setCurrentTarget, setEventPhase, setTarget, stopImmediatePropagation, stopPropagation
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
public UIEvent(String type)
Initializes a new instance of the UIEvent
class.
type
- The event type.public UIEvent(String type, UIEvent.UIEventInit eventInitDict)
Initializes a new instance of the UIEvent
class.
type
- The event type.eventInitDict
- The event initialize dictionary.public static Event createLoadEvent(UIEvent.UIEventInit eventInit)
public static Event createUnLoadEvent(UIEvent.UIEventInit eventInit)
public static Event createAbortEvent(UIEvent.UIEventInit eventInit)
public static Event createSelectEvent(UIEvent.UIEventInit eventInit)
public static Event createEvent(String type, UIEvent.UIEventInit eventInit)
@DOMNameAttribute(name="view") public IWindow getView()
The view attribute identifies the Window from which the event was generated. The un-initialized value of this attribute MUST be null.
Value: The window instance.@DOMNameAttribute(name="detail") public long getDetail()
Specifies some detail information about the Event, depending on the type of event.
Value: The detail data.