|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.limegroup.gnutella.gui.statistics.StatisticsMediator
This class acts as a mediator for the different components of the statistics window. This class maintains references to the StatisticsTreeManager and StatisticsPaneManager, 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 | |
javax.swing.JComponent |
getComponent()
|
java.awt.Component |
getMainStatisticsComponent()
Returns the main JComponent instance for the statistics window, allowing other components to position themselves accordingly. |
static javax.swing.JComponent |
getStatDisplayComponent()
Accessor for the component that contains the displayed statistics, as opposed to the navigational component. |
void |
handleSelection(java.lang.String key)
Handles the selection of a new panel as the currently visible panel. |
static StatisticsMediator |
instance()
Singleton accessor for this class. |
boolean |
isStatisticsVisible()
Returns whether or not the statistics window is visible. |
void |
refresh()
Implements RefreshListener. |
void |
setAdvancedStatsVisible(boolean visible)
Sets the visibility state of the advanced statistics. |
void |
setStatisticsVisible(boolean visible)
Makes the statistics 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 |
Field Detail |
public static final java.lang.String ROOT_NODE_KEY
Method Detail |
public static StatisticsMediator instance()
public final void setStatisticsVisible(boolean visible)
visible
- boolean value specifying whether the
statistics window should be made visible or not
visiblepublic final boolean isStatisticsVisible()
public final void handleSelection(java.lang.String key)
key
- the unique identifying key of the panel to showpublic java.awt.Component getMainStatisticsComponent()
public javax.swing.JComponent getComponent()
public static javax.swing.JComponent getStatDisplayComponent()
public void refresh()
Refreshes all statistics.
refresh
in interface RefreshListener
public void setAdvancedStatsVisible(boolean visible)
visible
- the visibility state to apply
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |