Enum BorderStyle
- java.lang.Object
-
- java.lang.Enum<BorderStyle>
-
- org.pepstock.charba.client.dom.enums.BorderStyle
-
- All Implemented Interfaces:
Serializable
,Comparable<BorderStyle>
,Key
public enum BorderStyle extends Enum<BorderStyle> implements Key
Enumerates the sets the line style for all four sides of an element's border.- Author:
- Andrea "Stock" Stocchero
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DASHED
Displays a series of short square-ended dashes or line segments.
The exact size and length of the segments are not defined by the specification and are implementation-specific.DOTTED
Displays a series of rounded dots.
The spacing of the dots is not defined by the specification and is implementation-specific.DOUBLE
Displays two straight lines that add up to the pixel size defined by border width.GROOVE
Displays a border with a carved appearance.HIDDEN
Like the none keyword, displays no border.INSET
Displays a border that makes the element appear embedded.NONE
Like the hidden keyword, displays no border.OUTSET
Displays a border that makes the element appear embossed.RIDGE
Displays a border with an extruded appearance.SOLID
Displays a single, straight, solid line.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
value()
Returns the name value of propertystatic BorderStyle
valueOf(String name)
Returns the enum constant of this type with the specified name.static BorderStyle[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final BorderStyle NONE
Like the hidden keyword, displays no border.
-
DOTTED
public static final BorderStyle DOTTED
Displays a series of rounded dots.
The spacing of the dots is not defined by the specification and is implementation-specific.
-
DASHED
public static final BorderStyle DASHED
Displays a series of short square-ended dashes or line segments.
The exact size and length of the segments are not defined by the specification and are implementation-specific.
-
HIDDEN
public static final BorderStyle HIDDEN
Like the none keyword, displays no border.
-
SOLID
public static final BorderStyle SOLID
Displays a single, straight, solid line.
-
DOUBLE
public static final BorderStyle DOUBLE
Displays two straight lines that add up to the pixel size defined by border width.
-
GROOVE
public static final BorderStyle GROOVE
Displays a border with a carved appearance. It is the opposite ofRIDGE
.
-
RIDGE
public static final BorderStyle RIDGE
Displays a border with an extruded appearance. It is the opposite ofGROOVE
.
-
INSET
public static final BorderStyle INSET
Displays a border that makes the element appear embedded. It is the opposite ofOUTSET
.
-
OUTSET
public static final BorderStyle OUTSET
Displays a border that makes the element appear embossed. It is the opposite ofINSET
.
-
-
Method Detail
-
values
public static BorderStyle[] 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 (BorderStyle c : BorderStyle.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BorderStyle 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
-
-