net.rim.device.api.system
Interface KeypadListener

All Known Subinterfaces:
KeyListener, TrackwheelListener

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

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

STATUS_ALT_LOCK

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

STATUS_CAPS_LOCK

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

STATUS_FOUR_WAY

public static final int STATUS_FOUR_WAY
Status flag indicating the event was produced by a four way input device.
Since:
JDE 4.2.0

STATUS_KEY_HELD_WHILE_ROLLING

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

STATUS_NOT_FROM_KEYPAD

public 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.
Since:
JDE 3.6.0

STATUS_SHIFT

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

STATUS_SHIFT_LEFT

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

STATUS_SHIFT_RIGHT

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

STATUS_TRACKWHEEL

public static final int STATUS_TRACKWHEEL
Status flag indicating the event was produced by a trackwheel.
Since:
JDE 4.2.0



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.