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) void
clear()
boolean
isEmpty()
iterator()
onSelect
(SelectHandler<SimpleListItem> selectHandler) void
void
void
void
select
(SimpleListItem item) void
select
(SimpleListItem item, boolean selected) void
select
(SimpleListItem item, boolean selected, boolean fireEvent) static SimpleList
int
size()
that()
Methods inherited from class org.patternfly.component.BaseComponent
componentType, element
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jboss.elemento.Container
add, add, add, addAll, addAll, addAll, addAll, addAll, addAll
Methods 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, uniqueId
Methods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, style, style, style, style, style, title
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
simpleList
-
addGroup
-
add
-
add
- Specified by:
add
in interfaceHasItems<HTMLElement,
SimpleList, SimpleListItem>
-
that
- Specified by:
that
in interfaceTypedBuilder<HTMLElement,
SimpleList>
-
ariaLabel
-
onSelect
-
select
-
select
-
select
-
select
-
select
-
select
-
iterator
- Specified by:
iterator
in interfaceIterable<SimpleListItem>
-
size
public int size()- Specified by:
size
in interfaceHasItems<HTMLElement,
SimpleList, SimpleListItem>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceHasItems<HTMLElement,
SimpleList, SimpleListItem>
-
clear
public void clear()- Specified by:
clear
in interfaceHasItems<HTMLElement,
SimpleList, SimpleListItem>
-