예제 #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();
 }