Class SimpleList
java.lang.Object
org.patternfly.component.BaseComponent<HTMLElement, SimpleList>
org.patternfly.component.list.SimpleList
- All Implemented Interfaces:
Iterable<SimpleListItem>,ElementAttributeMethods<HTMLElement, SimpleList>,ElementClassListMethods<HTMLElement, SimpleList>,ElementConsumerMethods<HTMLElement, SimpleList>,ElementContainerMethods<HTMLElement, SimpleList>,ElementEventMethods<HTMLElement, SimpleList>,ElementIdMethods<HTMLElement, SimpleList>,ElementQueryMethods<HTMLElement>,HTMLElementAttributeMethods<HTMLElement, SimpleList>,HTMLElementDataMethods<HTMLElement, SimpleList>,HTMLElementStyleMethods<HTMLElement, SimpleList>,HTMLElementVisibilityMethods<HTMLElement, SimpleList>,IsElement<HTMLElement>,TypedBuilder<HTMLElement, SimpleList>,Component,HasItems<HTMLElement, SimpleList, SimpleListItem>,Ordered<HTMLElement, SimpleList, SimpleListItem>
public class SimpleList
extends BaseComponent<HTMLElement, SimpleList>
implements Ordered<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:
-
Field Summary
Fields inherited from interface org.patternfly.component.Ordered
DATA_ORDER -
Method Summary
Modifier and TypeMethodDescriptionadd(SimpleListGroup group) add(SimpleListItem item) addGroup(SimpleListGroup group) voidclear()Retrieves the comparator used for ordering elements in a component.booleanbooleanisEmpty()iterator()onAdd(BiConsumer<SimpleList, SimpleListItem> onAdd) onRemove(BiConsumer<SimpleList, SimpleListItem> onRemove) onSelect(SelectHandler<SimpleListItem> selectHandler) ordered(Comparator<SimpleListItem> comparator) Orders the elements contained in the component using the specified comparator.voidremoveItem(String identifier) 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, element, registerComponentMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.elemento.ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface org.jboss.elemento.ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface org.jboss.elemento.ElementConsumerMethods
apply, runMethods inherited from interface org.jboss.elemento.ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface org.jboss.elemento.ElementEventMethods
on, on, onMethods inherited from interface org.jboss.elemento.ElementIdMethods
id, uniqueIdMethods inherited from interface org.jboss.elemento.ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface org.jboss.elemento.HTMLElementAttributeMethods
titleMethods inherited from interface org.jboss.elemento.HTMLElementDataMethods
dataMethods inherited from interface org.jboss.elemento.HTMLElementStyleMethods
style, style, style, style, style, styleMethods inherited from interface org.jboss.elemento.HTMLElementVisibilityMethods
hiddenMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.patternfly.component.Ordered
addOrdered, defaultOrder, ordered
-
Method Details
-
simpleList
-
addGroup
-
add
-
add
- Specified by:
addin interfaceHasItems<HTMLElement, SimpleList, SimpleListItem>
-
ordered
Description copied from interface:OrderedOrders the elements contained in the component using the specified comparator. The comparator determines the order in which the elements are arranged.- Specified by:
orderedin interfaceOrdered<HTMLElement, SimpleList, SimpleListItem>- Parameters:
comparator- the comparator used to define the ordering of the elements- Returns:
- the builder instance with the elements ordered
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement, SimpleList>
-
ariaLabel
-
onAdd
- Specified by:
onAddin interfaceHasItems<HTMLElement, SimpleList, SimpleListItem>
-
onRemove
- Specified by:
onRemovein interfaceHasItems<HTMLElement, SimpleList, SimpleListItem>
-
onSelect
-
comparator
Description copied from interface:OrderedRetrieves the comparator used for ordering elements in a component.- Specified by:
comparatorin interfaceOrdered<HTMLElement, SimpleList, SimpleListItem>- Returns:
- the comparator that determines the order of elements
-
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>
-
contains
- Specified by:
containsin interfaceHasItems<HTMLElement, SimpleList, SimpleListItem>
-
item
- Specified by:
itemin interfaceHasItems<HTMLElement, SimpleList, SimpleListItem>
-
removeItem
- Specified by:
removeItemin interfaceHasItems<HTMLElement, SimpleList, SimpleListItem>
-
clear
public void clear()- Specified by:
clearin interfaceHasItems<HTMLElement, SimpleList, SimpleListItem>
-