Class CollapsibleGroup

  • All Implemented Interfaces:
    Serializable

    public class CollapsibleGroup
    extends Object
    implements Serializable

    This class is used to group multiple WCollapsible or [@link WTabSet} components and one WCollapsibleToggle component together. Each collapsible component in the same group has the same name.

    The WCollapsibleToggle component of the group applies to only the collapsible components in the same group. A WTabSet of type accordion is considered a collapsible component unless its single property is set.

    Since:
    1.0.0
    Author:
    Christina Harris, Mark Reeves
    See Also:
    Serialized Form
    • Constructor Detail

      • CollapsibleGroup

        public CollapsibleGroup()
    • Method Detail

      • getGroupName

        public String getGroupName()
        Retrieves the common name used by all collapsible components in the group.
        Returns:
        the common name to use.
      • addCollapsible

        public void addCollapsible​(WCollapsible collapsible)
        Adds a collpsible component to this group.
        Parameters:
        collapsible - the collapsible to add.
      • addCollapsible

        public void addCollapsible​(WTabSet collapsible)
        Adds a WTabSet to this group. Only really useful for accordions.
        Parameters:
        collapsible - the WTabSet to add to the group.
      • getAllCollapsibles

        public List<WComponent> getAllCollapsibles()
        Returns:
        a list of all collapsible components for this group.
      • setCollapsibleToggle

        public void setCollapsibleToggle​(WCollapsibleToggle collapsibleToggle)
        Sets the toggle component for this group.
        Parameters:
        collapsibleToggle - the toggle to set.
      • getCollapsibleToggle

        public WCollapsibleToggle getCollapsibleToggle()
        Returns:
        the toggle component for this group.