public class LongEntry extends TextEntry
Constructor and Description |
---|
LongEntry(java.lang.String prompt)
Creates a text field with given prompt text.
|
LongEntry(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.Long |
getValue()
Returns the current value in the text field.
|
void |
setEditable(boolean b)
Selects if the text field is editable.
|
void |
setValue(java.lang.Long value)
Enters a integer number into the text field programmatically.
|
getLabel, getTextField, isTouched, setEnabled
public LongEntry(java.lang.String prompt)
prompt
- the information textpublic LongEntry(java.lang.String prompt, int init)
prompt
- the information textinit
- the value already present when the field is shownpublic java.lang.Long getValue()
public void setValue(java.lang.Long value)
value
- the number to be entered (null for empty entry)public void setEditable(boolean b)
b
- if true, the field is editable