Class SimpleListGroup
java.lang.Object
org.patternfly.component.SubComponent<HTMLElement, SimpleListGroup>
org.patternfly.component.list.SimpleListGroup
- All Implemented Interfaces:
Iterable<SimpleListItem>,ElementAttributeMethods<HTMLElement, SimpleListGroup>,ElementClassListMethods<HTMLElement, SimpleListGroup>,ElementConsumerMethods<HTMLElement, SimpleListGroup>,ElementContainerDelegate<HTMLElement, SimpleListGroup>,ElementContainerMethods<HTMLElement, SimpleListGroup>,ElementEventMethods<HTMLElement, SimpleListGroup>,ElementIdMethods<HTMLElement, SimpleListGroup>,ElementQueryMethods<HTMLElement>,ElementTextDelegate<HTMLElement, SimpleListGroup>,ElementTextMethods<HTMLElement, SimpleListGroup>,HTMLElementAttributeMethods<HTMLElement, SimpleListGroup>,HTMLElementDataMethods<HTMLElement, SimpleListGroup>,HTMLElementStyleMethods<HTMLElement, SimpleListGroup>,HTMLElementVisibilityMethods<HTMLElement, SimpleListGroup>,IsElement<HTMLElement>,TypedBuilder<HTMLElement, SimpleListGroup>,HasItems<HTMLElement, SimpleListGroup, SimpleListItem>,Ordered<HTMLElement, SimpleListGroup, SimpleListItem>
public class SimpleListGroup
extends SubComponent<HTMLElement, SimpleListGroup>
implements ElementContainerDelegate<HTMLElement, SimpleListGroup>, ElementTextDelegate<HTMLElement, SimpleListGroup>, Ordered<HTMLElement, SimpleListGroup, SimpleListItem>
-
Field Summary
FieldsFields inherited from interface org.patternfly.component.Ordered
DATA_ORDER -
Method Summary
Modifier and TypeMethodDescriptionadd(SimpleListItem item) voidclear()Retrieves the comparator used for ordering elements in a component.booleanbooleanisEmpty()iterator()onAdd(BiConsumer<SimpleListGroup, SimpleListItem> onAdd) onRemove(BiConsumer<SimpleListGroup, SimpleListItem> onRemove) ordered(Comparator<SimpleListItem> comparator) Orders the elements contained in the component using the specified comparator.voidremoveItem(String identifier) static SimpleListGroupsimpleListGroup(String text) intsize()that()Methods inherited from class org.patternfly.component.SubComponent
element, registerSubComponentMethods 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.ElementContainerDelegate
add, add, addMethods inherited from interface org.jboss.elemento.ElementContainerMethods
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.ElementTextDelegate
text, textMethods 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
-
Field Details
-
SUB_COMPONENT_NAME
- See Also:
-
-
Method Details
-
simpleListGroup
-
containerDelegate
- Specified by:
containerDelegatein interfaceElementContainerDelegate<HTMLElement, SimpleListGroup>
-
textDelegate
- Specified by:
textDelegatein interfaceElementTextDelegate<HTMLElement, SimpleListGroup>
-
add
- Specified by:
addin interfaceHasItems<HTMLElement, SimpleListGroup, 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, SimpleListGroup, 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, SimpleListGroup>
-
onAdd
- Specified by:
onAddin interfaceHasItems<HTMLElement, SimpleListGroup, SimpleListItem>
-
onRemove
- Specified by:
onRemovein interfaceHasItems<HTMLElement, SimpleListGroup, SimpleListItem>
-
comparator
Description copied from interface:OrderedRetrieves the comparator used for ordering elements in a component.- Specified by:
comparatorin interfaceOrdered<HTMLElement, SimpleListGroup, SimpleListItem>- Returns:
- the comparator that determines the order of elements
-
iterator
- Specified by:
iteratorin interfaceIterable<SimpleListItem>
-
size
public int size()- Specified by:
sizein interfaceHasItems<HTMLElement, SimpleListGroup, SimpleListItem>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceHasItems<HTMLElement, SimpleListGroup, SimpleListItem>
-
contains
- Specified by:
containsin interfaceHasItems<HTMLElement, SimpleListGroup, SimpleListItem>
-
item
- Specified by:
itemin interfaceHasItems<HTMLElement, SimpleListGroup, SimpleListItem>
-
removeItem
- Specified by:
removeItemin interfaceHasItems<HTMLElement, SimpleListGroup, SimpleListItem>
-
clear
public void clear()- Specified by:
clearin interfaceHasItems<HTMLElement, SimpleListGroup, SimpleListItem>
-