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<String> |
getNames() |
Collection<Option> |
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()
public OptionGroup addOption(Option option)
Option
to this group.option
- the option to add to this grouppublic Collection<String> getNames()
Collection
public Collection<Option> getOptions()
Collection
public 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–2015 The Apache Software Foundation. All rights reserved.