Enum SpreadsheetStyleFactory.BorderStyle
- java.lang.Object
-
- java.lang.Enum<SpreadsheetStyleFactory.BorderStyle>
-
- com.vaadin.flow.component.spreadsheet.SpreadsheetStyleFactory.BorderStyle
-
- All Implemented Interfaces:
Serializable
,Comparable<SpreadsheetStyleFactory.BorderStyle>
- Enclosing class:
- SpreadsheetStyleFactory
public static enum SpreadsheetStyleFactory.BorderStyle extends Enum<SpreadsheetStyleFactory.BorderStyle>
Styling for cell borders- Author:
- Vaadin Ltd.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DASHED_MEDIUM
DASHED_THIN
DOTTED_THIN
DOUBLE
NONE
SOLID_MEDIUM
SOLID_THICK
SOLID_THIN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBorderAttributeValue()
Returns the complete border attribute value for CSSint
getSize()
Returns the thickness of this borderString
getValue()
Returns the CSS name of this border stylestatic SpreadsheetStyleFactory.BorderStyle
valueOf(String name)
Returns the enum constant of this type with the specified name.static SpreadsheetStyleFactory.BorderStyle[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SOLID_THIN
public static final SpreadsheetStyleFactory.BorderStyle SOLID_THIN
-
DOTTED_THIN
public static final SpreadsheetStyleFactory.BorderStyle DOTTED_THIN
-
DASHED_THIN
public static final SpreadsheetStyleFactory.BorderStyle DASHED_THIN
-
SOLID_MEDIUM
public static final SpreadsheetStyleFactory.BorderStyle SOLID_MEDIUM
-
DASHED_MEDIUM
public static final SpreadsheetStyleFactory.BorderStyle DASHED_MEDIUM
-
SOLID_THICK
public static final SpreadsheetStyleFactory.BorderStyle SOLID_THICK
-
DOUBLE
public static final SpreadsheetStyleFactory.BorderStyle DOUBLE
-
NONE
public static final SpreadsheetStyleFactory.BorderStyle NONE
-
-
Method Detail
-
values
public static SpreadsheetStyleFactory.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 (SpreadsheetStyleFactory.BorderStyle c : SpreadsheetStyleFactory.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 SpreadsheetStyleFactory.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
-
getValue
public String getValue()
Returns the CSS name of this border style- Returns:
- CSS name of border style
-
getSize
public int getSize()
Returns the thickness of this border- Returns:
- Border thickness in PT
-
getBorderAttributeValue
public String getBorderAttributeValue()
Returns the complete border attribute value for CSS- Returns:
- Complete border attribute value
-
-