Enum Class FlexLayout.FlexWrap

java.lang.Object
java.lang.Enum<FlexLayout.FlexWrap>
com.vaadin.flow.component.orderedlayout.FlexLayout.FlexWrap
All Implemented Interfaces:
Serializable, Comparable<FlexLayout.FlexWrap>, Constable
Enclosing class:
FlexLayout

public static enum FlexLayout.FlexWrap extends Enum<FlexLayout.FlexWrap>
Possible values for the flex-wrap CSS property, which determines how the elements inside the layout should behave when they don't fit inside the layout.
  • Enum Constant Details

    • NOWRAP

      public static final FlexLayout.FlexWrap NOWRAP
      If the items use up too much space they will overflow.
    • WRAP

      public static final FlexLayout.FlexWrap WRAP
      If items are not able to fit into a single row they are allowed to wrap into a follow up line.
    • WRAP_REVERSE

      public static final FlexLayout.FlexWrap WRAP_REVERSE
      If items are not able to fit into a single row they are allowed to wrap into a follow up line. Additionally the order of the items will be reversed.
  • Method Details

    • values

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