Package org.patternfly.component.list
Class SimpleList
- java.lang.Object
-
- org.patternfly.component.BaseComponent<HTMLElement,SimpleList>
-
- org.patternfly.component.list.SimpleList
-
- All Implemented Interfaces:
Container<HTMLElement,SimpleList>,Finder<HTMLElement>,HasElement<HTMLElement,SimpleList>,HasHTMLElement<HTMLElement,SimpleList>,IsElement<HTMLElement>,TypedBuilder<HTMLElement,SimpleList>,Component
public class SimpleList extends BaseComponent<HTMLElement,SimpleList>
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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleListadd(SimpleListGroup group)SimpleListadd(SimpleListItem item)SimpleListaddGroup(SimpleListGroup group)SimpleListaddItem(SimpleListItem item)<T> SimpleListaddItems(Iterable<T> items, Function<T,SimpleListItem> display)SimpleListariaLabel(String label)SimpleListonSelect(SelectHandler<SimpleListItem> selectHandler)voidselect(String itemId)voidselect(String itemId, boolean fireEvent)voidselect(SimpleListItem item)voidselect(SimpleListItem item, boolean fireEvent)voidselect(SimpleListItem item, boolean selected, boolean fireEvent)static SimpleListsimpleList()SimpleListthat()-
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
-
-
-
-
Method Detail
-
simpleList
public static SimpleList simpleList()
-
addGroup
public SimpleList addGroup(SimpleListGroup group)
-
add
public SimpleList add(SimpleListGroup group)
-
addItems
public <T> SimpleList addItems(Iterable<T> items, Function<T,SimpleListItem> display)
-
addItem
public SimpleList addItem(SimpleListItem item)
-
add
public SimpleList add(SimpleListItem item)
-
that
public SimpleList that()
-
ariaLabel
public SimpleList ariaLabel(String label)
-
onSelect
public SimpleList onSelect(SelectHandler<SimpleListItem> selectHandler)
-
select
public void select(String itemId)
-
select
public void select(String itemId, boolean fireEvent)
-
select
public void select(SimpleListItem item)
-
select
public void select(SimpleListItem item, boolean fireEvent)
-
select
public void select(SimpleListItem item, boolean selected, boolean fireEvent)
-
-