|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.limegroup.gnutella.gui.options.OptionsMediator
This class acts as a mediator for the different components of the options window. This class maintains references to the OptionsTreeManager and OptionsPaneManager, the two primary classes that it delegates to.
Field Summary | |
static java.lang.String |
ROOT_NODE_KEY
Constant for the key for the root node in the tree. |
Method Summary | |
void |
applyOptions()
Applies the current settings in the options windows, storing them to disk. |
javax.swing.ImageIcon |
getImage(java.lang.String imageName)
Returns the specified image. |
javax.swing.JDialog |
getMainOptionsComponent()
Returns the main JDialog instance for the options window, allowing other components to position themselves accordingly. |
boolean |
getSaveDirectoryChanged()
Returns whether or not the save directory has changed since the last time settings were stored. |
java.lang.String |
getString(java.lang.String key)
Returns a locale-specific String from the GUIMediator class. |
void |
handleSelection(java.lang.String key)
Handles the selection of a new panel as the currently visible panel. |
static OptionsMediator |
instance()
Singleton accessor for this class. |
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. |
void |
setSaveDirectoryChanged(boolean directoryChanged)
Sets whether or not the save directory has changed since the last time that the settings were applied. |
void |
updateTheme()
Update any required theme settings, such as colors or images. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String ROOT_NODE_KEY
Method Detail |
public static OptionsMediator instance()
public final void setOptionsVisible(boolean visible)
visible
- boolean value specifying whether the
options window should be made visible or not visiblepublic final boolean isOptionsVisible()
public final java.lang.String getString(java.lang.String key)
key
- the key of the desired locale-specific String
public final javax.swing.ImageIcon getImage(java.lang.String imageName)
imageName
- the name of the icon to return
public final void handleSelection(java.lang.String key)
key
- the unique identifying key of the panel to showpublic final void applyOptions() throws java.io.IOException
java.io.IOException
- if the options could not be fully appliedpublic boolean getSaveDirectoryChanged()
public void setSaveDirectoryChanged(boolean directoryChanged)
directoryChanged
- specifies whether or not the save directory has
changed since the last time settings were appliedpublic javax.swing.JDialog getMainOptionsComponent()
public void updateTheme()
ThemeObserver
updateTheme
in interface ThemeObserver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |