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