Class DataList
java.lang.Object
org.patternfly.component.BaseComponent<HTMLUListElement, DataList>
org.patternfly.component.list.DataList
- All Implemented Interfaces:
Iterable<DataListItem>,ElementAttributeMethods<HTMLUListElement, DataList>,ElementClassListMethods<HTMLUListElement, DataList>,ElementConsumerMethods<HTMLUListElement, DataList>,ElementContainerMethods<HTMLUListElement, DataList>,ElementEventMethods<HTMLUListElement, DataList>,ElementIdMethods<HTMLUListElement, DataList>,ElementQueryMethods<HTMLUListElement>,HTMLElementAttributeMethods<HTMLUListElement, DataList>,HTMLElementDataMethods<HTMLUListElement, DataList>,HTMLElementStyleMethods<HTMLUListElement, DataList>,HTMLElementVisibilityMethods<HTMLUListElement, DataList>,IsElement<HTMLUListElement>,TypedBuilder<HTMLUListElement, DataList>,Component,HasItems<HTMLUListElement, DataList, DataListItem>,Ordered<HTMLUListElement, DataList, DataListItem>,Modifiers.Compact<HTMLUListElement, DataList>
public class DataList
extends BaseComponent<HTMLUListElement, DataList>
implements Modifiers.Compact<HTMLUListElement, DataList>, Ordered<HTMLUListElement, DataList, DataListItem>
A data list is used to display large data sets when you need a flexible layout or need to include interactive content like
charts.
- See Also:
-
Field Summary
Fields inherited from interface org.patternfly.component.Ordered
DATA_ORDER -
Method Summary
Modifier and TypeMethodDescriptionadd(DataListItem item) voidclear()Retrieves the comparator used for ordering elements in a component.booleanstatic DataListdataList()gridBreakpoint(GridBreakpoint breakpoint) Specifies the grid breakpointsbooleanisEmpty()iterator()onAdd(BiConsumer<DataList, DataListItem> onAdd) onRemove(BiConsumer<DataList, DataListItem> onRemove) ordered(Comparator<DataListItem> comparator) Orders the elements contained in the component using the specified comparator.voidremoveItem(String identifier) intsize()that()Determines which wrapping modifier to apply to the data listMethods 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.style.Modifiers.Compact
compact, compactMethods inherited from interface org.patternfly.component.Ordered
addOrdered, defaultOrder, ordered
-
Method Details
-
dataList
-
add
- Specified by:
addin interfaceHasItems<HTMLUListElement, DataList, DataListItem>
-
gridBreakpoint
Specifies the grid breakpoints -
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<HTMLUListElement, DataList, DataListItem>- Parameters:
comparator- the comparator used to define the ordering of the elements- Returns:
- the builder instance with the elements ordered
-
wrap
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLUListElement, DataList>
-
onAdd
- Specified by:
onAddin interfaceHasItems<HTMLUListElement, DataList, DataListItem>
-
onRemove
- Specified by:
onRemovein interfaceHasItems<HTMLUListElement, DataList, DataListItem>
-
comparator
Description copied from interface:OrderedRetrieves the comparator used for ordering elements in a component.- Specified by:
comparatorin interfaceOrdered<HTMLUListElement, DataList, DataListItem>- Returns:
- the comparator that determines the order of elements
-
iterator
- Specified by:
iteratorin interfaceIterable<DataListItem>
-
size
public int size()- Specified by:
sizein interfaceHasItems<HTMLUListElement, DataList, DataListItem>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceHasItems<HTMLUListElement, DataList, DataListItem>
-
contains
- Specified by:
containsin interfaceHasItems<HTMLUListElement, DataList, DataListItem>
-
item
- Specified by:
itemin interfaceHasItems<HTMLUListElement, DataList, DataListItem>
-
removeItem
- Specified by:
removeItemin interfaceHasItems<HTMLUListElement, DataList, DataListItem>
-
clear
public void clear()- Specified by:
clearin interfaceHasItems<HTMLUListElement, DataList, DataListItem>
-