Class RangeField
- java.lang.Object
-
- com.inet.taskplanner.server.api.field.Field
-
- com.inet.taskplanner.server.api.field.RangeField
-
@JsonData public class RangeField extends Field
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 Modifier and Type Class Description class
RangeField.NumberRange
Number Range Response Value Holder
-
Constructor Summary
Constructors Constructor Description RangeField(java.lang.String key, java.lang.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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RangeField.NumberRange
fromRangeFieldValue(java.lang.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 Detail
-
RangeField
public RangeField(java.lang.String key, java.lang.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 Detail
-
fromRangeFieldValue
@Nullable public static RangeField.NumberRange fromRangeFieldValue(java.lang.String value)
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
-
-