Examples of ContextMenu


Examples of tvbrowser.ui.pluginview.contextmenu.ContextMenu

      mTree.setSelectionPath(path);
    }

    TreePath[] selectedPaths = mTree.getSelectionPaths();

    ContextMenu menu = createContextMenu(selectedPaths);
    if (menu == null) {
      return;
    }

    menu.getPopupMenu().show(mTree, e.getX(), e.getY());
  }

Examples of tvbrowser.ui.pluginview.contextmenu.ContextMenu

  @Override
  public void keyReleased(final KeyEvent event) {
    // check if menu item has key event for pure keyboard usage
    TreePath[] selectedPaths = mTree.getSelectionPaths();
    ContextMenu menu = createContextMenu(selectedPaths);
    for (MenuElement element : menu.getPopupMenu().getSubElements()) {
      if (element instanceof JMenuItem) {
        final JMenuItem item = (JMenuItem) element;
        final Action action = item.getAction();
        if (action != null) {
          Object keyboard = action
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.