@DomEvent(value="opened-changed") public static class Accordion.OpenedChangeEvent extends ComponentEvent<Accordion>
source| Constructor and Description |
|---|
OpenedChangeEvent(Accordion source,
boolean fromClient,
Integer index)
Creates a new event using the given source and indicator whether the
event originated from the client side or the server side.
|
| Modifier and Type | Method and Description |
|---|---|
OptionalInt |
getOpenedIndex()
Gets the index of the opened panel or null if the accordion is
closed.
|
Optional<AccordionPanel> |
getOpenedPanel()
Gets the opened panel.
|
getSource, isFromClient, unregisterListenertoStringpublic OpenedChangeEvent(Accordion source, boolean fromClient, @EventData(value="event.detail.value") Integer index)
source - the source componentfromClient - true if the event originated from the clientindex - the index of the opened panel or null if the accordion is
closedpublic OptionalInt getOpenedIndex()
public Optional<AccordionPanel> getOpenedPanel()
Copyright © 2025. All rights reserved.