Enum Class FormLayout.LabelTextAlign

java.lang.Object
java.lang.Enum<FormLayout.LabelTextAlign>
com.vaadin.flow.component.formlayout.FormLayout.LabelTextAlign
All Implemented Interfaces:
Serializable, Comparable<FormLayout.LabelTextAlign>, Constable
Enclosing class:
FormLayout

public static enum FormLayout.LabelTextAlign extends Enum<FormLayout.LabelTextAlign>
Enum for describing the text alignment that is applied to labels when they are positioned next to the fields.
Since:
25.4
  • Enum Constant Details

    • START

      public static final FormLayout.LabelTextAlign START
      Aligns the label to the start of the label area (left in LTR, right in RTL).
    • CENTER

      public static final FormLayout.LabelTextAlign CENTER
      Aligns the label to the center of the label area.
    • END

      public static final FormLayout.LabelTextAlign END
      Aligns the label to the end of the label area (right in LTR, left in RTL).
  • Method Details

    • values

      public static FormLayout.LabelTextAlign[] 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 FormLayout.LabelTextAlign 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