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 as input.
The field supports Task Planner placeholders, which must be taken into account.
- Since:
- taskplanner 21.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassHolds a number range response value. -
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) Constructs the numeric field. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable RangeField.NumberRangefromRangeFieldValue(String value) Converts a string value into aRangeField.NumberRange.Methods inherited from class 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) Constructs the numeric field.- Parameters:
key- the key of the fieldlabel- the label of the fieldlowerBound- the lower bound of the sliderupperBound- the upper bound of the slidershowValue-trueif the current value should be displayed.- Since:
- taskplanner 21.0
-
-
Method Details
-
fromRangeFieldValue
Converts a string value into aRangeField.NumberRange. The value should come from aRangeField.- Parameters:
value- the string to decode into a range object- Returns:
- the
RangeField.NumberRangeobject from the given value string - Since:
- taskplanner 21.0
-