
public class SelectOne extends SelectMulti
Example render:
Label [_initialValue_|V]
| val2 |
| val3 |
| val4 |
|______________|
The Objects in the list are displayed in a textual form by trying to convert them to a readable String, by using their .toString() method or their URI if they are Resources. When retrieving the input, remember to cast to the appropriate original type of Object.
initialValuemodel| Constructor and Description |
|---|
SelectOne()
Generic empty constructor.
|
SelectOne(String ref)
Constructor with the reference of the input to be used in request and
response.
|
SelectOne(String ref,
String label)
Constructor with the reference of the input to be used in request and
response.
|
SelectOne(String ref,
String label,
Object[] initialOptions)
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.
|
addOption, getInitialIndex, getOptions, setInitialIndex, setOptionsgetModelgetHelp, getHint, getLabel, getReference, setHelp, setHint, setLabel, setReference, setReferencepublic SelectOne()
public SelectOne(String ref)
ref - The simple reference identifying the input. Set to null to
auto-generate.public SelectOne(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 SelectOne(String ref, String label, Object[] initialOptions)
ref - The simple reference identifying the input. Set to null to
auto-generate.label - The label text that identifies the input to the user.initialOptions - An array of Objects that represent the different possible
options to select.public String[] create(Group group)
Controlcreate in class SelectMultigroup - The UI group to which the control is being added.Copyright © 2018 universAAL Consortium. All rights reserved.