Package org.ametys.plugins.forms
Enum Field.FieldType
- java.lang.Object
-
- java.lang.Enum<Field.FieldType>
-
- org.ametys.plugins.forms.Field.FieldType
-
- All Implemented Interfaces:
Serializable
,Comparable<Field.FieldType>
- Enclosing class:
- Field
public static enum Field.FieldType extends Enum<Field.FieldType>
Field type.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
FieldType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Field.FieldType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Field.FieldType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TEXT
public static final Field.FieldType TEXT
Text input
-
TEXTAREA
public static final Field.FieldType TEXTAREA
Textarea
-
SELECT
public static final Field.FieldType SELECT
Select list
-
CHECKBOX
public static final Field.FieldType CHECKBOX
Checkbox
-
RADIO
public static final Field.FieldType RADIO
Radio button
-
PASSWORD
public static final Field.FieldType PASSWORD
Password
-
FILE
public static final Field.FieldType FILE
File upload control
-
HIDDEN
public static final Field.FieldType HIDDEN
Hidden value
-
CAPTCHA
public static final Field.FieldType CAPTCHA
Captcha
-
-
Constructor Detail
-
FieldType
private FieldType()
-
-
Method Detail
-
values
public static Field.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 (Field.FieldType c : Field.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 Field.FieldType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-