UIEvent

Availability

BlackBerry Device Software version 4.6 or later

Extends

Event

Extended by

KeyboardEvent , MouseEvent , TextEvent , TouchEvent

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”.

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

Event types

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

Methods

Method name

Description

Support level

Availability

initUIEvent()

Initializes the value of a UIEvent.

DOM 2 events

4.6 or later

Last modified: 2014-03-10



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus