public class SelectRange extends InputControl
Example render:
Label min[---|--------]max initialValue
model
Constructor and Description |
---|
SelectRange()
Generic empty constructor.
|
SelectRange(String ref)
Constructor with the reference of the input to be used in request and
response.
|
SelectRange(String ref,
String label)
Constructor with the reference of the input to be used in request and
response.
|
SelectRange(String ref,
String label,
int min,
int max,
int 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.
|
Integer |
getInitialValue()
Get the initial value of the range, between min and max.
|
Integer |
getMax()
Get the maximum value of the range.
|
Integer |
getMin()
Get the minimum value of the range.
|
Integer |
getStep()
Get the amount which the value increases or decreases with every step.
|
void |
setInitialValue(int initialValue)
Set the initial value of the range, between min and max.
|
void |
setMax(int max)
Set the maximum value of the range.
|
void |
setMin(int min)
Set the minimum value of the range.
|
void |
setMinMaxInitial(int min,
int max,
int initialValue)
Set the minimum and maximum values of the range, and the initial value
within them.
|
void |
setStep(int step)
Set the amount which the value increases or decreases with every step.
|
getModel
getHelp, getHint, getLabel, getReference, setHelp, setHint, setLabel, setReference, setReference
public SelectRange()
public SelectRange(String ref)
ref
- The simple reference identifying the input. Set to null to
auto-generate.public SelectRange(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 SelectRange(String ref, String label, int min, int max, int 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.min
- The low end of the range that the value can get (inclusive)max
- The high end of the range that the value can get (inclusive)initialValue
- The value the range input has by default, between min and max.
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 Integer getMin()
public void setMin(int min)
min
- The minimum valuepublic Integer getInitialValue()
public void setInitialValue(int initialValue)
initialValue
- The initial valuepublic Integer getMax()
public void setMax(int max)
max
- The maximum valuepublic Integer getStep()
public void setStep(int step)
step
- The step valuepublic void setMinMaxInitial(int min, int max, int initialValue)
min
- The minimum valuemax
- The maximum valueinitialValue
- The initial valueCopyright © 2018 universAAL Consortium. All rights reserved.