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 voidaddOptionGroup(OptionGroup group)Adds the given option group to this option group.voidaddOptionPane(OptionPane pane)Adds the given option pane to this option group.ObjectgetMember(int index)Returns the member at the specified index.intgetMemberCount()Returns the number of members.intgetMemberIndex(Object member)Returns the index of the specified member.Enumeration<Object>getMembers()Returns an enumeration of all members in this option group.StringgetName()Returns the name of the option group.voidsave()Calls thesavemethods 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.
nullelse.
-
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 thesavemethods of all members.
-