com.vaadin.flow.component.orderedlayout.
Enum Class BoxSizing
All Implemented Interfaces:
Enum for the values of the CSS property box-sizing
.
Author:
Vaadin Ltd.
See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTells the browser to account for any border and padding in the values you specify for an element's width and height.
Sets the default CSS box-sizing behavior.
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.
-
Method Summary
-
Enum Constant Details
-
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
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
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
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
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 nameNullPointerException
- if the argument is null
-