Package org.graffiti.options
Class OptionGroup
java.lang.Object
org.graffiti.options.OptionGroup
public class OptionGroup extends Object
Represents an option pane group.
- Version:
- $Revision: 1.5 $
-
Constructor Summary
Constructors Constructor Description OptionGroup(String name)
Constructs a new option group. -
Method Summary
Modifier and Type Method Description void
addOptionGroup(OptionGroup group)
Adds the given option group to this option group.void
addOptionPane(OptionPane pane)
Adds the given option pane to this option group.Object
getMember(int index)
Returns the member at the specified index.int
getMemberCount()
Returns the number of members.int
getMemberIndex(Object member)
Returns the index of the specified member.Enumeration<Object>
getMembers()
Returns an enumeration of all members in this option group.String
getName()
Returns the name of the option group.void
save()
Calls thesave
methods of all members.
-
Constructor Details
-
OptionGroup
Constructs a new option group.- Parameters:
name
- the name of the option group.
-
-
Method Details
-
getMember
Returns the member at the specified index.- Parameters:
index
- the index of the member of interest.- Returns:
- the member at the specified index.
null
else.
-
getMemberCount
public int getMemberCount()Returns the number of members.- Returns:
- the number of members.
-
getMemberIndex
Returns the index of the specified member.- Parameters:
member
- the object of interest.- Returns:
- the index of the specified member.
-
getMembers
Returns an enumeration of all members in this option group.- Returns:
- an enumeration of all members on this option group.
-
getName
Returns the name of the option group.- Returns:
- the name of the option group.
-
addOptionGroup
Adds the given option group to this option group.- Parameters:
group
- the option group to add.
-
addOptionPane
Adds the given option pane to this option group.- Parameters:
pane
- the option pane to add.
-
save
public void save()Calls thesave
methods of all members.
-