Examples of ContextMenu


Examples of de.willuhn.jameica.gui.parts.ContextMenu

    keyList.addColumn(i18n.tr("Alias-Name"),"alias");
    keyList.addColumn(i18n.tr("Format"),"format");



    ContextMenu ctx = new ContextMenu();

    // Kontext: Details.
    ctx.addItem(new CheckedContextMenuItem(i18n.tr("�ffnen"),new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        if (context == null)
          return;
        try
        {
          GUI.startView(Detail.class,context);
        }
        catch (Exception e)
        {
          Logger.error("error while loading rdh key",e);
        }
      }
    },"document-open.png"));

    ctx.addItem(new ContextMenuItem(i18n.tr("Neuer Schl�ssel..."),new Action() {
      public void handleAction(Object context) throws ApplicationException {startCreate();}
    },"document-new.png"));
    ctx.addItem(new ContextMenuItem(i18n.tr("Schl�ssel importieren..."),new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        startImport();
      }
    },"stock_keyring.png"));

    // Kontext: Aktivieren/Deaktivieren
    ctx.addItem(ContextMenuItem.SEPARATOR);
    ctx.addItem(new ActivateKey(true));
    ctx.addItem(new ActivateKey(false));
    ctx.addItem(ContextMenuItem.SEPARATOR);
    ctx.addItem(new CheckedContextMenuItem(i18n.tr("L�schen..."), new Action() {
      public void handleAction(Object context) throws ApplicationException
      {
        try
        {
          String q = i18n.tr("Wollen Sie diesen Schl�ssel wirklich l�schen?\n" +

Examples of de.willuhn.jameica.gui.parts.ContextMenu

   */
  public PassportList(final Action action) throws RemoteException
  {
    super(init(),action);

    ContextMenu menu = new ContextMenu();
    menu.addItem(new CheckedSingleContextMenuItem(i18n.tr("�ffnen..."),new PassportDetail(),"document-open.png"));
    this.setContextMenu(menu);

    this.setMulti(false);
    this.setSummary(false);
    addColumn(i18n.tr("Bezeichnung"),"name");

Examples of de.willuhn.jameica.gui.parts.ContextMenu

      }
    };
   
    this.buchungen = new SepaSammelTransferBuchungList(getTransfer(),a);

    ContextMenu ctx = new ContextMenu();
    ctx.addItem(new CheckedSingleContextMenuItem(i18n.tr("Buchung �ffnen"), new SepaSammelLastBuchungNew(),"document-open.png"));
    ctx.addItem(new DeleteMenuItem());
    ctx.addItem(ContextMenuItem.SEPARATOR);
    ctx.addItem(new CreateMenuItem(new SepaSammelLastBuchungNew()));
    ctx.addItem(ContextMenuItem.SEPARATOR);
    ctx.addItem(new CheckedContextMenuItem(i18n.tr("In Einzellastschrift duplizieren"), new SepaLastschriftNew(),"stock_previous.png"));
    this.buchungen.setContextMenu(ctx);
    return this.buchungen;
  }

Examples of de.willuhn.jameica.gui.parts.ContextMenu

      }
    };
   
    this.buchungen = new SammelTransferBuchungList(getTransfer(),a);

    ContextMenu ctx = new ContextMenu();
    ctx.addItem(new CheckedSingleContextMenuItem(i18n.tr("Buchung �ffnen"), new SammelLastBuchungNew(),"document-open.png"));
    ctx.addItem(new DeleteMenuItem());
    ctx.addItem(ContextMenuItem.SEPARATOR);
    ctx.addItem(new CreateMenuItem(new SammelLastBuchungNew()));
    ctx.addItem(ContextMenuItem.SEPARATOR);
    ctx.addItem(new CheckedContextMenuItem(i18n.tr("In Einzellastschrift duplizieren"), new LastschriftNew(),"stock_previous.png"));
    this.buchungen.setContextMenu(ctx);
    return this.buchungen;
  }

Examples of fbench.graph.popup.ContextMenu

                FBTypeDialog fbTypeDialog = new FBTypeDialog(getElement(), evt);
                fbTypeDialog.create("Edit Event");
              }
            }
            else if(evt.getButton() == MouseEvent.BUTTON3){
              ContextMenu contextMenu = new ContextMenu(getElement(), evt);
              contextMenu.create(getElement().getNodeName());
            }
          }
         
          public void mousePressed(MouseEvent evt){
            currentMouseButton = evt.getButton();

Examples of fbench.graph.popup.ContextMenu

      if(evt.getButton() == MouseEvent.BUTTON1 && evt.getClickCount() == 2){
        FBNetworkDialog fbNetworkDialog = new FBNetworkDialog(getElement(), evt);
        fbNetworkDialog.create("Edit Connection");
      }
      else if(evt.getButton() == MouseEvent.BUTTON3){
        ContextMenu contextMenu = new ContextMenu(getElement(), evt);
        contextMenu.create(getElement().getNodeName());
      }
    }
  }

Examples of fbench.graph.popup.ContextMenu

      if(evt.getButton() == MouseEvent.BUTTON1 && evt.getClickCount() == 2){
        ECCDialog eccDialog = new ECCDialog(elem, evt);
        eccDialog.create("Edit Transition");
      }
      else if(evt.getButton() == MouseEvent.BUTTON3){
        ContextMenu contextMenu = new ContextMenu(getElement(), evt);
        contextMenu.create(getElement().getNodeName());
      }
    }
  }

Examples of fbench.graph.popup.ContextMenu

          System.out.println("GraphView."+element.getNodeName());
          Element fbNetworkElem = (Element) (element.getNodeName().equals("Resource")
              ? element.getFirstChild() : element);
          if(fbNetworkElem != null){
            String elementName = fbNetworkElem.getNodeName();
            ContextMenu contextMenu = new ContextMenu(fbNetworkElem, evt);
            contextMenu.create(elementName);
          }
        }
      }
    });
  }

Examples of fbench.graph.popup.ContextMenu

      //ex.printStackTrace();
      fbNetworkElem = element;
      elementName = fbNetworkElem.getNodeName();
    }
    System.out.println("GraphView."+elementName);
    ContextMenu contextMenu = new ContextMenu(fbNetworkElem, evt);
    contextMenu.create(elementName)
  }

Examples of fbench.graph.popup.ContextMenu

              Element el = selectedNode.getElement();
              java.lang.System.out.println("[DOMT] Element: " + el.getNodeName());
              if(FBench.getTreeMenus().containsKey(el.getNodeName())) {
                java.lang.System.out.println("[DOMT] Element: " + el.getNodeName()
                    + " has a menu");
                ContextMenu menu = new ContextMenu(el, mouseEvent);
                menu.create(el.getNodeName());
              }
             
              mouseEvent = null;
              mouseButton = -1;
            }
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.