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
WCollapsible
or [@link WTabSet} components and oneWCollapsibleToggle
component together. Each collapsible component in the same group has the same name.The
WCollapsibleToggle
component of the group applies to only thecollapsible
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 Summary
Constructors Constructor Description CollapsibleGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCollapsible(WCollapsible collapsible)
Adds a collpsible component to this group.void
addCollapsible(WTabSet collapsible)
Adds aWTabSet
to this group.List<WComponent>
getAllCollapsibles()
WCollapsibleToggle
getCollapsibleToggle()
String
getGroupName()
Retrieves the common name used by all collapsible components in the group.void
setCollapsibleToggle(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 aWTabSet
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.
-
-