|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.ui.KeypadUtil
public class KeypadUtil
Provides keypad utility functionality.
Keypad
Field Summary | ||
---|---|---|
static int |
MODE_EN_LOCALE
Use this constant to specify that keys conversion should occur according to English locale |
|
static int |
MODE_UI_CURRENT_LOCALE
Use this constant to specify that keys conversion should occur according to current UI system locale |
Method Summary | ||
---|---|---|
static char |
getKeyChar(int keycode,
int mode)
Retrieves character matching specified key from the keymap than corresponds to current system UI locale. |
|
static int |
getKeyCode(char ch,
int status,
int mode)
Performs reverse lookup of key code that corresponds to given char and status. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MODE_UI_CURRENT_LOCALE
KeypadUtil.getKeyChar(int keycode, int mode)
,
KeypadUtil.getKeyCode(char ch, int status, int keycode)
,
Constant Field Valuespublic static final int MODE_EN_LOCALE
KeypadUtil.getKeyChar(int keycode, int mode)
,
KeypadUtil.getKeyCode(char ch, int status, int keycode)
,
Constant Field ValuesMethod Detail |
---|
public static char getKeyChar(int keycode, int mode)
Invoke this method to retrieve a specific character from keymap associated with current UI locale, given a particular key and status value.
key
- Key and Status composition. This kind of composed key code used in
Field
event loop callback methods. To extract
key or status portions use Keypad.key(int keycode)
and Keypad.status(int keycode)
methodsmode
- Identifies type of data used for keys conversion. Can be one of
KeypadUtil.MODE_UI_CURRENT_LOCALE
and
KeypadUtil.MODE_EN_LOCALE
constants.
KeypadUtil.getKeyCode(char ch, int status, int keycode)
public static int getKeyCode(char ch, int status, int mode)
Field.keyChar(char character, int status, int time)
event callbacks
to obtain original keycode.
ch
- Key Char that would be generated with specified conversion data(mode) for resulting
keycodestatus
- Status value for keymode
- Identifies type of data used for keys conversion. Can be one of
KeypadUtil.MODE_UI_CURRENT_LOCALE
and
KeypadUtil.MODE_EN_LOCALE
constants.
KeypadUtil.getKeyChar(int keycode, int mode)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal