Class AccordionItem
java.lang.Object
org.patternfly.component.SubComponent<HTMLElement, AccordionItem>
org.patternfly.component.accordion.AccordionItem
- All Implemented Interfaces:
ElementAttributeMethods<HTMLElement, AccordionItem>, ElementClassListMethods<HTMLElement, AccordionItem>, ElementConsumerMethods<HTMLElement, AccordionItem>, ElementContainerDelegate<HTMLElement, AccordionItem>, ElementContainerMethods<HTMLElement, AccordionItem>, ElementEventMethods<HTMLElement, AccordionItem>, ElementIdMethods<HTMLElement, AccordionItem>, ElementQueryMethods<HTMLElement>, ElementTextDelegate<HTMLElement, AccordionItem>, ElementTextMethods<HTMLElement, AccordionItem>, HTMLElementAttributeMethods<HTMLElement, AccordionItem>, HTMLElementDataMethods<HTMLElement, AccordionItem>, HTMLElementStyleMethods<HTMLElement, AccordionItem>, HTMLElementVisibilityMethods<HTMLElement, AccordionItem>, IsElement<HTMLElement>, TypedBuilder<HTMLElement, AccordionItem>, HasIdentifier<HTMLElement, AccordionItem>, ComponentContext<HTMLElement, AccordionItem>
public class AccordionItem
extends SubComponent<HTMLElement, AccordionItem>
implements ComponentContext<HTMLElement, AccordionItem>, ElementContainerDelegate<HTMLElement, AccordionItem>, ElementTextDelegate<HTMLElement, AccordionItem>, HasIdentifier<HTMLElement, AccordionItem>
Represents an item within an accordion component.
All content added to this item is delegated to a default AccordionItemBody. If you want to have multiple bodies,
please use addBody(AccordionItemBody) and add the content to the specific AccordionItemBody instead of this
item.
Text methods are delegated to the accordion toggle.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic AccordionItemaccordionItem(String identifier) static AccordionItemaccordionItem(String identifier, String text) add(AccordionItemBody body) addBody(AccordionItemBody body) Delegates to the default body.expanded()<T> TRetrieves the value associated with the given key from the ComponentContext.booleanDetermines whether a value is stored with the specified key.Retrieves the identifier associated with this component.<T> AccordionItemStores a value associated with a key.Delegates to the text element of the accordion toggle.that()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 ElementContainerDelegate
add, add, addMethods inherited from interface ElementContainerMethods
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 ElementTextDelegate
text, textMethods 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
-
accordionItem
-
accordionItem
-
containerDelegate
Delegates to the default body.- Specified by:
containerDelegatein interfaceElementContainerDelegate<HTMLElement, AccordionItem>
-
textDelegate
Delegates to the text element of the accordion toggle.- Specified by:
textDelegatein interfaceElementTextDelegate<HTMLElement, AccordionItem>
-
addBody
-
add
-
expanded
-
store
Description copied from interface:ComponentContextStores a value associated with a key.- Specified by:
storein interfaceComponentContext<HTMLElement, AccordionItem>- 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<HTMLElement, AccordionItem>
-
identifier
Description copied from interface:HasIdentifierRetrieves the identifier associated with this component.- Specified by:
identifierin interfaceHasIdentifier<HTMLElement, AccordionItem>- Returns:
- the identifier of the component
-
has
Description copied from interface:ComponentContextDetermines whether a value is stored with the specified key.- Specified by:
hasin interfaceComponentContext<HTMLElement, AccordionItem>- 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<HTMLElement, AccordionItem>- 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
-