Class AccordionItem
- java.lang.Object
-
- org.patternfly.component.SubComponent<E,B>
-
- org.patternfly.component.accordion.AccordionItem
-
- All Implemented Interfaces:
Container<HTMLDivElement,AccordionItem>,Finder<HTMLDivElement>,HasElement<HTMLDivElement,AccordionItem>,HasHTMLElement<HTMLDivElement,AccordionItem>,IsElement<HTMLDivElement>,TypedBuilder<HTMLDivElement,AccordionItem>,WithText<HTMLDivElement,AccordionItem>,ElementDelegate<HTMLDivElement,AccordionItem>
public class AccordionItem extends SubComponent<E,B> implements ElementDelegate<HTMLDivElement,AccordionItem>, WithText<HTMLDivElement,AccordionItem>
Represents an item within an accordion component. All content added to this item is delegated to a defaultAccordionItemBody. If you want to have multiple bodies, please useaddBody(AccordionItemBody)and add the content to the specificAccordionItemBodyinstead of this item.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccordionItemaccordionItem(String id)static AccordionItemaccordionItem(String id, String text)AccordionItemadd(AccordionItemBody body)AccordionItemaddBody(AccordionItemBody body)HTMLElementdelegate()AccordionItemexpanded()AccordionItemtext(String text)AccordionItemthat()-
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.jboss.elemento.Container
add, add, addAll, addAll, addAll, addAll, addAll, addAll
-
Methods inherited from interface org.patternfly.core.ElementDelegate
add, add, innerHtml, textContent, textNode
-
Methods inherited from interface org.jboss.elemento.HasElement
apply, aria, aria, aria, attr, attr, attr, classList, classList, css, id, id, on, run, toggle, toggle, toggle, uniqueId
-
-
-
-
Method Detail
-
accordionItem
public static AccordionItem accordionItem(String id)
-
accordionItem
public static AccordionItem accordionItem(String id, String text)
-
delegate
public HTMLElement delegate()
- Specified by:
delegatein interfaceElementDelegate<HTMLDivElement,AccordionItem>
-
addBody
public AccordionItem addBody(AccordionItemBody body)
-
add
public AccordionItem add(AccordionItemBody body)
-
expanded
public AccordionItem expanded()
-
text
public AccordionItem text(String text)
- Specified by:
textin interfaceWithText<HTMLDivElement,AccordionItem>
-
that
public AccordionItem that()
- Specified by:
thatin interfaceTypedBuilder<HTMLDivElement,AccordionItem>
-
-