public class OptionGroup extends Object implements Serializable
| Constructor and Description |
|---|
OptionGroup() |
| Modifier and Type | Method and Description |
|---|---|
OptionGroup |
addOption(Option option)
Add the specified
Option to this group. |
Collection |
getNames() |
Collection |
getOptions() |
String |
getSelected() |
boolean |
isRequired()
Returns whether this option group is required.
|
void |
setRequired(boolean required) |
void |
setSelected(Option option)
Set the selected option of this group to
name. |
String |
toString()
Returns the stringified version of this OptionGroup.
|
public OptionGroup addOption(Option option)
Option to this group.option - the option to add to this grouppublic Collection getNames()
Collectionpublic Collection getOptions()
Collectionpublic void setSelected(Option option) throws AlreadySelectedException
name.option - the option that is selectedAlreadySelectedException - if an option from this group has
already been selected.public String getSelected()
public void setRequired(boolean required)
required - specifies if this group is requiredpublic boolean isRequired()
Copyright © 2002-2014 The Apache Software Foundation. All Rights Reserved.