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