示例#1
0
  /** @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;
  }
示例#2
0
 public void onQuickMenuShown(QuickMenuInfo info) {
   logger.finest("QuickMenu shown: menuName=" + info.getMenuId().getMenuName());
   waitState.onQuickMenuShown(info);
 }
示例#3
0
 /** @return DesktopWindowRect of the menu */
 public DesktopWindowRect getRect() {
   return info.getRect();
 }
示例#4
0
 /**
  * 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();
 }
示例#5
0
 /**
  * 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();
 }