Enum Class BoxSizing

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

public enum BoxSizing extends Enum<BoxSizing>
Enum for the values of the CSS property box-sizing.
Author:
Vaadin Ltd.
See Also:
  • Enum Constant Details

    • UNDEFINED

      public static final BoxSizing UNDEFINED
      When the box-sizing is undefined, it's up to the element client-side implementation to define how its internal the box model should be defined.
    • CONTENT_BOX

      public static final BoxSizing CONTENT_BOX
      Sets the default CSS box-sizing behavior. If you set an element's width to 100 pixels, then the element's content box will be 100 pixels wide, and the width of any border or padding will be added to the final rendered width.
    • BORDER_BOX

      public static final BoxSizing BORDER_BOX
      Tells the browser to account for any border and padding in the values you specify for an element's width and height. If you set an element's width to 100 pixels, that 100 pixels will include any border or padding you added, and the content box will shrink to absorb that extra width. This typically makes it much easier to size elements.
  • Method Details

    • values

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