com.limegroup.gnutella.gui.options
Class OptionsPaneManager

java.lang.Object
  extended bycom.limegroup.gnutella.gui.options.OptionsPaneManager

public final class OptionsPaneManager
extends java.lang.Object

Manages the main options window that displays the various options windows.

This class also stores all of the main options panels to access all of them regardless of how many there are or what their specific type is.


Constructor Summary
OptionsPaneManager()
          The constructor sets the layout and adds all of the OptionPane instances.
 
Method Summary
 void addPane(OptionsPane pane)
          Adds the speficied window to the CardLayout based on its title.
 void applyOptions()
          Applies the current settings in the options windows, storing them to disk.
 java.awt.Component getComponent()
          Returns the main Component for this class.
 void initOptions()
          Sets the options for each OptionPane instance in the ArrayList of OptionPanes when the window is shown.
 void show(java.lang.String name)
          Shows the window speficied by its title.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionsPaneManager

public OptionsPaneManager()
The constructor sets the layout and adds all of the OptionPane instances.

Method Detail

show

public final void show(java.lang.String name)
Shows the window speficied by its title.

Parameters:
name - the name of the Component to show

initOptions

public void initOptions()
Sets the options for each OptionPane instance in the ArrayList of OptionPanes when the window is shown.


applyOptions

public final void applyOptions()
                        throws java.io.IOException
Applies the current settings in the options windows, storing them to disk. This method delegates to the OptionsPaneManager.

Throws:
java.io.IOException - if the options could not be fully applied

getComponent

public final java.awt.Component getComponent()
Returns the main Component for this class.

Returns:
a Component instance that is the main component for this class.

addPane

public final void addPane(OptionsPane pane)
Adds the speficied window to the CardLayout based on its title.