com.limegroup.gnutella.gui.options
Interface OptionsPane


public interface OptionsPane

An object that defines the basic functionality of an OptionsPane, or one panel specifying a set of options in the options window.

Each OptionsPane has a unique identifying name that allows it to be displayed in the CardLayout.


Method Summary
 void add(PaneItem item)
          Adds a new option item to this pane.
 void applyOptions()
          Applies the currently selected options in this options pane to get stored to disk.
 java.awt.Container getContainer()
          Returns the Container instance that holds the different elements of this OptionsPane.
 java.lang.String getName()
          Returns the name of this OptionsPane.
 void initOptions()
          Sets the options for the fields in this OptionsPane when the window is shown.
 

Method Detail

getName

public java.lang.String getName()
Returns the name of this OptionsPane.

Returns:
the name of this OptionsPane

getContainer

public java.awt.Container getContainer()
Returns the Container instance that holds the different elements of this OptionsPane.

Returns:
the Container associated with this OptionsPane

add

public void add(PaneItem item)
Adds a new option item to this pane.

Parameters:
item - the PaneItem instance to add to this OptionsPane

initOptions

public void initOptions()
Sets the options for the fields in this OptionsPane when the window is shown.


applyOptions

public void applyOptions()
                  throws java.io.IOException
Applies the currently selected options in this options pane to get stored to disk.

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