Package org.patternfly.component.list
Class SimpleList
java.lang.Object
org.patternfly.component.BaseComponent<HTMLElement,SimpleList>
org.patternfly.component.list.SimpleList
- All Implemented Interfaces:
Iterable<SimpleListItem>,Container<HTMLElement,,SimpleList> Finder<HTMLElement>,HasElement<HTMLElement,,SimpleList> HasHTMLElement<HTMLElement,,SimpleList> IsElement<HTMLElement>,TypedBuilder<HTMLElement,,SimpleList> Component,HasItems<HTMLElement,SimpleList, SimpleListItem>
public class SimpleList
extends BaseComponent<HTMLElement,SimpleList>
implements HasItems<HTMLElement,SimpleList,SimpleListItem>
A simple list provides a list of selectable items that can be shown within a page. Each item is described by a text label.
The list may be divided into logical sections by introducing group headers.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionadd(SimpleListGroup group) add(SimpleListItem item) addGroup(SimpleListGroup group) voidclear()booleanisEmpty()iterator()onSelect(SelectHandler<SimpleListItem> selectHandler) voidvoidvoidvoidselect(SimpleListItem item) voidselect(SimpleListItem item, boolean selected) voidselect(SimpleListItem item, boolean selected, boolean fireEvent) static SimpleListintsize()that()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
-
simpleList
-
addGroup
-
add
-
add
- Specified by:
addin interfaceHasItems<HTMLElement,SimpleList, SimpleListItem>
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,SimpleList>
-
ariaLabel
-
onSelect
-
select
-
select
-
select
-
select
-
select
-
select
-
iterator
- Specified by:
iteratorin interfaceIterable<SimpleListItem>
-
size
public int size()- Specified by:
sizein interfaceHasItems<HTMLElement,SimpleList, SimpleListItem>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceHasItems<HTMLElement,SimpleList, SimpleListItem>
-
clear
public void clear()- Specified by:
clearin interfaceHasItems<HTMLElement,SimpleList, SimpleListItem>
-