Class OptionGroup

java.lang.Object
org.graffiti.options.OptionGroup

public class OptionGroup
extends Object
Represents an option pane group.
Version:
$Revision: 1.5 $
  • Constructor Details

    • OptionGroup

      public OptionGroup​(String name)
      Constructs a new option group.
      Parameters:
      name - the name of the option group.
  • Method Details

    • getMember

      public Object getMember​(int index)
      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

      public int getMemberIndex​(Object member)
      Returns the index of the specified member.
      Parameters:
      member - the object of interest.
      Returns:
      the index of the specified member.
    • getMembers

      public Enumeration<Object> getMembers()
      Returns an enumeration of all members in this option group.
      Returns:
      an enumeration of all members on this option group.
    • getName

      public String getName()
      Returns the name of the option group.
      Returns:
      the name of the option group.
    • addOptionGroup

      public void addOptionGroup​(OptionGroup group)
      Adds the given option group to this option group.
      Parameters:
      group - the option group to add.
    • addOptionPane

      public void addOptionPane​(OptionPane pane)
      Adds the given option pane to this option group.
      Parameters:
      pane - the option pane to add.
    • save

      public void save()
      Calls the save methods of all members.