public enum CssProperty extends Enum<CssProperty>
For example, the "color" property supportedValueTypes
is CssValueType.COLOR
and its allowedValues
is the entire list of CssColour
entries.
On the other hand, the "width" property supportedValueTypes
are CssValueType.LENGTH
and CssValueType.PERCENTAGE
and its allowedValues
are "auto" or "inherit". That means the following values are all considered valid:
"100px", "auto", "50%".
Enum Constant and Description |
---|
BACKGROUND_COLOR |
COLOR |
FONT_SIZE |
FONT_WEIGHT |
HEIGHT |
MARGIN_BOTTOM |
MARGIN_LEFT |
MARGIN_RIGHT |
MARGIN_TOP |
PADDING_BOTTOM |
PADDING_LEFT |
PADDING_RIGHT |
PADDING_TOP |
TEXT_ALIGN |
TEXT_DECORATION |
WIDTH |
Modifier and Type | Method and Description |
---|---|
static CssProperty |
get(String property) |
List<CssAllowedValue> |
getAllowedValues() |
String |
getName() |
List<CssValueType> |
getSupportedValueTypes() |
boolean |
supportsValueType(CssValueType type) |
static CssProperty |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CssProperty[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CssProperty WIDTH
public static final CssProperty HEIGHT
public static final CssProperty BACKGROUND_COLOR
public static final CssProperty MARGIN_TOP
public static final CssProperty MARGIN_BOTTOM
public static final CssProperty MARGIN_LEFT
public static final CssProperty MARGIN_RIGHT
public static final CssProperty PADDING_TOP
public static final CssProperty PADDING_BOTTOM
public static final CssProperty PADDING_LEFT
public static final CssProperty PADDING_RIGHT
public static final CssProperty TEXT_ALIGN
public static final CssProperty TEXT_DECORATION
public static final CssProperty COLOR
public static final CssProperty FONT_SIZE
public static final CssProperty FONT_WEIGHT
public static CssProperty[] values()
for (CssProperty c : CssProperty.values()) System.out.println(c);
public static CssProperty valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
public static CssProperty get(String property)
public List<CssAllowedValue> getAllowedValues()
public boolean supportsValueType(CssValueType type)
public List<CssValueType> getSupportedValueTypes()
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.