Help Center

Local Navigation

Object: UIEvent

Availability

BlackBerry® Device Software version 4.6 or later

Extends

Event

Extended by

KeyboardEvent, MouseEvent, TextEvent

The UIEvent object represents a user interface event, generated by user interaction with a BlackBerry device input method, such as the trackball or trackwheel, or the BlackBerry device keypad.

To create an instance of a UIEvent, you must invoke Document.createEvent() with an input parameter of ”UIEvent”.

User interface events

Event type

Bubbles

Cancelable

Description

DOMFocusIn

yes

no

Occurs when an EventTarget receives focus.

DOMFocusOut

yes

no

Occurs when an EventTarget loses focus.

DOMActivate

yes

yes

Occurs when an EventTarget is activated though a keyboard press or trackball or trackwheel click.

This event type includes the following context information:

UIEvent.detail

UIEvent properties

Property name

Type

Description

Status

Support level

Availability

detail

long

Returns detail information about the event.

read only

DOM 2 Events

4.6 or later

view

AbstractView

Returns a reference to the AbstractView that generated the event.

read only

DOM 2 Events

4.6 or later

UIEvent methods

Method name

Description

Support level

Availability

initUIEvent()

Initializes the value of a UIEvent.

DOM 2 events

4.6 or later

Next topic: Geolocation API
Previous topic: TextEvent methods

Was this information helpful? Send us your comments.