Package org.xnap.commons.gui.util

Examples of org.xnap.commons.gui.util.DoubleClickListener


      getButtonPanel().add(Builder.createButton(removeAction));

      getTablePopupMenu().add(Builder.createMenuItem(viewAction));
      getTablePopupMenu().add(Builder.createMenuItem(detailsAction));

      getTable().addMouseListener(new DoubleClickListener(viewAction));
    }
    else { // "sendq" / "pollq" (?)
      getButtonPanel().add(Builder.createButton(editAction));
      getButtonPanel().add(Builder.createButton(removeAction));
      getButtonPanel().add(Builder.createButton(suspendAction));
      getButtonPanel().add(Builder.createButton(resumeAction));
      getButtonPanel().add(Builder.createButton(viewAction));
     
      getTablePopupMenu().add(Builder.createMenuItem(editAction));
      getTablePopupMenu().add(Builder.createMenuItem(removeAction));
      getTablePopupMenu().add(Builder.createMenuItem(detailsAction));
      getTablePopupMenu().addSeparator();
      getTablePopupMenu().add(Builder.createMenuItem(retryAction));
      getTablePopupMenu().addSeparator();
      getTablePopupMenu().add(Builder.createMenuItem(suspendAction));
      getTablePopupMenu().add(Builder.createMenuItem(resumeAction));
      getTablePopupMenu().addSeparator();
      getTablePopupMenu().add(Builder.createMenuItem(viewAction));   

      getTable().addMouseListener(new DoubleClickListener(editAction));
    }
   
    updateLabels();
    updateActions();
  }
View Full Code Here


    contactTable.setIntercellSpacing(new java.awt.Dimension(2, 1));
    contactTable.setBounds(0, 0, 50, 50);
    contactTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
    contactTable.getSelectionModel().addListSelectionListener(this);
    contactTable.addMouseListener(new PopupListener(tablePopupMenu));
    contactTable.addMouseListener(new DoubleClickListener(new TableDoubleClickAction()));
    contactTable.setTransferHandler(new ContactTransferHandler());
    contactTable.setDragEnabled(true);
   
    contactTable.setDefaultRenderer(String.class, new StringCellRenderer());
   
View Full Code Here

   
    getTablePopupMenu().add(Builder.createMenuItem(viewAction));
    getTablePopupMenu().add(Builder.createMenuItem(saveAction));
    getTablePopupMenu().add(Builder.createMenuItem(deleteAction));
   
    getTable().addMouseListener(new DoubleClickListener(viewAction));
   
    updateLabels();
    updateActions();
  }
View Full Code Here

   
    getTablePopupMenu().add(Builder.createMenuItem(viewAction));
    getTablePopupMenu().add(Builder.createMenuItem(saveAction));
    getTablePopupMenu().add(Builder.createMenuItem(deleteAction));
   
    getTable().addMouseListener(new DoubleClickListener(viewAction));
   
    updateLabels();
    updateActions();
  }
View Full Code Here

TOP

Related Classes of org.xnap.commons.gui.util.DoubleClickListener

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.