Class FloatField
- java.lang.Object
-
- com.inet.taskplanner.server.api.field.Field
-
- com.inet.taskplanner.server.api.field.FloatField
-
@JsonData public class FloatField extends Field
A field that takes a float number as input. The field supports place holders from the TaskPlanner, which has to be accounted for- Since:
- taskplanner 21.0
-
-
Constructor Summary
Constructors Constructor Description FloatField(java.lang.String key, java.lang.String label)
Construct the numeric fieldFloatField(java.lang.String key, java.lang.String label, java.util.List<com.inet.config.structure.model.UnitConfigProperty.Unit> units)
Construct the numeric field including a list ofUnitConfigProperty.Unit
to select between with automatic recalculation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isValidValue(java.lang.String value)
Returns true, if the value is valid-
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
-
FloatField
public FloatField(java.lang.String key, java.lang.String label)
Construct the numeric field- Parameters:
key
- the key of the fieldlabel
- the label of the field- Since:
- taskplanner 21.0
-
FloatField
public FloatField(java.lang.String key, java.lang.String label, java.util.List<com.inet.config.structure.model.UnitConfigProperty.Unit> units)
Construct the numeric field including a list ofUnitConfigProperty.Unit
to select between with automatic recalculation.- Parameters:
key
- the key of the fieldlabel
- the label of the fieldunits
- the definition of the units for this field- Since:
- taskplanner 21.0
-
-