Enum FieldType
- java.lang.Object
-
- java.lang.Enum<FieldType>
-
- com.inet.taskplanner.server.api.field.FieldType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEANA checkbox that allows the values 'true' and 'false' (as String)COLORA color fieldDATEA date selection field.FILEA file chooser that allows the selection of files.FILE_OR_FOLDERA file chooser that allows the selection of files or folders.FIX_NUMBERAn integer fieldFLOAT_NUMBERA float fieldFOLDERA file chooser that allows the selection of folder.GROUPA group nameLABELA plain label.LINKA link with an URL and a target definitionNUMBER_RANGEA fixed number rangePASSWORDA password fieldSELECTA select field with a predefined set of possible valuesSELECT_INPUTA select field which supports chunking behavior and custom renderersSELECT_INPUT_MULTIA select field which supports chunking behavior and custom renderers and multiple selectionTEXTAREAA multiline text fieldTEXTFIELDA text fieldTIMEA time selection fieldUNIT_FIX_NUMBERA integer unit field with a unitUNIT_FLOAT_NUMBERA float field with a unit
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FieldTypevalueOf(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
-
-