org.graffiti.options
Class OptionGroup

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

public class OptionGroup
extends Object

Represents an option pane group.

Version:
$Revision: 5767 $

Constructor Summary
OptionGroup(String name)
          Constructs a new option group.
 
Method Summary
 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 the save methods of all members.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionGroup

public OptionGroup(String name)
Constructs a new option group.

Parameters:
name - the name of the option group.
Method Detail

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.



Generated at 2012-05-30 11:00:14 PM CEST