Class NumberField


  • @JsonData
    public class NumberField
    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
    • Constructor Detail

      • NumberField

        public NumberField​(java.lang.String key,
                           java.lang.String label)
        Construct the numeric field
        Parameters:
        key - the key of the field
        label - the label of the field
        Since:
        taskplanner 21.0
      • NumberField

        public NumberField​(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 of UnitConfigProperty.Unit to select between with automatic recalculation.
        Parameters:
        key - the key of the field
        label - the label of the field
        units - the definition of the units for this field
        Since:
        taskplanner 21.0
    • Method Detail

      • isValidValue

        public static boolean isValidValue​(java.lang.String value)
        Returns true, if the value is valid
        Parameters:
        value - the value to check
        Returns:
        true, if the value is valid
        Since:
        taskplanner 21.0