public enum FormItemType extends java.lang.Enum<FormItemType> implements ValueEnum
type
property of the field.
The table below describes the default FormItem chosen for various values of the type
property. You can
also set field.editorType
to the classname of a
FormItem
to override this default mapping. You can alternatively
override DynamicForm.getEditorType
to create a form
with different rules for which FormItems are chosen.
Enum Constant and Description |
---|
BASE64_BINARY |
BINARY
Rendered as a
UploadItem |
BLOB |
BLURB_ITEM |
BOOLEAN
Rendered as a
CheckboxItem |
BUTTON_ITEM |
CANVAS_ITEM |
CHECKBOX |
CHECKBOX_ITEM |
COMBOBOX_ITEM |
CYCLE_ITEM |
DATE
Rendered as a
DateItem |
DATE_ITEM |
ENUM
Rendered as a
SelectItem . |
FILE |
FILE_ITEM |
FLOAT
Same as
text by default. |
HEADER_ITEM |
HIDDEN_ITEM |
IMAGE |
IMAGEFILE |
INTEGER
Same as
text by default. |
LINK
|
LINK_ITEM |
MULTI_FILE |
MULTI_UPLOAD |
MULTICOMBOBOX_ITEM |
NATIVE_CHECKBOX_ITEM |
PASSWORD_ITEM |
PICKTREE_ITEM |
RADIOGROUP_ITEM |
RELATION |
RESET_ITEM |
RICHTEXT_ITEM |
ROWSPACER_ITEM |
SECTION_ITEM |
SELECT_ITEM |
SELECT_OTHER |
SEQUENCE
Same as
text |
SLIDER_ITEM |
SPACER_ITEM |
SPINNER_ITEM |
STATIC_TEXT |
STATICTEXT_ITEM |
SUBMIT_ITEM |
TEXT
Rendered as a
TextItem , unless the lenght of the field (as specified by
length attribute) is larger than the value
specified by
longTextEditorThreshold , a
TextAreaItem is shown. |
TEXT_ITEM |
TEXTAREA_ITEM |
TIME
Rendered as a
TimeItem |
TIME_ITEM |
TOOLBAR_ITEM |
UPLOAD |
UPLOAD_ITEM |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static FormItemType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FormItemType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FormItemType TEXT
TextItem
, unless the lenght of the field (as specified by
length
attribute) is larger than the value
specified by
longTextEditorThreshold
, a
TextAreaItem
is shown.public static final FormItemType BOOLEAN
CheckboxItem
public static final FormItemType INTEGER
text
by default. Consider setting editorType: SpinnerItem
public static final FormItemType FLOAT
text
by default. Consider setting editorType: SpinnerItem
.public static final FormItemType DATE
DateItem
public static final FormItemType TIME
TimeItem
public static final FormItemType ENUM
SelectItem
. Also true for any field that specifies a
FormItem.setValueMap(String[])
Consider setting
editorType: ComboBoxItem
.public static final FormItemType SEQUENCE
text
public static final FormItemType LINK
public static final FormItemType IMAGE
public static final FormItemType CHECKBOX
public static final FormItemType STATIC_TEXT
public static final FormItemType BLOB
public static final FormItemType MULTI_FILE
public static final FormItemType MULTI_UPLOAD
public static final FormItemType UPLOAD
public static final FormItemType FILE
public static final FormItemType BASE64_BINARY
public static final FormItemType CYCLE_ITEM
public static final FormItemType SELECT_OTHER
public static final FormItemType RELATION
public static final FormItemType SELECT_ITEM
public static final FormItemType HIDDEN_ITEM
public static final FormItemType HEADER_ITEM
public static final FormItemType DATE_ITEM
public static final FormItemType BLURB_ITEM
public static final FormItemType COMBOBOX_ITEM
public static final FormItemType MULTICOMBOBOX_ITEM
public static final FormItemType SPACER_ITEM
public static final FormItemType ROWSPACER_ITEM
public static final FormItemType CHECKBOX_ITEM
public static final FormItemType STATICTEXT_ITEM
public static final FormItemType LINK_ITEM
public static final FormItemType CANVAS_ITEM
public static final FormItemType PICKTREE_ITEM
public static final FormItemType BUTTON_ITEM
public static final FormItemType SUBMIT_ITEM
public static final FormItemType RESET_ITEM
public static final FormItemType RICHTEXT_ITEM
public static final FormItemType FILE_ITEM
public static final FormItemType SLIDER_ITEM
public static final FormItemType TOOLBAR_ITEM
public static final FormItemType SECTION_ITEM
public static final FormItemType TEXTAREA_ITEM
public static final FormItemType TEXT_ITEM
public static final FormItemType UPLOAD_ITEM
public static final FormItemType PASSWORD_ITEM
public static final FormItemType SPINNER_ITEM
public static final FormItemType TIME_ITEM
public static final FormItemType NATIVE_CHECKBOX_ITEM
public static final FormItemType RADIOGROUP_ITEM
public static final FormItemType IMAGEFILE
public static final FormItemType BINARY
UploadItem
public static FormItemType[] values()
for (FormItemType c : FormItemType.values()) System.out.println(c);
public static FormItemType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null