public interface StyledElement
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE_NONE
"none": Represents elements with no type.
|
Modifier and Type | Method and Description |
---|---|
default java.util.Set<java.lang.String> |
getCustomStyles()
Return the element custom classes.
|
default java.lang.String |
getDeclaration()
Return the declaration ID of the element.
|
default java.lang.String |
getInlinedStyle()
Return the element custom inline style.
|
default java.lang.String |
getStyle()
Return the style class of the element.
|
default boolean |
hasInlinedStyle()
Return true if the element has custom inline style.
|
default void |
setCustomStyles(java.util.Set<java.lang.String> classes)
Set the element custom classes.
|
default void |
setCustomStyles(java.lang.String style)
Set the element custom styles.
|
default void |
setInlinedStyle(java.lang.String style)
Set the element custom inline style.
|
static final java.lang.String TYPE_NONE
default java.lang.String getDeclaration()
TYPE_NONE
by default.default java.lang.String getStyle()
default void setInlinedStyle(java.lang.String style)
style
- the element custom inline styledefault java.lang.String getInlinedStyle()
default boolean hasInlinedStyle()
default void setCustomStyles(java.util.Set<java.lang.String> classes)
classes
- the custom element classesdefault void setCustomStyles(java.lang.String style)
style
- the custom element stylesdefault java.util.Set<java.lang.String> getCustomStyles()
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence