|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rim.device.api.system.EventInjector
public final class EventInjector
This class and its inner classes (EventInjector.Event, EventInjector.KeyEvent,
EventInjector.KeyCodeEvent, EventInjector.TrackwheelEvent, EventInjector.NavigationEvent),
EventInjector.TouchEvent), are used to inject events into the system.
| Nested Class Summary | ||
|---|---|---|
|
static class |
EventInjector.Event
The base class for events. |
|
static class |
EventInjector.KeyCodeEvent
The event class that defines a physical key press event. |
|
static class |
EventInjector.KeyEvent
The event class that defines a character input event. |
|
static class |
EventInjector.NavigationEvent
The event class that defines a Navigation event. |
|
static class |
EventInjector.TouchEvent
The event class that defines a touch screen event. |
|
static class |
EventInjector.TrackwheelEvent
The event class that defines a Trackwheel event. |
| Method Summary | ||
|---|---|---|
|
static void |
invokeEvent(EventInjector.Event e)
Invokes the given event by posting the event to the application that is currently accepting input. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static final void invokeEvent(EventInjector.Event e)
e - the event to invoke. (Note: If you wish to specify an EventInjector.NavigationEvent object
with the event type NAVIGATION_UNCLICK as the event to invoke, you must first invoke this
method with a NavigationEvent object whose event type is NAVIGATION_CLICK. Otherwise,
the NavigationEvent object with event type NAVIGATION_UNCLICK is rejected.)
NullPointerException - if e is null.
UnsupportedOperationException - if e is a TouchEvent and touch screen is not supported on the device.
ControlledAccessException - if the calling application does not have the Input Simulation permission.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.