|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.universAAL.support.utils.ui.Control
org.universAAL.support.utils.ui.InputControl
org.universAAL.support.utils.ui.Text
public class Text
Class representing a Text Input UI element. Text Inputs get a textual value, whether it's written, spoken or any other way, depending on the UI renderer. The input is represented as a String.
Example render:
Label [_initialValue_____]
Field Summary | |
---|---|
protected String |
initialValue
Initial value. |
Fields inherited from class org.universAAL.support.utils.ui.InputControl |
---|
model |
Fields inherited from class org.universAAL.support.utils.ui.Control |
---|
help, hint, label, MY_NAMESPACE, ref |
Constructor Summary | |
---|---|
Text()
Generic empty constructor. |
|
Text(String ref)
Constructor with the reference of the input to be used in request and response. |
|
Text(String ref,
String label)
Constructor with the reference of the input to be used in request and response. |
|
Text(String ref,
String label,
String initialValue)
Constructor with the reference of the input to be used in request and response. |
Method Summary | |
---|---|
String[] |
create(Group group)
This method is for internal use of utils only. |
String |
getInitialValue()
Get the initial value of the input by default. |
void |
setInitialValue(String initialValue)
Set the initial value of the input by default. |
Methods inherited from class org.universAAL.support.utils.ui.InputControl |
---|
getModel |
Methods inherited from class org.universAAL.support.utils.ui.Control |
---|
getHelp, getHint, getLabel, getReference, setHelp, setHint, setLabel, setReference, setReference |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String initialValue
Constructor Detail |
---|
public Text()
public Text(String ref)
ref
- The simple reference identifying the input. Set to null to
auto-generate.public Text(String ref, String label)
ref
- The simple reference identifying the input. Set to null to
auto-generate.label
- The label text that identifies the input to the user.public Text(String ref, String label, String initialValue)
ref
- The simple reference identifying the input. Set to null to
auto-generate.label
- The label text that identifies the input to the user.initialValue
- The value the text input field has by default. If it is not
changed by the user this will be the value of the input in the
response.Method Detail |
---|
public String[] create(Group group)
Control
create
in class Control
group
- The UI group to which the control is being added.
public String getInitialValue()
public void setInitialValue(String initialValue)
initialValue
- The initial value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |