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 SummaryNested classes/interfaces inherited from class io.john.amiscaray.stir.domain.elements.CacheableElementCacheableElement.CacheStatus
- 
Field SummaryFields 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.CacheableElementcacheDisabled, cacheStatus, propertyChangeSupport
- 
Constructor SummaryConstructors Constructor Description AbstractUIElement()AbstractUIElement(String id, List<String> cssClasses, String style, boolean hidden, Map<String,String> customAttributes)
- 
Method SummaryModifier 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.CacheableElementaddPropertyChangeListener, emptyCache, getCacheContents, getCacheStatus, isCacheDisabled, isHasChildren, setCacheContents, setCacheDisabled, setHasChildren
- 
Field Details- 
idThe ID of the element
- 
cssClassesA list of CSS classes for the element
- 
styleThe style attribute of the element
- 
customAttributes
 
- 
- 
Constructor Details- 
AbstractUIElement
- 
AbstractUIElementpublic AbstractUIElement()
 
- 
- 
Method Details- 
getStyle
- 
setStyle
- 
getId
- 
getCssClasses
- 
setId
- 
setCssClasses
- 
setHiddenpublic void setHidden(boolean hidden)
- 
addClassAdds a CSS class to the element- Parameters:
- clazz- The CSS class to add to the element
 
- 
isHiddenpublic boolean isHidden()
- 
getCustomAttributes
- 
setCustomAttributes
 
-