Enum FieldType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<FieldType>

    @JsonData
    public enum FieldType
    extends java.lang.Enum<FieldType>
    Defines the type of field for the definition of e.g. triggers or jobs
    Since:
    taskplanner 3.0
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BOOLEAN
      A checkbox that allows the values 'true' and 'false' (as String)
      COLOR
      A color field
      DATE
      A date selection field.
      FILE
      A file chooser that allows the selection of files.
      FILE_OR_FOLDER
      A file chooser that allows the selection of files or folders.
      FIX_NUMBER
      An integer field
      FLOAT_NUMBER
      A float field
      FOLDER
      A file chooser that allows the selection of folder.
      GROUP
      A group name
      LABEL
      A plain label.
      LINK
      A link with an URL and a target definition
      NUMBER_RANGE
      A fixed number range
      PASSWORD
      A password field
      SELECT
      A select field with a predefined set of possible values
      SELECT_INPUT
      A select field which supports chunking behavior and custom renderers
      SELECT_INPUT_MULTI
      A select field which supports chunking behavior and custom renderers and multiple selection
      STRING_TABLE
      A table with string key:value pairs
      TEXTAREA
      A multiline text field
      TEXTFIELD
      A text field
      TIME
      A time selection field
      UNIT_FIX_NUMBER
      A integer unit field with a unit
      UNIT_FLOAT_NUMBER
      A float field with a unit
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static FieldType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static FieldType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • SELECT

        public static final FieldType SELECT
        A select field with a predefined set of possible values
      • SELECT_INPUT

        public static final FieldType SELECT_INPUT
        A select field which supports chunking behavior and custom renderers
      • SELECT_INPUT_MULTI

        public static final FieldType SELECT_INPUT_MULTI
        A select field which supports chunking behavior and custom renderers and multiple selection
      • TEXTFIELD

        public static final FieldType TEXTFIELD
        A text field
      • TEXTAREA

        public static final FieldType TEXTAREA
        A multiline text field
      • PASSWORD

        public static final FieldType PASSWORD
        A password field
      • LINK

        public static final FieldType LINK
        A link with an URL and a target definition
      • GROUP

        public static final FieldType GROUP
        A group name
      • LABEL

        public static final FieldType LABEL
        A plain label. Supports line breaks
      • BOOLEAN

        public static final FieldType BOOLEAN
        A checkbox that allows the values 'true' and 'false' (as String)
      • FILE

        public static final FieldType FILE
        A file chooser that allows the selection of files. Different protocols like 'file' and 'repo' can be set
      • FOLDER

        public static final FieldType FOLDER
        A file chooser that allows the selection of folder. Different protocols like 'file' and 'repo' can be set
      • FILE_OR_FOLDER

        public static final FieldType FILE_OR_FOLDER
        A file chooser that allows the selection of files or folders. Different protocols like 'file' and 'repo' can be set
      • DATE

        public static final FieldType DATE
        A date selection field.
      • TIME

        public static final FieldType TIME
        A time selection field
      • COLOR

        public static final FieldType COLOR
        A color field
      • FIX_NUMBER

        public static final FieldType FIX_NUMBER
        An integer field
      • UNIT_FIX_NUMBER

        public static final FieldType UNIT_FIX_NUMBER
        A integer unit field with a unit
      • FLOAT_NUMBER

        public static final FieldType FLOAT_NUMBER
        A float field
      • UNIT_FLOAT_NUMBER

        public static final FieldType UNIT_FLOAT_NUMBER
        A float field with a unit
      • NUMBER_RANGE

        public static final FieldType NUMBER_RANGE
        A fixed number range
      • STRING_TABLE

        public static final FieldType STRING_TABLE
        A table with string key:value pairs
    • Method Detail

      • values

        public static FieldType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FieldType c : FieldType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FieldType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null