public interface HtmlAttributes
HtmlAttributes.CSS,
HtmlAttributes.DOM| Modifier and Type | Interface and Description |
|---|---|
static class |
HtmlAttributes.CSS
Common CSS property names.
|
static class |
HtmlAttributes.DOM
Common DOM attribute names.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCssProperty(Component component,
java.lang.String propertyName)
Gets CSS property value assigned using
HtmlAttributes. |
java.lang.String |
getDomAttribute(Component component,
java.lang.String attributeName)
Gets DOM attribute value assigned using
HtmlAttributes. |
void |
removeCssProperty(Component component,
java.lang.String propertyName)
Clears CSS property value from the top most element of UI component.
|
void |
removeDomAttribute(Component component,
java.lang.String attributeName)
Removes DOM attribute from the top most element of UI component.
|
void |
setCssProperty(Component component,
java.lang.String propertyName,
java.lang.String value)
Sets CSS property value on the top most element of UI component.
|
void |
setDomAttribute(Component component,
java.lang.String attributeName,
java.lang.String value)
Sets DOM attribute on the top most element of UI component.
|
static final java.lang.String NAME
void setDomAttribute(Component component, java.lang.String attributeName, java.lang.String value)
component - UI componentattributeName - DOM attribute name, e.g. "title"value - attribute valueHtmlAttributes.DOMjava.lang.String getDomAttribute(Component component, java.lang.String attributeName)
HtmlAttributes. Does not reflect a real value from DOM.component - UI componentattributeName - DOM attribute namevoid removeDomAttribute(Component component, java.lang.String attributeName)
component - UI componentattributeName - DOM attribute namevoid setCssProperty(Component component, java.lang.String propertyName, java.lang.String value)
component - UI componentpropertyName - CSS property name, e.g. "border-color"value - property valueHtmlAttributes.CSSjava.lang.String getCssProperty(Component component, java.lang.String propertyName)
HtmlAttributes. Does not reflect a real value from DOM.component - UI componentpropertyName - CSS property namevoid removeCssProperty(Component component, java.lang.String propertyName)
component - UI componentpropertyName - CSS property name