com.limegroup.gnutella.gui.options
Class OptionsConstructor

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

public final class OptionsConstructor
extends java.lang.Object

This class constructs all of the elements of the options window. To add a new option, this class should be used. This class allows for options to be added to already existing panes as well as for options to be added to new panes that you can also add here. To add a new top-level pane, create a new OptionsPaneImpl and call the addOption method. To add option items to that pane, add subclasses of AbstractPaneItem.


Constructor Summary
OptionsConstructor(com.limegroup.gnutella.gui.options.OptionsTreeManager treeManager, OptionsPaneManager paneManager)
          The constructor create all of the options windows and their components.
 
Method Summary
 boolean isOptionsVisible()
          Returns if the Options Box is visible.
 void setOptionsVisible(boolean visible)
          Makes the options window either visible or not visible depending on the boolean argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionsConstructor

public OptionsConstructor(com.limegroup.gnutella.gui.options.OptionsTreeManager treeManager,
                          OptionsPaneManager paneManager)
The constructor create all of the options windows and their components.

Parameters:
treeManager - the OptionsTreeManager instance to use for constructing the main panels and adding elements
paneManager - the OptionsPaneManager instance to use for constructing the main panels and adding elements
Method Detail

setOptionsVisible

public final void setOptionsVisible(boolean visible)
Makes the options window either visible or not visible depending on the boolean argument.

Parameters:
visible - boolean value specifying whether the options window should be made visible or not visible

isOptionsVisible

public final boolean isOptionsVisible()
Returns if the Options Box is visible.

Returns:
true if the Options Box is visible.