Enum Class ApplicationFormItem.Type
java.lang.Object
java.lang.Enum<ApplicationFormItem.Type>
cz.metacentrum.perun.registrar.model.ApplicationFormItem.Type
- All Implemented Interfaces:
Serializable
,Comparable<ApplicationFormItem.Type>
,Constable
- Enclosing class:
- ApplicationFormItem
Enumeration for types of application form items. For example text fields, checkboxes and so on.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionFor specifying a label for the submit button.Standard HTML checkbox, multiple values are allowed.A widget that is a combination of a drop-down list and a single-line editable textbox, allowing the user to either type a value directly into the control or choose from a list of existing options.Special type for specifying if it will be allowed to register to group(s) through single application form.Special item defining Heading of application form.For inserting arbitrary HTML text into the form.Widgets for list like input.Widgets for map like input (key - value pairs).For password, which needs to be typed twice.Standard HTML radio button.Standard HTML selection box, options are in for each locale in ItemTexts.label separated by | with values separated by #.For specifying a label for the submit button.Standard HTML text area.Standard HTML text field.Special item with pre-defined Timezone selection.Special type for specifying username.For an email address that must be validated by sending an email with a URL. -
Method Summary
Modifier and TypeMethodDescriptionstatic ApplicationFormItem.Type
Returns the enum constant of this class with the specified name.static ApplicationFormItem.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HTML_COMMENT
For inserting arbitrary HTML text into the form. -
SUBMIT_BUTTON
For specifying a label for the submit button. -
AUTO_SUBMIT_BUTTON
For specifying a label for the submit button. When validation of form is OK, then it's automatically submitted. When validation fails, user have to fix it and submit form manually. -
PASSWORD
For password, which needs to be typed twice. -
VALIDATED_EMAIL
For an email address that must be validated by sending an email with a URL. -
TEXTFIELD
Standard HTML text field. -
TEXTAREA
Standard HTML text area. -
CHECKBOX
Standard HTML checkbox, multiple values are allowed. -
RADIO
Standard HTML radio button. -
SELECTIONBOX
Standard HTML selection box, options are in for each locale in ItemTexts.label separated by | with values separated by #. Thus, a language selection box would have for English locale the labelcs#Czech|en#English
. -
COMBOBOX
A widget that is a combination of a drop-down list and a single-line editable textbox, allowing the user to either type a value directly into the control or choose from a list of existing options. See Combobox for description.The options are defined in the same way as for SELECTIONBOX.
-
USERNAME
Special type for specifying username. It needs to be treated separately from ordinary TEXTFIELD, because initial applications by users who are already members of a VO need to display read-only. -
HEADING
Special item defining Heading of application form. -
TIMEZONE
Special item with pre-defined Timezone selection. Value is autoselected in GUI using Google's API -
EMBEDDED_GROUP_APPLICATION
Special type for specifying if it will be allowed to register to group(s) through single application form. This type is represented by standard HTML checkbox. -
LIST_INPUT_BOX
Widgets for list like input. Represented by string of comma (',') separated values. Should also have a comma after last value. Special characters as part of value should be escaped. Example list: item,item\,withComma,lastItem, -
MAP_INPUT_BOX
Widgets for map like input (key - value pairs). Represented by string of comma (',') separated values. Should also have a comma after last value. Keys and values are separated by a colon (':'). Special characters as part of key or value should be escaped. Example map: key:value,key\,withComma:value\:withColon,last:item,
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-