Class AccordionPanel

  • All Implemented Interfaces:
    com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasTheme, com.vaadin.flow.component.shared.HasTooltip, Serializable

    @Tag("vaadin-accordion-panel")
    @NpmPackage(value="@vaadin/polymer-legacy-adapter",version="23.6.2") @NpmPackage(value="@vaadin/accordion",version="23.6.2") @NpmPackage(value="@vaadin/vaadin-accordion",version="23.6.2")
    @JsModule("@vaadin/polymer-legacy-adapter/style-modules.js") @JsModule("@vaadin/accordion/src/vaadin-accordion-panel.js")
    public class AccordionPanel
    extends Details
    An accordion panel which could be opened or closed.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      AccordionPanel()
      Creates an empty panel.
      AccordionPanel​(com.vaadin.flow.component.Component summary)
      Initializes a new panel using the provided summary.
      AccordionPanel​(com.vaadin.flow.component.Component summary, com.vaadin.flow.component.Component content)
      Creates a panel with the provided summary component and content.
      AccordionPanel​(com.vaadin.flow.component.Component summary, com.vaadin.flow.component.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, com.vaadin.flow.component.Component content)
      Creates a panel with the provided summary text and content.
      AccordionPanel​(String summary, com.vaadin.flow.component.Component... components)
      Initializes a new panel using the provided summary and content components.
    • Method Summary

      • Methods 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, scrollIntoView, set, setElement, setId, setVisible
      • 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
      • Methods inherited from interface com.vaadin.flow.component.shared.HasTooltip

        getTooltip, setTooltipText
    • Constructor Detail

      • AccordionPanel

        public AccordionPanel()
        Creates an empty panel.
      • AccordionPanel

        public AccordionPanel​(String summary)
        Initializes a new panel using the provided summary.
        Parameters:
        summary - the summary component to set.
        See Also:
        Details.setSummaryText(String)
      • AccordionPanel

        public AccordionPanel​(com.vaadin.flow.component.Component summary)
        Initializes a new panel using the provided summary.
        Parameters:
        summary - the summary component to set.
        See Also:
        Details.setSummary(Component)
      • AccordionPanel

        public AccordionPanel​(String summary,
                              com.vaadin.flow.component.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.
      • AccordionPanel

        public AccordionPanel​(com.vaadin.flow.component.Component summary,
                              com.vaadin.flow.component.Component content)
        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

        public AccordionPanel​(String summary,
                              com.vaadin.flow.component.Component... components)
        Initializes a new panel using the provided summary and content components.
        Parameters:
        summary - the summary text to set.
        components - the content components to set.
        See Also:
        Details.setSummaryText(String), Details.addContent(Component...)
      • AccordionPanel

        public AccordionPanel​(com.vaadin.flow.component.Component summary,
                              com.vaadin.flow.component.Component... components)
        Initializes a new panel using the provided summary and content components.
        Parameters:
        summary - the summary component to set.
        components - the content components to set.
        See Also:
        Details.setSummary(Component), Details.addContent(Component...)