Class OptionGroup
- java.lang.Object
-
- com.github.bordertech.wcomponents.OptionGroup
-
- All Implemented Interfaces:
Serializable
public class OptionGroup extends Object implements Serializable
Provides a way of grouping options inside list-type controls.- Since:
- 1.0.0
- Author:
- Yiannis Paschalidis
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OptionGroup()
Creates an option group with no options or description.OptionGroup(String description)
Creates an option group with the given description.OptionGroup(String description, List options)
Creates an option group with the given description and contents.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDesc()
List
getOptions()
void
setDescription(String description)
void
setOptions(List options)
-
-
-
Constructor Detail
-
OptionGroup
public OptionGroup()
Creates an option group with no options or description.
-
OptionGroup
public OptionGroup(String description)
Creates an option group with the given description.- Parameters:
description
- the group description.
-
-
Method Detail
-
getOptions
public List getOptions()
- Returns:
- the options contained in this group.
-
getDesc
public String getDesc()
- Returns:
- the textual description of this group.
-
setDescription
public void setDescription(String description)
- Parameters:
description
- The description to set.
-
setOptions
public void setOptions(List options)
- Parameters:
options
- The options to set.
-
-