|
Ascent Phase Corp. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.ascentphase.suit.Widget
|
+--org.ascentphase.suit.QwertyKeyboard
A Widget that display the QWERTY keyboard layout so the user can enter text via a pointer.
| Field Summary | |
static int |
BACKSPACE_KEY
|
static int |
CLEAR_KEY
|
protected int |
height
|
protected char |
highlightKey
|
protected char |
lastKeySelected
|
static int |
SHIFT_KEY
|
protected boolean |
shifted
|
| Fields inherited from class org.ascentphase.suit.Widget |
cmdToThrow |
| Constructor Summary | |
QwertyKeyboard()
|
|
| Method Summary | |
boolean |
contains(int x,
int y)
Returns whether the given coordinate lies within this widget's area of interest. |
char |
getLastKeySelected()
Returns the character value of the last key pressed on the keyboard. |
void |
paint(Graphics g)
Draws the widget. |
Command |
pointerPressed(int x,
int y)
Method called by the widget's containing Panel when a pointer is pressed over the widget area. |
Command |
pointerReleased(int x,
int y)
Method called by the widget's containing Panel when a pointer is released over the widget area. |
| Methods inherited from class org.ascentphase.suit.Widget |
getCommand, keyPressed, keyReleased, pointerDragged, setCommand |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int SHIFT_KEY
public static final int CLEAR_KEY
public static final int BACKSPACE_KEY
protected boolean shifted
protected int height
protected char lastKeySelected
protected char highlightKey
| Constructor Detail |
public QwertyKeyboard()
| Method Detail |
public void paint(Graphics g)
paint in class Widgetg - the Graphics object to draw with.
public boolean contains(int x,
int y)
Widget
contains in class Widgetx - the x coordinate.y - the y coordinate.
public Command pointerPressed(int x,
int y)
Widget
pointerPressed in class Widgetx - the x-coordinate relative to the widget's origin.y - the y-coordinate relative to the widget's origin.
public Command pointerReleased(int x,
int y)
Widget
pointerReleased in class Widgetx - the x-coordinate relative to the widget's origin.y - the y-coordinate relative to the widget's origin.
public char getLastKeySelected()
|
Ascent Phase Corp. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||