Class AbstractUIElement
java.lang.Object
io.john.amiscaray.stir.domain.elements.CacheableElement
io.john.amiscaray.stir.domain.elements.AbstractUIElement
- Direct Known Subclasses:
AbstractContentFrame
,AbstractElementContainer
,AbstractFormField
,AbstractListElement
,AbstractTextElement
,Anchor
,Form
,LinkedStyle
,ListItem
,Meta
,Nav
,NavLink
,NavLinkList
,Option
,Script
,Style
,Table
public abstract class AbstractUIElement extends CacheableElement
The base class for all classes that represent HTML elements
-
Nested Class Summary
Nested classes/interfaces inherited from class io.john.amiscaray.stir.domain.elements.CacheableElement
CacheableElement.CacheStatus
-
Field Summary
Fields Modifier and Type Field Description protected List<String>
cssClasses
A list of CSS classes for the elementprotected Map<String,String>
customAttributes
protected boolean
hidden
Whether the element should be hidden.protected String
id
The ID of the elementprotected String
style
The style attribute of the elementFields inherited from class io.john.amiscaray.stir.domain.elements.CacheableElement
cacheDisabled, cacheStatus, propertyChangeSupport
-
Constructor Summary
Constructors Constructor Description AbstractUIElement()
AbstractUIElement(String id, List<String> cssClasses, String style, boolean hidden, Map<String,String> customAttributes)
-
Method Summary
Modifier and Type Method Description void
addClass(String clazz)
Adds a CSS class to the elementList<String>
getCssClasses()
Map<String,String>
getCustomAttributes()
String
getId()
String
getStyle()
boolean
isHidden()
void
setCssClasses(List<String> cssClasses)
void
setCustomAttributes(Map<String,String> customAttributes)
void
setHidden(boolean hidden)
void
setId(String id)
void
setStyle(String style)
Methods inherited from class io.john.amiscaray.stir.domain.elements.CacheableElement
addPropertyChangeListener, emptyCache, getCacheContents, getCacheStatus, isCacheDisabled, isHasChildren, setCacheContents, setCacheDisabled, setHasChildren
-
Field Details
-
id
The ID of the element -
cssClasses
A list of CSS classes for the element -
style
The style attribute of the element -
customAttributes
-
-
Constructor Details
-
AbstractUIElement
-
AbstractUIElement
public AbstractUIElement()
-
-
Method Details
-
getStyle
-
setStyle
-
getId
-
getCssClasses
-
setId
-
setCssClasses
-
setHidden
public void setHidden(boolean hidden) -
addClass
Adds a CSS class to the element- Parameters:
clazz
- The CSS class to add to the element
-
isHidden
public boolean isHidden() -
getCustomAttributes
-
setCustomAttributes
-