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 classStyle.StyleBuilderNested classes/interfaces inherited from class io.john.amiscaray.stir.domain.elements.CacheableElement
CacheableElement.CacheStatus -
Field Summary
Fields Modifier and Type Field Description private StringBuildercssThe inner CSSprivate ElementProcessorprocessorFields inherited from class io.john.amiscaray.stir.domain.elements.AbstractUIElement
cssClasses, customAttributes, hidden, id, styleFields inherited from class io.john.amiscaray.stir.domain.elements.CacheableElement
cacheDisabled, cacheStatus, propertyChangeSupport -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidaddRule(CssRule rule)Adds a CSS rule to the stylevoidaddStylesAsRawString(String styles)Adds CSS as a raw stringstatic Style.StyleBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)StringBuildergetCss()ElementProcessorgetProcessor()inthashCode()voidsetCss(StringBuilder css)StringtoString()Methods inherited from class io.john.amiscaray.stir.domain.elements.AbstractUIElement
addClass, getCssClasses, getCustomAttributes, getId, getStyle, isHidden, setCssClasses, setCustomAttributes, setHidden, setId, setStyleMethods 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- theCSSRuleto 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()
-