The User Interface event module is composed of events listed in HTML 4.0 and additional events which are supported in DOM Level 0 browsers. A DOM application may use the hasFeature(feature, version) method of the DOMImplementation interface with parameter values "UIEvents" and "2.0" (respectively) to determine whether or not the User Interface event module is supported by the implementation. In order to fully support this module, an implementation must also support the "Events" feature defined in this specification and the "Views" feature defined in the DOM Level 2 Views specification [DOM Level 2 Views]. Please, refer to additional information about conformance in the DOM Level 2 Core specification [DOM Level 2 Core].
Note: To create an instance of the UIEvent interface, use the feature string "UIEvents" as the value of the input parameter used with the createEvent method of the DocumentEvent interface.
Introduced in DOM Level 2.
Note that this object is implemented and supported by the web browser and results of its use may vary.
Specifies some detail information about the Event, depending on the type of event.
This is a readonly attribute
view
public AbstractView view
The view attribute identifies the AbstractView from which the event was generated.
This is a readonly attribute
Method Detail
initUIEvent
public void initUIEvent(String typeArg, Boolean canBubbleArg, Boolean cancelableArg,
AbstractView viewArg, Number detailArg)
The initUIEvent() method is used to initialize the value of a UIEvent created through the DocumentEvent interface. This method may only be called before the UIEvent has been dispatched via the {@link EventTarget#dispatchEvent method, though it may be called multiple times during that phase if necessary. If called multiple times, the final invocation takes precedence.
Parameters:
typeArg
-
Specifies the event type.
canBubbleArg
-
Specifies whether or not the event can bubble.
cancelableArg
-
Specifies whether or not the event's default action can be prevented.