com.vaadin.flow.component.orderedlayout.
Enum BoxSizing
- java.lang.Object
-
- java.lang.Enum<BoxSizing>
-
- com.vaadin.flow.component.orderedlayout.BoxSizing
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description BORDER_BOX
Tells the browser to account for any border and padding in the values you specify for an element's width and height.
CONTENT_BOX
Sets the default CSS box-sizing behavior.
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.
-
Method Summary
All Methods Modifier and Type Method and Description static BoxSizing
valueOf(String name)
Returns the enum constant of this type with the specified name.
static BoxSizing[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static BoxSizing[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (BoxSizing c : BoxSizing.values()) System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BoxSizing valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-