SHOW Signed
 

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.

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:
JDE 3.6.0
See Also:
EventInjector, EventInjector.Event, EventInjector.KeyCodeEvent, EventInjector.KeyEvent, EventInjector.NavigationEvent

Field Summary
 Category: Signed static int THUMB_CLICK
          A constant representing a track wheel thumb click.
 Category: Signed static int THUMB_ROLL_DOWN
          A constant representing a track wheel roll down.
 Category: Signed static int THUMB_ROLL_UP
          A constant representing a track wheel roll up.
 Category: Signed static int THUMB_UNCLICK
          A constant representing a track wheel thumb click released.
   
Constructor Summary
 Category: Signed EventInjector.TrackwheelEvent(int event, int amount, int status)
          Constructs a new TrackwheelEvent instance whose time is set to the current device uptime.
 
Method Summary
 Category: Signed  int getAmount()
          Returns the number of lines to roll before the event will occur.
 Category: Signed  int getEvent()
          Returns the event.
 Category: Signed  void setAmount(int amount)
          Sets the amount to roll for the event to occur.
 Category: Signed  void setEvent(int event)
          Sets the specified event.
 
Methods inherited from class net.rim.device.api.system.EventInjector.Event
getStatus, getTime, post, setStatus, setTimeToCurrent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THUMB_CLICK

public static final int THUMB_CLICK
A constant representing a track wheel thumb click.
Since:
JDE 3.6.0
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.

THUMB_ROLL_DOWN

public static final int THUMB_ROLL_DOWN
A constant representing a track wheel roll down.
Since:
JDE 3.6.0
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.

THUMB_ROLL_UP

public static final int THUMB_ROLL_UP
A constant representing a track wheel roll up.
Since:
JDE 3.6.0
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.

THUMB_UNCLICK

public static final int THUMB_UNCLICK
A constant representing a track wheel thumb click released.
Since:
JDE 3.6.0
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.
Constructor Detail

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).
Since:
JDE 3.6.0
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.
Method Detail

getAmount

public int getAmount()
Returns the number of lines to roll before the event will occur.

Returns:
The number of lines to roll.
Since:
JDE 3.6.0
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.

getEvent

public int getEvent()
Description copied from class: EventInjector.Event
Returns the event.

Overrides:
getEvent in class EventInjector.Event
Since:
JDE 4.2.1

Following copied from 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.

setAmount

public void setAmount(int amount)
Sets the amount to roll for the event to occur.

Parameters:
amount - The number of lines to roll.
Since:
JDE 3.6.0
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.

setEvent

public void setEvent(int event)
Description copied from class: EventInjector.Event
Sets the specified event.

Overrides:
setEvent in class EventInjector.Event
Since:
JDE 4.2.1

Following copied from 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.



Copyright 1999-2009 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.