public interface SupportedCSS
| Modifier and Type | Method and Description |
|---|---|
CSSProperty |
getDefaultProperty(String propertyName)
Return default value of CSSProperty under given name
|
Term<?> |
getDefaultValue(String propertyName)
Some CSSProperties have even additional values.
|
Set<String> |
getDefinedPropertyNames()
Returns names of defined properties
|
int |
getOrdinal(String propertyName)
Returns ordinal number of propertyName.
|
String |
getPropertyName(int o)
Returns property name according to ordinal number
|
String |
getRandomPropertyName()
For testing, this should get name of randomly chosen CSSProperty.
|
int |
getTotalProperties()
Returns total number of properties defined
|
boolean |
isSupportedCSSProperty(String property)
Checks whether property is supported
|
boolean |
isSupportedMedia(String media)
Checks whether media type is supported
|
int getTotalProperties()
Set<String> getDefinedPropertyNames()
boolean isSupportedMedia(String media)
media - Name of media, such as screentrue if supported, false otherwiseboolean isSupportedCSSProperty(String property)
property - Name of CSS propertytrue if supported, false otherwiseCSSProperty getDefaultProperty(String propertyName)
propertyName - Name of CSSPropertynull
when property with this name is not foundTerm<?> getDefaultValue(String propertyName)
background-position,
has default value of list with two percentages 0% 0%propertyName - Name of CSSPropertynull
when property with this name is not foundString getRandomPropertyName()
int getOrdinal(String propertyName)
propertyName - Name of property-1 elsewhereString getPropertyName(int o)
o - Ordinal number previously retrieved by getOrdinal()null if not foundCopyright © 2014. All rights reserved.