Search
AccordionPane Class
Remarks See Also
 






Represents a single collapsible pane within an Accordion control.

Namespace: com.mindfusion.common
Package: com.mindfusion.common

 Syntax

Java  Copy Code

public class AccordionPane extends JPanel

 Remarks

The AccordionPane represents a single collapsible section within an Accordion control. It consists of a clickable header button (which displays a title, an optional icon, and an expansion arrow) and a content area that can be shown or hidden.

Setting Content

The content of a pane can be any standard UI component (including containers such as a JPanel and JScrollPane). It is initially defined when the pane is created via the Accordion's addPane method. If the UI needs to be updated dynamically, the content can be replaced at runtime using the setContent method, and the current content component can be retrieved using getContent.

Properties

  • Appearance: The visual identity of the pane's header is controlled via the Title and Icon properties.
  • Expansion State: The Expanded property controls whether the content area is visible. Modifying the expansion state automatically updates the arrow indicator in the header and triggers a layout recalculation in the parent Accordion. When expanded, the pane is allowed to stretch vertically to consume available space; when collapsed, its height is strictly limited to the height of its header.

 Inheritance Hierarchy

java.lang.Object
    java.awt.Component
        java.awt.Container
            javax.swing.JComponent
                javax.swing.JPanel
                    com.mindfusion.common.Accordion.AccordionPane

 See Also