|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.universAAL.support.utils.ui.Control org.universAAL.support.utils.ui.InputControl org.universAAL.support.utils.ui.Check
public class Check
Class representing a Boolean Input UI element. Boolean Inputs get a binary value, whether it's a checkbox, switch or any other way, depending on the UI renderer. The input is represented as a Boolean.
Example render:
[X] Label
Field Summary |
---|
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 | |
---|---|
Check()
Generic empty constructor. |
|
Check(String ref)
Constructor with the reference of the input to be used in request and response. |
|
Check(String ref,
String label)
Constructor with the reference of the input to be used in request and response. |
|
Check(String ref,
String label,
Boolean 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. |
Boolean |
getInitialValue()
Get the initial value of the input by default. |
void |
setInitialValue(Boolean 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 |
Constructor Detail |
---|
public Check()
public Check(String ref)
ref
- The simple reference identifying the input. Set to null to
auto-generate.public Check(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 Check(String ref, String label, Boolean 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 boolean 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 Boolean getInitialValue()
public void setInitialValue(Boolean initialValue)
initialValue
- The initial value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |