com.aelitis.azureus.ui.swt.shells.main
Class MainMenu
java.lang.Object
com.aelitis.azureus.ui.swt.shells.main.MainMenu
- All Implemented Interfaces:
- IMainMenu, IMenuConstants
public class MainMenu
- extends java.lang.Object
- implements IMainMenu, IMenuConstants
Fields inherited from interface org.gudy.azureus2.ui.swt.mainwindow.IMenuConstants |
FOR_AZ2, FOR_AZ3, KEY_ENABLEMENT, KEY_MENU_ID, MENU_ID_ABOUT, MENU_ID_ADVANCED, MENU_ID_ADVANCED_TOOLS, MENU_ID_ALL_PEERS, MENU_ID_BETA_PROG, MENU_ID_BETA_PROG_BUG, MENU_ID_CLIENT_STATS, MENU_ID_CLOSE_ALL_DETAIL, MENU_ID_CLOSE_ALL_DL_BARS, MENU_ID_CLOSE_TAB, MENU_ID_COMMUNITY, MENU_ID_COMMUNITY_BLOG, MENU_ID_COMMUNITY_CHAT, MENU_ID_COMMUNITY_FORUMS, MENU_ID_COMMUNITY_WIKI, MENU_ID_CONFIGURE, MENU_ID_CONSOLE, MENU_ID_CREATE, MENU_ID_DEBUG_HELP, MENU_ID_DETAILED_LIST, MENU_ID_DEVICEMANAGER, MENU_ID_DONATE, MENU_ID_EXIT, MENU_ID_EXPORT, MENU_ID_FILE, MENU_ID_HEALTH, MENU_ID_HELP, MENU_ID_HELP_SUPPORT, MENU_ID_IMPORT, MENU_ID_IP_FILTER, MENU_ID_LOG_VIEWS, MENU_ID_MENU_BAR, MENU_ID_MY_SHARES, MENU_ID_MY_TORRENTS, MENU_ID_MY_TRACKERS, MENU_ID_NAT_TEST, MENU_ID_NET_STATUS, MENU_ID_OPEN, MENU_ID_OPEN_TORRENT, MENU_ID_OPEN_TORRENT_FOR_TRACKING, MENU_ID_OPEN_URI, MENU_ID_OPEN_VUZE_FILE, MENU_ID_OPTIONS, MENU_ID_PAIRING, MENU_ID_PAUSE_TRANSFERS, MENU_ID_PAUSE_TRANSFERS_FOR, MENU_ID_PLUGINS, MENU_ID_PLUGINS_HELP, MENU_ID_PLUGINS_INSTALL, MENU_ID_PLUGINS_UNINSTALL, MENU_ID_QUICK_VIEW, MENU_ID_RELEASE_NOTES, MENU_ID_RESTART, MENU_ID_RESUME_TRANSFERS, MENU_ID_SEARCH_BAR, MENU_ID_SHARE, MENU_ID_SHARE_DIR, MENU_ID_SHARE_DIR_CONTENT, MENU_ID_SHARE_DIR_CONTENT_RECURSE, MENU_ID_SHARE_FILE, MENU_ID_SPEED_LIMITS, MENU_ID_SPEED_TEST, MENU_ID_START_ALL_TRANSFERS, MENU_ID_STATS, MENU_ID_STOP_ALL_TRANSFERS, MENU_ID_SUBSCRIPTIONS, MENU_ID_TOOLBAR, MENU_ID_TOOLS, MENU_ID_TORRENT, MENU_ID_TRANSFER_BAR, MENU_ID_TRANSFERS, MENU_ID_UPDATE_CHECK, MENU_ID_VIEW, MENU_ID_VOTE, MENU_ID_WHATS_NEW, MENU_ID_WINDOW, MENU_ID_WINDOW_ALL_TO_FRONT, MENU_ID_WINDOW_CLOSE, MENU_ID_WINDOW_MINIMIZE, MENU_ID_WINDOW_ZOOM, MENU_ID_WINDOW_ZOOM_MAXIMIZE, MENU_ID_WINDOW_ZOOM_RESTORE |
Constructor Summary |
MainMenu(SWTSkin skin,
org.eclipse.swt.widgets.Shell shell)
Creates the main menu on the supplied shell |
Method Summary |
static org.eclipse.swt.widgets.MenuItem |
createViewMenuItem(SWTSkin skin,
org.eclipse.swt.widgets.Menu viewMenu,
java.lang.String textID,
java.lang.String configID,
java.lang.String viewID,
boolean fast,
int menuIndex)
|
org.eclipse.swt.widgets.Menu |
getMenu(java.lang.String id)
|
org.eclipse.swt.widgets.Menu |
getMenuBar()
Deprecated. This method has been replaced with getMenu(String) ;
use #getMenu(IMenuConstants.MENU_ID_MENU_BAR) instead |
static void |
setVisibility(SWTSkin skin,
java.lang.String configID,
java.lang.String viewID,
boolean visible)
|
static void |
setVisibility(SWTSkin skin,
java.lang.String configID,
java.lang.String viewID,
boolean visible,
boolean save)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MainMenu
public MainMenu(SWTSkin skin,
org.eclipse.swt.widgets.Shell shell)
- Creates the main menu on the supplied shell
- Parameters:
shell
-
getMenu
public org.eclipse.swt.widgets.Menu getMenu(java.lang.String id)
- Specified by:
getMenu
in interface IMainMenu
getMenuBar
public org.eclipse.swt.widgets.Menu getMenuBar()
- Deprecated. This method has been replaced with
getMenu(String)
;
use #getMenu(IMenuConstants.MENU_ID_MENU_BAR)
instead
- Returns:
- the menuBar
createViewMenuItem
public static org.eclipse.swt.widgets.MenuItem createViewMenuItem(SWTSkin skin,
org.eclipse.swt.widgets.Menu viewMenu,
java.lang.String textID,
java.lang.String configID,
java.lang.String viewID,
boolean fast,
int menuIndex)
- Parameters:
viewMenu
- string
- string2
-
setVisibility
public static void setVisibility(SWTSkin skin,
java.lang.String configID,
java.lang.String viewID,
boolean visible)
setVisibility
public static void setVisibility(SWTSkin skin,
java.lang.String configID,
java.lang.String viewID,
boolean visible,
boolean save)