Package xnap.gui.action

Examples of xnap.gui.action.OpenFileWithMenu$OthersAction


  jmDownloads.add(abortAction);
  jmDownloads.add(acEditFilter);
  jmDownloads.add(deleteAction);
  jmDownloads.addSeparator();
  jmDownloads.add(acOpenFile);
  jmDownloads.add(new OpenFileWithMenu(this));;
  jmDownloads.addSeparator();
  jmDownloads.add(new UserMenu(this));
  if (!filtered) {
      jmDownloads.addSeparator();
      jmDownloads.add(clearAction);
  }


  // download table
  if (filtered) {
      ttmDownloads = new FilteredTransferTableModel
    (DownloadQueue.getInstance(), "download");
  }
  else {
      ttmDownloads = new TransferTableModel
    (DownloadQueue.getInstance(), "download",
     XNap.tr("Download Table"));
  }
  jtaDownloads = ttmDownloads.createJTable();
  jtaDownloads.setShowGrid(false);
  jtaDownloads.addFocusListener(new FocusSelectionListener());
  MouseListener mlDownloads = new PopupListener(jmDownloads);
  jtaDownloads.addMouseListener(mlDownloads);
  jtaDownloads.addMouseListener
      (new DoubleClickListener(acRSOAction, jtaDownloads));
  jtaDownloads.getInputMap().put
      (KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), acRSOAction);
  jtaDownloads.getActionMap().put(acRSOAction, acRSOAction);

  jtaDownloads.getInputMap().put
      (KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0), deleteAction);
  jtaDownloads.getActionMap().put(deleteAction, deleteAction);

  jtaDownloads.getInputMap().put
      (KeyStroke.getKeyStroke(KeyEvent.VK_F2, 0), acEditFilter);
  jtaDownloads.getActionMap().put(acEditFilter, acEditFilter);

  jspDl = new JScrollPane()
  jspDl.setViewportView(jtaDownloads);

  // upload popup
  JPopupMenu jmUploads = new JPopupMenu();
  jmUploads.add(new JMenuItem(new StartAction()));
  jmUploads.add(new JMenuItem(abortAction));
  if (!filtered) {
      jmUploads.addSeparator();
      jmUploads.add(new JMenuItem(clearAction));
  }
  jmUploads.addSeparator();
  jmUploads.add(new JMenuItem(acOpenFile));
  jmUploads.add(new OpenFileWithMenu(this));
  jmUploads.addSeparator();
  jmUploads.add(new UserMenu(this));

  // upload table     
  if (filtered) {
View Full Code Here


    JPopupMenu popup = new JPopupMenu();
    popup.add(new JMenuItem(playAction));
    popup.add(new JMenuItem(enqueueAction));
    popup.addSeparator();
    popup.add(new JMenuItem(acOpenFile));
    popup.add(new OpenFileWithMenu(this));
    popup.addSeparator();
    popup.add(createViewerMenu());
    popup.addSeparator();
    popup.add(acCopyFile);
    popup.add(acCutFile);
View Full Code Here

TOP

Related Classes of xnap.gui.action.OpenFileWithMenu$OthersAction

Copyright © 2018 www.massapicom. 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.