public interface CSSProperty
public static CSSProperty valueOf(String value);to retrieve instance of property by string value. Since enum classes provides this value automatically, it is encouraged to use them. For make use of enums easier, this contract should be followed: All values directly represented in CSS style sheet such as:
float: left; or background-repeat:
repeat-x; should to converted to upper case and
all not alphanumeric characters should be converted into underscores
(_), for example REPEAT_X
All other values, with essentially requires additional data, should
broke enum standard and use lower case letters only. This way it is
guaranteed that this value won't never be considered as a keyword.| Modifier and Type | Field and Description |
|---|---|
static String |
FONT_CURSIVE |
static String |
FONT_FANTASY |
static String |
FONT_MONOSPACED |
static String |
FONT_SANS_SERIF |
static String |
FONT_SERIF |
static String |
INHERIT_KEYWORD
CSS "inherit" keyword for retrieving instance by Translator object
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equalsInherit()
Allows to check whether property equals
inherit value |
boolean |
inherited()
Allows declarations of properties to inherit or to be inherited
|
String |
toString()
Textual representation of CSS property
|
static final String INHERIT_KEYWORD
static final String FONT_SERIF
static final String FONT_SANS_SERIF
static final String FONT_MONOSPACED
static final String FONT_CURSIVE
static final String FONT_FANTASY
boolean inherited()
true in case that this property could be inherited
from parent, false elsewhereboolean equalsInherit()
inherit valuetrueif value is INHERIT,
false otherwiseCopyright © 2014. All rights reserved.