Enum Class FormItemLabelPosition

java.lang.Object
java.lang.Enum<FormItemLabelPosition>
com.jbstrap.ui.components.form.FormItemLabelPosition
All Implemented Interfaces:
Serializable, Comparable<FormItemLabelPosition>, Constable

public enum FormItemLabelPosition extends Enum<FormItemLabelPosition>
Enum class containing the possible positions of individual form elements
Since:
4.0
Author:
JBStrap
  • Enum Constant Details

    • TOP

      public static final FormItemLabelPosition TOP
      In this case the form element will be displayed in its full width, and the label will be above the input field.
    • LEFT

      public static final FormItemLabelPosition LEFT
      In this case the form element will be displayed in front of the input field (left side), with the label's set width. This is the default position.
  • Method Details

    • values

      public static FormItemLabelPosition[] 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 FormItemLabelPosition 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