Package com.webfirmframework.wffweb.css
Enum Class FontWeight
- All Implemented Interfaces:
CssProperty
,Serializable
,Cloneable
,Comparable<FontWeight>
,Constable
font-weight: normal|bold|bolder|lighter|number|initial|inherit; number : 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 font-weight: 100 isFontWeight.ONE_HUNDRED
, font-weight: 200 isFontWeight.TWO_HUNDRED
and so on.
- Since:
- 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDeprecated._800 is available for the same purposeDeprecated._500 is available for the same purposeDeprecated._400 is available for the same purposeDeprecated._900 is available for the same purposeDeprecated._100 is available for the same purposeDeprecated._700 is available for the same purposeDeprecated._600 is available for the same purposeDeprecated._300 is available for the same purposeDeprecated._200 is available for the same purpose -
Method Summary
Modifier and TypeMethodDescriptionstatic FontWeight
gets the corresponding object for the givencssValue
or null for invalid cssValue.static boolean
checks whether the given givencolorName
is valid , i.e.toString()
static FontWeight
Returns the enum constant of this class with the specified name.static FontWeight[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL
-
BOLD
-
BOLDER
-
LIGHTER
-
ONE_HUNDRED
Deprecated._100 is available for the same purposeuse _100 instead of it -
TWO_HUNDRED
Deprecated._200 is available for the same purposeuse _200 instead of it -
THREE_HUNDRED
Deprecated._300 is available for the same purposeuse _300 instead of it -
FOUR_HUNDRED
Deprecated._400 is available for the same purposeuse _400 instead of it -
FIVE_HUNDRED
Deprecated._500 is available for the same purposeuse _500 instead of it -
SIX_HUNDRED
Deprecated._600 is available for the same purposeuse _600 instead of it -
SEVEN_HUNDRED
Deprecated._700 is available for the same purposeuse _700 instead of it -
EIGHT_HUNDRED
Deprecated._800 is available for the same purposeuse _800 instead of it -
NINE_HUNDRED
Deprecated._900 is available for the same purposeuse _900 instead of it -
INITIAL
-
INHERIT
-
_100
-
_200
-
_300
-
_400
-
_500
-
_600
-
_700
-
_800
-
_900
-
-
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
-
getEnumName
- Returns:
- the name of this enum.
- Since:
- 1.0.0
-
toString
- Overrides:
toString
in classEnum<FontWeight>
-
isValid
checks whether the given givencolorName
is valid , i.e. whether it can have a corresponding object from it.- Parameters:
colorName
-- Returns:
- true if the given
cssColorName
has a corresponding object. - Since:
- 1.0.0
-
getThis
gets the corresponding object for the givencssValue
or null for invalid cssValue.- Parameters:
cssValue
- the inbuilt cssValue as per w3 standard.- Returns:
- the corresponding object for the given
cssValue
or null for invalid cssValue. - Since:
- 1.0.0
-
getCssName
- Specified by:
getCssName
in interfaceCssProperty
- Returns:
- the name portion in style, eg
align-content
for stylealign-content: center
.
-
getCssValue
- Specified by:
getCssValue
in interfaceCssProperty
- Returns:
- the value portion in style, eg
center
for stylealign-content: center
.
-