|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.system.EventInjector.Event
net.rim.device.api.system.EventInjector.NavigationEvent
public static class 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 whose time is set to the current device uptime. |
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, getTime, post, setEvent, setStatus, setTimeToCurrent |
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_UNCLICK
public static final int NAVIGATION_MOVEMENT
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 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.public int getAmountX()
public int getAmountY()
public int getStatus()
getStatus
in class EventInjector.Event
KeypadListener
).
|
|||||||||
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.