Class CollapsibleGroup
- java.lang.Object
-
- com.github.bordertech.wcomponents.CollapsibleGroup
-
- All Implemented Interfaces:
Serializable
public class CollapsibleGroup extends Object implements Serializable
This class is used to group multiple
WCollapsibleor [@link WTabSet} components and oneWCollapsibleTogglecomponent together. Each collapsible component in the same group has the same name.The
WCollapsibleTogglecomponent of the group applies to only thecollapsiblecomponents 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 Summary
Constructors Constructor Description CollapsibleGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCollapsible(WCollapsible collapsible)Adds a collpsible component to this group.voidaddCollapsible(WTabSet collapsible)Adds aWTabSetto this group.List<WComponent>getAllCollapsibles()WCollapsibleTogglegetCollapsibleToggle()StringgetGroupName()Retrieves the common name used by all collapsible components in the group.voidsetCollapsibleToggle(WCollapsibleToggle collapsibleToggle)Sets the toggle component for this group.
-
-
-
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 aWTabSetto 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.
-
-