net.rim.device.api.system
Class EventInjector.TrackwheelEvent
java.lang.Object
net.rim.device.api.system.EventInjector.Event
net.rim.device.api.system.EventInjector.TrackwheelEvent
- Enclosing class:
- EventInjector
public static class EventInjector.TrackwheelEvent
- extends EventInjector.Event
The event class that defines a Trackwheel event.
- See Also:
EventInjector
,
EventInjector.Event
,
EventInjector.KeyCodeEvent
,
EventInjector.KeyEvent
,
EventInjector.NavigationEvent
- Category:
- Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
- Since:
- BlackBerry API 3.6.0
Field Summary |
|
static int |
THUMB_CLICK
A constant representing a track wheel thumb click. |
|
static int |
THUMB_ROLL_DOWN
A constant representing a track wheel roll down. |
|
static int |
THUMB_ROLL_UP
A constant representing a track wheel roll up. |
|
static int |
THUMB_UNCLICK
A constant representing a track wheel thumb click released. |
Constructor Summary |
|
EventInjector.TrackwheelEvent(int event,
int amount,
int status)
Constructs a new TrackwheelEvent instance whose time is set to the current device uptime. |
Method Summary |
|
int |
getAmount()
Returns the number of lines to roll before the event will occur. |
|
int |
getEvent()
Returns the event. |
|
void |
setAmount(int amount)
Sets the amount to roll for the event to occur. |
|
void |
setEvent(int event)
Sets the specified event. |
THUMB_CLICK
public static final int THUMB_CLICK
- A constant representing a track wheel thumb click.
- See Also:
- Constant Field Values
- Category:
- Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
- Since:
- BlackBerry API 3.6.0
THUMB_UNCLICK
public static final int THUMB_UNCLICK
- A constant representing a track wheel thumb click released.
- See Also:
- Constant Field Values
- Category:
- Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
- Since:
- BlackBerry API 3.6.0
THUMB_ROLL_UP
public static final int THUMB_ROLL_UP
- A constant representing a track wheel roll up.
- See Also:
- Constant Field Values
- Category:
- Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
- Since:
- BlackBerry API 3.6.0
THUMB_ROLL_DOWN
public static final int THUMB_ROLL_DOWN
- A constant representing a track wheel roll down.
- See Also:
- Constant Field Values
- Category:
- Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
- Since:
- BlackBerry API 3.6.0
EventInjector.TrackwheelEvent
public EventInjector.TrackwheelEvent(int event,
int amount,
int status)
- Constructs a new TrackwheelEvent instance whose time is set to the current device uptime.
- Parameters:
event
- One of THUMB_CLICK, THUMB_UNCLICK, THUMB_ROLL_UP or THUMB_ROLL_DOWN.amount
- The amount by which to roll, a value of '1' indicates one 'line'.status
- Any status flags (as defined by KeypadListener
).- See Also:
Characters
- Category:
- Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
- Since:
- BlackBerry API 3.6.0
getEvent
public int getEvent()
- Description copied from class:
EventInjector.Event
- Returns the event.
- Overrides:
getEvent
in class EventInjector.Event
- Returns:
- An integer representing the event.
- Category:
- Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
- Since:
- BlackBerry API 4.2.1
setEvent
public void setEvent(int event)
- Description copied from class:
EventInjector.Event
- Sets the specified event.
- Overrides:
setEvent
in class EventInjector.Event
- Parameters:
event
- The event to set.- Category:
- Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
- Since:
- BlackBerry API 4.2.1
setAmount
public void setAmount(int amount)
- Sets the amount to roll for the event to occur.
- Parameters:
amount
- The number of lines to roll.- Category:
- Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
- Since:
- BlackBerry API 3.6.0
getAmount
public int getAmount()
- Returns the number of lines to roll before the event will occur.
- Returns:
- The number of lines to roll.
- Category:
- Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
- Since:
- BlackBerry API 3.6.0
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.