Package org.patternfly.component.list
Class DataListItem
java.lang.Object
org.patternfly.component.SubComponent<E,B>
org.patternfly.component.list.DataListItem
- All Implemented Interfaces:
Container<HTMLLIElement,,DataListItem> Finder<HTMLLIElement>,HasElement<HTMLLIElement,,DataListItem> HasHTMLElement<HTMLLIElement,,DataListItem> IsElement<HTMLLIElement>,TypedBuilder<HTMLLIElement,,DataListItem> Expandable<HTMLLIElement,,DataListItem> WithIdentifier<HTMLLIElement,,DataListItem> ComponentContext<HTMLLIElement,DataListItem>
public class DataListItem
extends SubComponent<E,B>
implements ComponentContext<HTMLLIElement,DataListItem>, Expandable<HTMLLIElement,DataListItem>, WithIdentifier<HTMLLIElement,DataListItem>
-
Method Summary
Modifier and TypeMethodDescriptionadd(DataListAction action) add(DataListCell cell) add(DataListExpandableContent expandableContent) addAction(DataListAction action) addCell(DataListCell cell) <T> DataListItemaddCells(Iterable<T> items, Function<T, DataListCell> display) addExpandableContent(DataListExpandableContent expandableContent) ariaToggleLabel(String label) voidcollapse(boolean fireEvent) static DataListItemdataListItem(String identifier) Creates a new data list item.voidexpand(boolean fireEvent) Make this data list item expandable.expandable(ToggleHandler<DataListItem> toggleHandler) Make this data list item expandable and register aToggleHandler.<T> Tboolean<T> DataListItemthat()Methods inherited from class org.patternfly.component.SubComponent
elementMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.patternfly.core.ComponentContext
get, getMethods inherited from interface org.jboss.elemento.Container
add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface org.patternfly.component.Expandable
collapse, expand, expanded, toggle, toggleMethods 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
-
Method Details
-
dataListItem
Creates a new data list item. The identifier is not used directly as an element ID but used to wire ARIA-related attributes. It is expected that you add aDataListCellwith an element ID matching the identifier. -
addCells
-
addCell
-
add
-
addAction
-
add
-
addExpandableContent
-
add
-
expandable
Make this data list item expandable. Please make sure to add expandable content usingaddExpandableContent(DataListExpandableContent). -
expandable
Make this data list item expandable and register aToggleHandler. Please make sure to add expandable content usingaddExpandableContent(DataListExpandableContent). -
store
- Specified by:
storein interfaceComponentContext<HTMLLIElement,DataListItem>
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLLIElement,DataListItem>
-
ariaToggleLabel
-
identifier
- Specified by:
identifierin interfaceWithIdentifier<HTMLLIElement,DataListItem>
-
collapse
public void collapse(boolean fireEvent) - Specified by:
collapsein interfaceExpandable<HTMLLIElement,DataListItem>
-
expand
public void expand(boolean fireEvent) - Specified by:
expandin interfaceExpandable<HTMLLIElement,DataListItem>
-
has
- Specified by:
hasin interfaceComponentContext<HTMLLIElement,DataListItem>
-
get
- Specified by:
getin interfaceComponentContext<HTMLLIElement,DataListItem>
-