|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.limegroup.gnutella.gui.menu.MenuMediator
This class acts as a mediator among all of the various items of the application's menus.
Method Summary | |
javax.swing.JMenuBar |
getMenuBar()
Returns the JMenuBar for the application. |
int |
getMenuBarHeight()
Returns the height of the main menu bar. |
void |
handleLibrarySelection()
Rearranges the file menu in response to a selection of the library tab. |
void |
handleStandardSelection()
Rearranges the file menu in response to the selection of a tab requiring no specialized menu. |
static MenuMediator |
instance()
Singleton accessor method for obtaining the MenuMediator instance. |
void |
setConnected(boolean connected)
Sets whether or not we are currently connected or disconnected from the network, enabling or disabling the correct connect/disconnect menu items in the file menu. |
void |
setNavMenuItemEnabled(int TAB_INDEX,
boolean ENABLED)
Sets the enabled/disabled state of the navigation menu item at the specified index. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static final MenuMediator instance()
public javax.swing.JMenuBar getMenuBar()
public void handleLibrarySelection()
public void handleStandardSelection()
public void setConnected(boolean connected)
connected
- specifies our connection statuspublic void setNavMenuItemEnabled(int TAB_INDEX, boolean ENABLED)
TAB_INDEX
- the index of the item to setENABLED
- the enabled or disabled state of the itempublic int getMenuBarHeight()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |