|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--waba.ui.Control
|
+--waba.ui.Keypad
This class is used to handle letters and numbers input on keypadOnly devices.
| Field Summary | |
static int |
CLOSE_TIMEOUT
Amount of time until the control closes. |
static java.lang.String[] |
defaultKeyset
The default char set. |
static int |
mode
The current mode. |
static int |
MODE_LOWER
Used with the mode member. |
static int |
MODE_NUMBER
Used with the mode member. |
static int |
MODE_UPPER
Used with the mode member. |
static java.lang.String[] |
numberKeyset
Only numbers: 0 ... 9 |
static int |
X_ALIGN
The x position of the control on screen. |
static int |
Y_ALIGN
The y position of the control on screen. |
static int |
Y_ALIGN_ALT
The y alternate position of the control on screen. |
| Fields inherited from class waba.ui.Control |
AFTER,
appId,
appObj,
asContainer,
asWindow,
backColor,
backDis,
BEFORE,
BOTTOM,
CENTER,
clearValueInt,
clearValueStr,
enabled,
FILL,
FIT,
fm,
fmH,
focusLess,
focusTraversable,
font,
foreColor,
foreDis,
height,
highlightRectsCount,
isHighlighting,
LEFT,
parent,
PREFERRED,
RANGE,
RIGHT,
SAME,
TOP,
uiCE,
uiFlat,
uiPalm,
uiVista,
visible,
width,
x,
x2,
y,
y2 |
| Method Summary | |
static Keypad |
getInstance()
|
void |
handleKey(int key)
Called by the system to handle the pressed key |
void |
onEvent(Event e)
On a timeout of the close timer, closes this control |
void |
onPaint(Graphics g)
Paints this control |
void |
setKeys(java.lang.String[] newKeyset)
Call this, passing a new set, to change the keys associated with each pad number. |
void |
setNumberKeys(java.lang.String nk)
Call this to change the default # to a set of chars to be selected. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static java.lang.String[] numberKeyset
public static java.lang.String[] defaultKeyset
public static int CLOSE_TIMEOUT
public static int X_ALIGN
public static int Y_ALIGN
public static int Y_ALIGN_ALT
public static final int MODE_LOWER
mode member.public static final int MODE_UPPER
mode member.public static final int MODE_NUMBER
mode member.public static int mode
| Method Detail |
public static Keypad getInstance()
public void setKeys(java.lang.String[] newKeyset)
public void setNumberKeys(java.lang.String nk)
public void handleKey(int key)
public void onPaint(Graphics g)
g - the graphics object for drawingGraphicspublic void onEvent(Event e)
event - the event to processEvent,
KeyEvent,
PenEvent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||