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> TRetrieves the value associated with the given key from the ComponentContext.booleanDetermines whether a value is stored with the specified key.<T> DataListItemStores a value associated with a key.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.patternfly.core.ComponentContext
get, getMethods 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.patternfly.component.Expandable
collapse, expand, expanded, toggle, toggleMethods 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
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
Description copied from interface:ComponentContextStores a value associated with a key.- Specified by:
storein interfaceComponentContext<HTMLLIElement, DataListItem>- Type Parameters:
T- the type of the value being stored- Parameters:
key- the key associated with the valuevalue- the value to be stored
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLLIElement, DataListItem>
-
ariaToggleLabel
-
identifier
- Specified by:
identifierin interfaceHasIdentifier<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
Description copied from interface:ComponentContextDetermines whether a value is stored with the specified key.- Specified by:
hasin interfaceComponentContext<HTMLLIElement, DataListItem>- Parameters:
key- the key to check- Returns:
- true if a value is stored with the specified key, false otherwise
-
get
Description copied from interface:ComponentContextRetrieves the value associated with the given key from the ComponentContext.- Specified by:
getin interfaceComponentContext<HTMLLIElement, DataListItem>- Type Parameters:
T- the type of the value being retrieved- Parameters:
key- the key associated with the value- Returns:
- the value associated with the key, or null if no value is found
-