Class Nav
java.lang.Object
io.john.amiscaray.stir.domain.elements.CacheableElement
io.john.amiscaray.stir.domain.elements.AbstractUIElement
io.john.amiscaray.stir.domain.elements.Nav
public class Nav extends AbstractUIElement
A pojo representing a nav element
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Nav.NavBuilder
Nested classes/interfaces inherited from class io.john.amiscaray.stir.domain.elements.CacheableElement
CacheableElement.CacheStatus
-
Field Summary
Fields Modifier and Type Field Description private NavLinkList
list
The inner list ofnav links
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
addNavLink(NavLink link)
Adds a navlink to the navstatic Nav.NavBuilder
builder()
static Nav
fromLabelHrefMap(LinkedHashMap<String,String> labelHref)
Constructs a Nav from a map where the keys are the inner text of a nav link and the values are the hrefsMethods 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
-
list
The inner list ofnav links
-
-
Constructor Details
-
Method Details
-
fromLabelHrefMap
Constructs a Nav from a map where the keys are the inner text of a nav link and the values are the hrefs- Parameters:
labelHref
- The map mentioned above- Returns:
- A new Nav instance
-
builder
-