public class IntEntry extends TextEntry
| Constructor and Description |
|---|
IntEntry(java.lang.String prompt)
Creates a text field with given prompt text.
|
IntEntry(java.lang.String prompt,
int init)
Creates a text field with given prompt text and given initializing value.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getValue()
Returns the current value in the text field.
|
void |
setEditable(boolean b)
Selects if the text field is editable.
|
void |
setValue(java.lang.Integer value)
Enters a integer number into the text field programmatically.
|
getLabel, getTextField, isTouched, setEnabledpublic IntEntry(java.lang.String prompt)
prompt - the information textpublic IntEntry(java.lang.String prompt,
int init)
prompt - the information textinit - the value already present when the field is shownpublic java.lang.Integer getValue()
public void setValue(java.lang.Integer value)
value - the number to be entered (null for empty entry)public void setEditable(boolean b)
b - if true, the field is editable