net.rim.device.api.system
Interface KeypadListener

All Known Subinterfaces:
KeyListener, TrackwheelListener
All Known Implementing Classes:
MediaKeyListener, TextSpinBoxField

public interface KeypadListener

This interface provides constant values for the modifier keycodes for use by extending interfaces (such as KeyListener and TrackwheelListener) and implementing classes.

Example

 
 public boolean navigationClick(int status, int time) 
 {
     if ((status & KeypadListener.STATUS_TRACKWHEEL) == KeypadListener.STATUS_TRACKWHEEL) 
     {
         //Input came from the trackwheel
     } 
     else if ((status & KeypadListener.STATUS_FOUR_WAY) == KeypadListener.STATUS_FOUR_WAY) 
     {
         //Input came from a four way navigation input device
     }
       
     return super.navigationClick(status, time); 
 }
 

See Also:
Keypad

Field Summary
static int STATUS_ALT
          Status flag indicating the ALT key is down.
static int STATUS_ALT_LOCK
          Status flag indicating the keyboard is in alt-lock mode.
static int STATUS_CAPS_LOCK
          Status flag indicating the keyboard is in caps-lock mode.
static int STATUS_FOUR_WAY
          Status flag indicating the event was produced by a four way input device.
static int STATUS_KEY_HELD_WHILE_ROLLING
          Status flag indicating a key is being held down while the trackwheel is being rolled.
static int STATUS_NOT_FROM_KEYPAD
          Status flag indicating that the inputted value is a char, and has no key association.
static int STATUS_SHIFT
          Status flag indicating one of the SHIFT keys are down.
static int STATUS_SHIFT_LEFT
          Status flag indicating the left shift key is being held down.
static int STATUS_SHIFT_RIGHT
          Status flag indicating the right shift key is being held down.
static int STATUS_TRACKWHEEL
          Status flag indicating the event was produced by a trackwheel.
 



Field Detail

STATUS_ALT

static final int STATUS_ALT
Status flag indicating the ALT key is down.

See Also:
Constant Field Values

STATUS_NOT_FROM_KEYPAD

static final int STATUS_NOT_FROM_KEYPAD
Status flag indicating that the inputted value is a char, and has no key association. Used by cut and paste, symbol screen, and keyboard peripherals.

See Also:
Constant Field Values
Since:
BlackBerry API 3.6.0

STATUS_SHIFT

static final int STATUS_SHIFT
Status flag indicating one of the SHIFT keys are down.

See Also:
Constant Field Values

STATUS_CAPS_LOCK

static final int STATUS_CAPS_LOCK
Status flag indicating the keyboard is in caps-lock mode.

See Also:
Constant Field Values

STATUS_KEY_HELD_WHILE_ROLLING

static final int STATUS_KEY_HELD_WHILE_ROLLING
Status flag indicating a key is being held down while the trackwheel is being rolled.

See Also:
Constant Field Values

STATUS_ALT_LOCK

static final int STATUS_ALT_LOCK
Status flag indicating the keyboard is in alt-lock mode.

See Also:
Constant Field Values

STATUS_SHIFT_LEFT

static final int STATUS_SHIFT_LEFT
Status flag indicating the left shift key is being held down.

See Also:
Constant Field Values

STATUS_SHIFT_RIGHT

static final int STATUS_SHIFT_RIGHT
Status flag indicating the right shift key is being held down.

See Also:
Constant Field Values

STATUS_TRACKWHEEL

static final int STATUS_TRACKWHEEL
Status flag indicating the event was produced by a trackwheel.

See Also:
Constant Field Values
Since:
BlackBerry API 4.2.0

STATUS_FOUR_WAY

static final int STATUS_FOUR_WAY
Status flag indicating the event was produced by a four way input device.

See Also:
Constant Field Values
Since:
BlackBerry API 4.2.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.