Class RangeField
java.lang.Object
com.inet.taskplanner.server.api.field.Field
com.inet.taskplanner.server.api.field.RangeField
A field that takes an integer number as input
The field supports place holders from the TaskPlanner, which has to be accounted for
- Since:
- taskplanner 21.0
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRangeField
(String key, String label, com.inet.config.structure.model.SliderConfigProperty.SliderBound lowerBound, com.inet.config.structure.model.SliderConfigProperty.SliderBound upperBound, boolean showValue) Construct the numeric field -
Method Summary
Modifier and TypeMethodDescriptionstatic RangeField.NumberRange
fromRangeFieldValue
(String value) Convert a given string value into aRangeField.NumberRange
The value should come from aRangeField
Methods inherited from class com.inet.taskplanner.server.api.field.Field
getConditions, getKey, getLabel, getPlaceholder, getType, getValue, isUpdateValuesOnChange, isValueSavable, patchResultPlaceholderInValue, patchSeriesPlaceholderInValue, replaceSeriesPlaceholders, setConditions, setKey, setLabel, setPlaceholder, setType, setType, setUpdateValuesOnChange, setValue, setValueSavable
-
Constructor Details
-
RangeField
public RangeField(String key, String label, com.inet.config.structure.model.SliderConfigProperty.SliderBound lowerBound, com.inet.config.structure.model.SliderConfigProperty.SliderBound upperBound, boolean showValue) Construct the numeric field- Parameters:
key
- the key of the fieldlabel
- the label of the fieldupperBound
- the upper bound of the sliderlowerBound
- the lower bound of the slidershowValue
- true, if the current value should be displayed- Since:
- taskplanner 21.0
-
-
Method Details
-
fromRangeFieldValue
Convert a given string value into aRangeField.NumberRange
The value should come from aRangeField
- Parameters:
value
- the string to decode into a range object- Returns:
- the
RangeField.NumberRange
object from the given value string - Since:
- taskplanner 21.0
-