|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--moka.lang.Object | +--moka.event.EventListener | +--moka.x.Component | +--moka.x.CaptionedComponent | +--moka.x.TextField
TextField class is a text entry component.
Field Summary | |
static short |
CHAR_INPUT_TYPE
The TextField only accepts characters. |
static short |
FLOAT_INPUT_TYPE
The TextField only accepts integers and floats. |
short |
inputType
The input type of this TextField |
static short |
INT_INPUT_TYPE
The TextField only accepts integers. |
char |
mask
The mask for this TextField. |
short |
maxLength
The number of character this TextField should accept. |
static short |
NO_INPUT_TYPE
The TextField accepts any character. |
Fields inherited from class moka.x.Component |
enabled, height, listen, mnemonic, next, parent, prev, visible, width, x, y |
Fields inherited from interface moka.x.Captioned |
caption, font |
Constructor Summary | |
TextField()
|
|
TextField(java.lang.String caption)
|
Method Summary | |
void |
paint()
Paints the textfield. |
void |
setMask(char mask)
Sets the mask of the TextField. |
void |
use()
This method is invoked by the GEM when the user interacts with the TextField. |
Methods inherited from class moka.x.CaptionedComponent |
finalize |
Methods inherited from class moka.x.Component |
bottom, center, checkMnemonic, clean, eventTriggered, isCursorOver, left, move, onPaint, right, setBounds, setEnabled, setHeight, setMnemonic, setVisible, setWidth, setX, setY, toFront, top |
Methods inherited from class moka.event.EventListener |
eventTriggered |
Methods inherited from class moka.lang.Object |
equals, getClassName, toString |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface moka.x.Captioned |
setCaption, setFont |
Field Detail |
public static final short NO_INPUT_TYPE
public static final short INT_INPUT_TYPE
public static final short FLOAT_INPUT_TYPE
public static final short CHAR_INPUT_TYPE
public short maxLength
public short inputType
public char mask
Constructor Detail |
public TextField()
public TextField(java.lang.String caption)
Method Detail |
public void paint()
paint
in class Component
public void use()
use
in class Component
public void setMask(char mask)
mask
- The mask of the TextField.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |