Enum FieldType
- java.lang.Object
-
- java.lang.Enum<FieldType>
-
- com.inet.taskplanner.server.api.field.FieldType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEAN
A checkbox that allows the values 'true' and 'false' (as String)COLOR
A color fieldDATE
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 fieldFLOAT_NUMBER
A float fieldFOLDER
A file chooser that allows the selection of folder.GROUP
A group nameLABEL
A plain label.LINK
A link with an URL and a target definitionNUMBER_RANGE
A fixed number rangePASSWORD
A password fieldSELECT
A select field with a predefined set of possible valuesSELECT_INPUT
A select field which supports chunking behavior and custom renderersSELECT_INPUT_MULTI
A select field which supports chunking behavior and custom renderers and multiple selectionTEXTAREA
A multiline text fieldTEXTFIELD
A text fieldTIME
A time selection fieldUNIT_FIX_NUMBER
A integer unit field with a unitUNIT_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.
-
-
-
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
-
-
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 namejava.lang.NullPointerException
- if the argument is null
-
-