Class DataListItem
java.lang.Object
org.patternfly.component.SubComponent<HTMLLIElement, DataListItem>
org.patternfly.component.list.DataListItem
- All Implemented Interfaces:
ElementAttributeMethods<HTMLLIElement, DataListItem>, ElementClassListMethods<HTMLLIElement, DataListItem>, ElementConsumerMethods<HTMLLIElement, DataListItem>, ElementContainerMethods<HTMLLIElement, DataListItem>, ElementEventMethods<HTMLLIElement, DataListItem>, ElementIdMethods<HTMLLIElement, DataListItem>, ElementQueryMethods<HTMLLIElement>, HTMLElementAttributeMethods<HTMLLIElement, DataListItem>, HTMLElementDataMethods<HTMLLIElement, DataListItem>, HTMLElementStyleMethods<HTMLLIElement, DataListItem>, HTMLElementVisibilityMethods<HTMLLIElement, DataListItem>, IsElement<HTMLLIElement>, TypedBuilder<HTMLLIElement, DataListItem>, Expandable<HTMLLIElement, DataListItem>, HasIdentifier<HTMLLIElement, DataListItem>, ComponentContext<HTMLLIElement, DataListItem>
public class DataListItem
extends SubComponent<HTMLLIElement, DataListItem>
implements ComponentContext<HTMLLIElement, DataListItem>, Expandable<HTMLLIElement, DataListItem>, HasIdentifier<HTMLLIElement, DataListItem>
-
Field Summary
Fields -
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> TbooleanRetrieves the identifier associated with this component.<T> DataListItemthat()Methods inherited from class SubComponent
element, registerSubComponentMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ComponentContext
get, getMethods inherited from interface ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface ElementConsumerMethods
apply, runMethods inherited from interface ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface ElementEventMethods
on, on, onMethods inherited from interface ElementIdMethods
id, uniqueIdMethods inherited from interface ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface HTMLElementAttributeMethods
titleMethods inherited from interface HTMLElementDataMethods
data, dataMethods inherited from interface HTMLElementVisibilityMethods
hidden
-
Field Details
-
SUB_COMPONENT_NAME
- See Also:
-
-
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
Description copied from interface:HasIdentifierRetrieves the identifier associated with this component.- Specified by:
identifierin interfaceHasIdentifier<HTMLLIElement, DataListItem>- Returns:
- the identifier of the component
-
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>
-