|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--net.rim.device.api.system.EventInjector.Event
|
+--net.rim.device.api.system.EventInjector.NavigationEvent
The event class that defines a Navigation event.
EventInjector,
EventInjector.Event,
EventInjector.KeyCodeEvent,
EventInjector.KeyEvent,
EventInjector.TrackwheelEvent| Field Summary | ||
|
static int |
NAVIGATION_CLICK
A constant representing a navigation click. |
|
static int |
NAVIGATION_MOVEMENT
A constant representing a navigation movement. |
|
static int |
NAVIGATION_UNCLICK
A constant representing a navigation click released. |
| Constructor Summary | ||
|
EventInjector.NavigationEvent(int event,
int dx,
int dy,
int status)
Constructs a new NavigationEvent instance. |
|
| Method Summary | ||
|
int |
getAmountX()
Returns the amount to move left/right before the event will occur. |
|
int |
getAmountY()
Returns the amount to move up/down before the event will occur. |
|
int |
getStatus()
Returns the status. |
|
void |
setAmount(int dx,
int dy)
Sets the amount to move for the event to occur. |
| Methods inherited from class net.rim.device.api.system.EventInjector.Event |
getEvent, post, setEvent, setStatus |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int NAVIGATION_CLICK
public static final int NAVIGATION_MOVEMENT
public static final int NAVIGATION_UNCLICK
| Constructor Detail |
public EventInjector.NavigationEvent(int event,
int dx,
int dy,
int status)
event - One of NAVIGATION_CLICK, NAVIGATION_UNCLICK, NAVIGATION_MOVEMENT.dx - The amount by which to move left/right, positive is right, negative is left. If dx is
smaller than -32767 or greater than 32727 unexpected results may occur.dy - The amount by which to move up/down, positive is down, negative is up. If dy is
smaller than -32767 or greater than 32727 unexpected results may occur.status - Any status flags (as defined by KeypadListener).IllegalArgumentException - If the values for dx or dy are invalid.Characters| Method Detail |
public int getAmountX()
public int getAmountY()
public int getStatus()
getStatus in class EventInjector.Event
public void setAmount(int dx,
int dy)
dx - The amount by which to move left/right, positive is right, negative is left.
If dx is smaller than -32767 or greater than 32727 unexpected results may occur.dy - The amount by which to move up/down, positive is down, negative is up.
If dy is smaller than -32767 or greater than 32727 unexpected results may occur.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2007 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.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.