Package org.patternfly.component.list
Class DataListItem
java.lang.Object
org.patternfly.component.SubComponent<HTMLLIElement,DataListItem>
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<HTMLLIElement,DataListItem>
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> DataListItem
addCells
(Iterable<T> items, Function<T, DataListCell> display) addExpandableContent
(DataListExpandableContent expandableContent) ariaToggleLabel
(String label) void
collapse
(boolean fireEvent) static DataListItem
dataListItem
(String identifier) Creates a new data list item.void
expand
(boolean fireEvent) Make this data list item expandable.expandable
(ToggleHandler<DataListItem> toggleHandler) Make this data list item expandable and register aToggleHandler
.<T> T
boolean
<T> DataListItem
that()
Methods inherited from class org.patternfly.component.SubComponent
element
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.patternfly.core.ComponentContext
get, get
Methods inherited from interface org.jboss.elemento.Container
add, add, add, addAll, addAll, addAll, addAll, addAll, addAll
Methods inherited from interface org.patternfly.component.Expandable
collapse, expand, expanded, toggle, toggle
Methods 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 aDataListCell
with 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:
store
in interfaceComponentContext<HTMLLIElement,
DataListItem>
-
that
- Specified by:
that
in interfaceTypedBuilder<HTMLLIElement,
DataListItem>
-
ariaToggleLabel
-
identifier
- Specified by:
identifier
in interfaceWithIdentifier<HTMLLIElement,
DataListItem>
-
collapse
public void collapse(boolean fireEvent) - Specified by:
collapse
in interfaceExpandable<HTMLLIElement,
DataListItem>
-
expand
public void expand(boolean fireEvent) - Specified by:
expand
in interfaceExpandable<HTMLLIElement,
DataListItem>
-
has
- Specified by:
has
in interfaceComponentContext<HTMLLIElement,
DataListItem>
-
get
- Specified by:
get
in interfaceComponentContext<HTMLLIElement,
DataListItem>
-