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>cssClassesA list of CSS classes for the elementprotected Map<String,String>customAttributesprotected booleanhiddenWhether the element should be hidden.protected StringidThe ID of the elementprotected StringstyleThe 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 voidaddClass(String clazz)Adds a CSS class to the elementList<String>getCssClasses()Map<String,String>getCustomAttributes()StringgetId()StringgetStyle()booleanisHidden()voidsetCssClasses(List<String> cssClasses)voidsetCustomAttributes(Map<String,String> customAttributes)voidsetHidden(boolean hidden)voidsetId(String id)voidsetStyle(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
-