Class Navigation
java.lang.Object
org.patternfly.component.BaseComponent<elemental2.dom.HTMLElement,Navigation>
org.patternfly.component.navigation.Navigation
- All Implemented Interfaces:
Iterable<NavigationItem>,Attachable,Container<elemental2.dom.HTMLElement,,Navigation> Finder<elemental2.dom.HTMLElement>,HasElement<elemental2.dom.HTMLElement,,Navigation> HasHTMLElement<elemental2.dom.HTMLElement,,Navigation> IsElement<elemental2.dom.HTMLElement>,TypedBuilder<elemental2.dom.HTMLElement,,Navigation> Component,HasItems<elemental2.dom.HTMLElement,Navigation, NavigationItem>
public class Navigation
extends BaseComponent<elemental2.dom.HTMLElement,Navigation>
implements HasItems<elemental2.dom.HTMLElement,Navigation,NavigationItem>, Attachable
A navigation organizes an application's structure and content, making it easy to find information and accomplish tasks.
Navigation communicates relationships, context, and actions a user can take within an application.
-
Method Summary
Modifier and TypeMethodDescriptionadd(ExpandableNavigationGroup group) add(NavigationGroup group) add(NavigationItem item) addGroup(NavigationGroup group) addItem(NavigationItem item) <T> NavigationaddItems(Iterable<T> items, Function<T, NavigationItem> display) ariaScrollBackLabel(String label) Aria-label for the back scroll buttonariaScrollForwardLabel(String label) Aria-label for the forward scroll buttonvoidattach(elemental2.dom.MutationRecord mutationRecord) voidclear()booleanvoiddetach(elemental2.dom.MutationRecord mutationRecord) insertGroupAfter(ExpandableNavigationGroup group, String afterIdentifier) insertGroupAfter(NavigationGroup group, String afterIdentifier) insertGroupBefore(ExpandableNavigationGroup group, String beforeIdentifier) insertGroupBefore(NavigationGroup group, String beforeIdentifier) insertItemAfter(NavigationItem item, String afterIdentifier) insertItemBefore(NavigationItem item, String beforeIdentifier) booleanisEmpty()iterator()static Navigationnavigation(NavigationType type) onSelect(SelectHandler<NavigationItem> selectHandler) onToggle(ToggleHandler<ExpandableNavigationGroup> toggleHandler) voidvoidvoidselect(NavigationItem item) voidselect(NavigationItem item, boolean fireEvent) intsize()that()theme(Brightness theme) Methods inherited from class org.patternfly.component.BaseComponent
componentType, elementMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.elemento.Container
add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface org.jboss.elemento.HasElement
add, apply, aria, aria, aria, attr, attr, attr, classList, classList, css, id, innerHtml, on, on, on, run, textContent, textNode, toggle, toggle, toggle, uniqueIdMethods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, style, style, style, style, style, titleMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
attach
public void attach(elemental2.dom.MutationRecord mutationRecord) - Specified by:
attachin interfaceAttachable
-
detach
public void detach(elemental2.dom.MutationRecord mutationRecord) - Specified by:
detachin interfaceAttachable
-
addItems
- Specified by:
addItemsin interfaceHasItems<elemental2.dom.HTMLElement,Navigation, NavigationItem>
-
addDivider
-
add
-
theme
-
that
- Specified by:
thatin interfaceTypedBuilder<elemental2.dom.HTMLElement,Navigation>
-
ariaScrollBackLabel
Aria-label for the back scroll button -
ariaScrollForwardLabel
Aria-label for the forward scroll button -
onSelect
-
onToggle
-
select
-
select
-
iterator
- Specified by:
iteratorin interfaceIterable<NavigationItem>
-
size
public int size()- Specified by:
sizein interfaceHasItems<elemental2.dom.HTMLElement,Navigation, NavigationItem>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceHasItems<elemental2.dom.HTMLElement,Navigation, NavigationItem>
-
contains
- Specified by:
containsin interfaceHasItems<elemental2.dom.HTMLElement,Navigation, NavigationItem>
-
item
- Specified by:
itemin interfaceHasItems<elemental2.dom.HTMLElement,Navigation, NavigationItem>
-
clear
public void clear()- Specified by:
clearin interfaceHasItems<elemental2.dom.HTMLElement,Navigation, NavigationItem>