com.vaadin.flow.component.orderedlayout.

Enum Class FlexLayout.FlexDirection

java.lang.Object
java.lang.Enum<FlexLayout.FlexDirection>
com.vaadin.flow.component.orderedlayout.FlexLayout.FlexDirection

All Implemented Interfaces:

Serializable, Comparable<FlexLayout.FlexDirection>, Constable

Enclosing class:

FlexLayout

public static enum FlexLayout.FlexDirection extends Enum<FlexLayout.FlexDirection>

Possible values for the flex-direction CSS property, which determines how the elements are placed inside the layout.

  • Enum Constant Details

    • ROW

      public static final FlexLayout.FlexDirection ROW

      The items are displayed horizontally, as a row.

    • ROW_REVERSE

      public static final FlexLayout.FlexDirection ROW_REVERSE

      The items are displayed horizontally, as a row in reverse order.

    • COLUMN

      public static final FlexLayout.FlexDirection COLUMN

      The items are displayed vertically, as a column.

    • COLUMN_REVERSE

      public static final FlexLayout.FlexDirection COLUMN_REVERSE

      The items are displayed vertically, as a column in reverse order.

  • Method Details

    • values

      public static FlexLayout.FlexDirection[] 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 FlexLayout.FlexDirection 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