Examples of toJPopupMenu()


Examples of ca.nengo.ui.lib.util.menus.PopupMenuBuilder.toJPopupMenu()

   */
  public JPopupMenu getContextMenu() {
    PopupMenuBuilder menu = new PopupMenuBuilder(getName());
    constructMenu(menu, null, null);

    return menu.toJPopupMenu();
  }
 
  public JPopupMenu getContextMenu(double posX, double posY) {
    PopupMenuBuilder menu = new PopupMenuBuilder(getName());
    constructMenu(menu, posX, posY);
View Full Code Here

Examples of ca.nengo.ui.lib.util.menus.PopupMenuBuilder.toJPopupMenu()

 
  public JPopupMenu getContextMenu(double posX, double posY) {
    PopupMenuBuilder menu = new PopupMenuBuilder(getName());
    constructMenu(menu, posX, posY);

    return menu.toJPopupMenu();
  }

  /**
   * @return ground
   */
 
View Full Code Here

Examples of ca.nengo.ui.lib.util.menus.PopupMenuBuilder.toJPopupMenu()

      PopupMenuBuilder menu = new PopupMenuBuilder(selection.size() + " Objects selected");

      constructSelectionMenu(selection, menu);

      return menu.toJPopupMenu();
    } else {
      return null;
    }

  }
View Full Code Here

Examples of ca.nengo.ui.lib.util.menus.PopupMenuBuilder.toJPopupMenu()

        destroy();

      }

    });
    return menu.toJPopupMenu();
  }

}

/**
 
View Full Code Here

Examples of ca.nengo.ui.lib.util.menus.PopupMenuBuilder.toJPopupMenu()

      return null;
    } else {
      PopupMenuBuilder menu = new PopupMenuBuilder(getFullName());
      constructMenu(menu);

      return menu.toJPopupMenu();
    }
  }

  public String getFullName() {
    return getName() + " (" + getTypeName() + ")";
View Full Code Here

Examples of ca.nengo.ui.lib.util.menus.PopupMenuBuilder.toJPopupMenu()

                    removeNodes.add(node);
                }
            }

            menuBuilder.addAction(new RemoveTreeNodes(removeNodes));
            menu = menuBuilder.toJPopupMenu();

            if (menu != null) {
                menu.show(e.getComponent(), e.getPoint().x, e.getPoint().y);
                menu.setVisible(true);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.