|
||||||||||
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.SelectMulti
org.universAAL.support.utils.ui.SelectOne
public class SelectOne
Class representing a Single-selection Input UI element. Single-selection Inputs get a single Object value from a list, whether it's a drop-down, sorted column or any other way, depending on the UI renderer. The input is represented as the same type of Object stored in the list.
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.
Field Summary |
---|
Fields inherited from class org.universAAL.support.utils.ui.SelectMulti |
---|
initialValue |
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 | |
---|---|
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. |
Method Summary | |
---|---|
String[] |
create(Group group)
This method is for internal use of utils only. |
Methods inherited from class org.universAAL.support.utils.ui.SelectMulti |
---|
addOption, getInitialIndex, getOptions, setInitialIndex, setOptions |
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 |
Constructor Detail |
---|
public 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.Method Detail |
---|
public String[] create(Group group)
Control
create
in class SelectMulti
group
- The UI group to which the control is being added.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |