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

public static enum ApplicationFormItem.Type extends Enum<ApplicationFormItem.Type>
Enumeration for types of application form items. For example text fields, checkboxes and so on.
  • Enum Constant Details

    • HTML_COMMENT

      public static final ApplicationFormItem.Type HTML_COMMENT
      For inserting arbitrary HTML text into the form.
    • SUBMIT_BUTTON

      public static final ApplicationFormItem.Type SUBMIT_BUTTON
      For specifying a label for the submit button.
    • AUTO_SUBMIT_BUTTON

      public static final ApplicationFormItem.Type 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

      public static final ApplicationFormItem.Type PASSWORD
      For password, which needs to be typed twice.
    • VALIDATED_EMAIL

      public static final ApplicationFormItem.Type VALIDATED_EMAIL
      For an email address that must be validated by sending an email with a URL.
    • TEXTFIELD

      public static final ApplicationFormItem.Type TEXTFIELD
      Standard HTML text field.
    • TEXTAREA

      public static final ApplicationFormItem.Type TEXTAREA
      Standard HTML text area.
    • CHECKBOX

      public static final ApplicationFormItem.Type CHECKBOX
      Standard HTML checkbox, multiple values are allowed.
    • RADIO

      public static final ApplicationFormItem.Type RADIO
      Standard HTML radio button.
    • SELECTIONBOX

      public static final ApplicationFormItem.Type 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 label cs#Czech|en#English.
    • COMBOBOX

      public static final ApplicationFormItem.Type 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

      public static final ApplicationFormItem.Type 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

      public static final ApplicationFormItem.Type HEADING
      Special item defining Heading of application form.
    • TIMEZONE

      public static final ApplicationFormItem.Type TIMEZONE
      Special item with pre-defined Timezone selection. Value is autoselected in GUI using Google's API
    • EMBEDDED_GROUP_APPLICATION

      public static final ApplicationFormItem.Type 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

      public static final ApplicationFormItem.Type 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

      public static final ApplicationFormItem.Type 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

      public static ApplicationFormItem.Type[] 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

      public static ApplicationFormItem.Type valueOf(String name)
      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 name
      NullPointerException - if the argument is null