Class AccordionPanel
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.details.Details
com.vaadin.flow.component.accordion.AccordionPanel
- All Implemented Interfaces:
AttachNotifier,DetachNotifier,HasComponents,HasElement,HasEnabled,HasSize,HasStyle,HasTheme,HasThemeVariant<DetailsVariant>,HasTooltip,Serializable
@Tag("vaadin-accordion-panel")
@NpmPackage(value="@vaadin/accordion",
version="25.0.0-alpha19")
@JsModule("@vaadin/accordion/src/vaadin-accordion-panel.js")
public class AccordionPanel
extends Details
An accordion panel which could be opened or closed.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.flow.component.details.Details
Details.OpenedChangeEvent -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty panel.AccordionPanel(Component summary) Initializes a new panel using the provided summary.AccordionPanel(Component summary, Component content) Creates a panel with the provided summary component and content.AccordionPanel(Component summary, Component... components) Initializes a new panel using the provided summary and content components.AccordionPanel(String summary) Initializes a new panel using the provided summary.AccordionPanel(String summary, Component content) Creates a panel with the provided summary text and content.AccordionPanel(String summary, Component... components) Initializes a new panel using the provided summary and content components. -
Method Summary
Methods inherited from class com.vaadin.flow.component.details.Details
add, add, addComponentAtIndex, addOpenedChangeListener, getContent, getSummary, getSummaryText, isOpened, remove, removeAll, setOpened, setSummary, setSummaryTextMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasComponents
add, addComponentAsFirst, removeMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNameMethods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant
addThemeVariants, removeThemeVariants, setThemeVariant, setThemeVariants, setThemeVariantsMethods inherited from interface com.vaadin.flow.component.shared.HasTooltip
getTooltip, setTooltipText
-
Constructor Details
-
AccordionPanel
public AccordionPanel()Creates an empty panel. -
AccordionPanel
Initializes a new panel using the provided summary.- Parameters:
summary- the summary component to set.- See Also:
-
AccordionPanel
Initializes a new panel using the provided summary.- Parameters:
summary- the summary component to set.- See Also:
-
AccordionPanel
Creates a panel with the provided summary text and content.- Parameters:
summary- the summary. Null is treated like an empty string.content- the content. If null no content is added.
-
AccordionPanel
Creates a panel with the provided summary component and content.- Parameters:
summary- the summary. Null clears any existing summary.content- the content. If null no content is added.
-
AccordionPanel
Initializes a new panel using the provided summary and content components.- Parameters:
summary- the summary text to set.components- the content components to add.- See Also:
-
AccordionPanel
Initializes a new panel using the provided summary and content components.- Parameters:
summary- the summary component to set.components- the content components to add.- See Also:
-
-
Method Details
-
createSummaryContainer
Creates the summary container component.- Overrides:
createSummaryContainerin classDetails- Returns:
- the summary container
-