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
,HasElement
,HasEnabled
,HasSize
,HasStyle
,HasTheme
,Serializable
@Tag("vaadin-accordion-panel") @NpmPackage(value="@vaadin/polymer-legacy-adapter", version="23.0.5") @JsModule("@vaadin/polymer-legacy-adapter/style-modules.js") public class AccordionPanel extends Details
An accordion panel which could be opened or closed.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vaadin.flow.component.details.Details
Details.OpenedChangeEvent
-
-
Constructor Summary
Constructors Constructor Description AccordionPanel()
Creates an empty panel.AccordionPanel(Component summary, Component content)
Creates a panel with the provided summary component and content.AccordionPanel(String summary, Component content)
Creates a panel with the provided summary text and content.
-
Method Summary
-
Methods inherited from class com.vaadin.flow.component.details.Details
addContent, addOpenedChangeListener, addThemeVariants, getContent, getSummary, getSummaryText, isOpened, removeThemeVariants, setContent, setOpened, setSummary, setSummaryText
-
Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
-
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
-
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
-
Methods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabled
-
Methods 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, setWidthFull
-
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Methods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName
-
-
-
-
Constructor Detail
-
AccordionPanel
public AccordionPanel()
Creates an empty panel.
-
AccordionPanel
public AccordionPanel(String summary, Component content)
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.
-
-