/** @return List of QuickMenuItems in this menu */ public List<QuickMenuItem> getItemList() { List<QuickMenuItem> itemList = new ArrayList<QuickMenuItem>(); for (QuickMenuItemInfo itemInfo : info.getMenuItemListList()) { QuickMenuItem item = new QuickMenuItem(itemInfo, getName(), desktopUtils, systemInputManager); itemList.add(item); } return itemList; }
public void onQuickMenuShown(QuickMenuInfo info) { logger.finest("QuickMenu shown: menuName=" + info.getMenuId().getMenuName()); waitState.onQuickMenuShown(info); }
/** @return DesktopWindowRect of the menu */ public DesktopWindowRect getRect() { return info.getRect(); }
/** * Get the windowId of the window the Menu is attached to. Note: Only set for menubars, and only * on windows and *nix. * * @return window id */ public int getParentWindowId() { return info.getWindowId().getWindowID(); }
/** * Get the name of the menu (as represented in e.g. standard_menu.ini) * * @return the name of the menu */ public String getName() { return info.getMenuId().getMenuName(); }