Class Style
java.lang.Object
io.john.amiscaray.stir.domain.elements.CacheableElement
io.john.amiscaray.stir.domain.elements.AbstractUIElement
io.john.amiscaray.stir.domain.elements.Style
public class Style extends AbstractUIElement
A pojo representing a style element
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Style.StyleBuilder
Nested classes/interfaces inherited from class io.john.amiscaray.stir.domain.elements.CacheableElement
CacheableElement.CacheStatus
-
Field Summary
Fields Modifier and Type Field Description private StringBuilder
css
The inner CSSprivate ElementProcessor
processor
Fields inherited from class io.john.amiscaray.stir.domain.elements.AbstractUIElement
cssClasses, customAttributes, hidden, id, style
Fields inherited from class io.john.amiscaray.stir.domain.elements.CacheableElement
cacheDisabled, cacheStatus, propertyChangeSupport
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
addRule(CssRule rule)
Adds a CSS rule to the stylevoid
addStylesAsRawString(String styles)
Adds CSS as a raw stringstatic Style.StyleBuilder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
StringBuilder
getCss()
ElementProcessor
getProcessor()
int
hashCode()
void
setCss(StringBuilder css)
String
toString()
Methods inherited from class io.john.amiscaray.stir.domain.elements.AbstractUIElement
addClass, getCssClasses, getCustomAttributes, getId, getStyle, isHidden, setCssClasses, setCustomAttributes, setHidden, setId, setStyle
Methods inherited from class io.john.amiscaray.stir.domain.elements.CacheableElement
addPropertyChangeListener, emptyCache, getCacheContents, getCacheStatus, isCacheDisabled, isHasChildren, setCacheContents, setCacheDisabled, setHasChildren
-
Field Details
-
css
The inner CSS -
processor
-
-
Constructor Details
-
Style
-
Style
-
-
Method Details
-
builder
-
addRule
Adds a CSS rule to the style- Parameters:
rule
- theCSSRule
to add to the style
-
addStylesAsRawString
Adds CSS as a raw string- Parameters:
styles
- A string with the styles to add
-
getCss
-
getProcessor
-
setCss
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-