public interface AttributeResolver
To enable matching of identity conditions, class conditions, language, and attribute defaults you need to provide an AttributeResolver to the StyleMap.
NOTE: The application is required to look in a document's internal subset for default attribute values, but the application is not required to use its built-in knowledge of a namespace or look in the external subset.
| Modifier and Type | Method and Description |
|---|---|
String |
getAttributeValue(Object e,
String attrName)
Required to return null if attribute does not exist, and
not null if attribute exists.
|
String |
getAttributeValue(Object e,
String namespaceURI,
String attrName)
Required to return null if attribute does not exist and
not null if attribute exists.
|
String |
getClass(Object e) |
String |
getElementStyling(Object e) |
String |
getID(Object e) |
String |
getLang(Object e) |
String |
getNonCssStyling(Object e) |
boolean |
isActive(Object e)
Gets the active attribute of the AttributeResolver object
|
boolean |
isFocus(Object e)
Gets the focus attribute of the AttributeResolver object
|
boolean |
isHover(Object e)
Gets the hover attribute of the AttributeResolver object
|
boolean |
isLink(Object e)
Gets the link attribute of the AttributeResolver object
|
boolean |
isVisited(Object e)
Gets the visited attribute of the AttributeResolver object
|
@Nullable String getAttributeValue(Object e, String attrName)
@Nullable String getAttributeValue(Object e, String namespaceURI, String attrName)
@Nullable String getNonCssStyling(Object e)
@Nullable String getElementStyling(Object e)
boolean isLink(Object e)
boolean isVisited(Object e)
boolean isHover(Object e)
boolean isActive(Object e)
boolean isFocus(Object e)
Copyright © 2023. All rights reserved.