You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.component.accordion.

Class AccordionPanel

    • 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​(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,
                              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​(Component summary,
                              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.