public class Text extends InputControl
Example render:
Label[_initialValue_____]
Modifier and Type | Field and Description |
---|---|
protected String |
initialValue
Initial value.
|
model
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getModel
getHelp, getHint, getLabel, getReference, setHelp, setHint, setLabel, setReference, setReference
protected String initialValue
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.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.Copyright © 2018 universAAL Consortium. All rights reserved.