Examples of addMouseListener()


Examples of org.eclipse.swt.widgets.Shell.addMouseListener()

      public void keyReleased(KeyEvent e) {
        if (e.character == SWT.ESC)
          shell.close();
      }
    });
    shell.addMouseListener(new MouseAdapter() {
      public void mouseDown(MouseEvent e) {
        isDragging = true;
        downX = e.x;
        downY = e.y;
      }
View Full Code Here

Examples of org.eclipse.swt.widgets.Table.addMouseListener()

      }
    });
    table.setItemCount(tableColumns.size());
   
    table.addMouseListener(new MouseAdapter() {
     
      public void mouseDown(MouseEvent arg0) {
        mousePressed = true;
        selectedItem = table.getItem(new Point(arg0.x,arg0.y));
      }
View Full Code Here

Examples of org.eclipse.swt.widgets.ToolBar.addMouseListener()

     * Tells the DropDownAction that it should listen to mouse events on a given
     * ToolBarManager. Used to display the Menu when the mouse is clicked.
     */
    public IAction listenToMouseOn(IToolBarManager tbm) {
        final ToolBar tb = ((ToolBarManager)tbm).getControl();
        tb.addMouseListener(new MouseAdapter() {
            public void mouseDown(MouseEvent e) {
                ToolItem ti = tb.getItem(new Point(e.x, e.y));
                if (!(ti.getData() instanceof ActionContributionItem)) return;

                ActionContributionItem actionContributionItem = (ActionContributionItem) ti.getData();
View Full Code Here

Examples of org.eclipse.swt.widgets.Tree.addMouseListener()

                    writableRepoSelected = repo.canWrite();
                }
                addBundlesAction.setEnabled(writableRepoSelected);
            }
        });
        tree.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseUp(MouseEvent ev) {
                Object element = ((IStructuredSelection) viewer.getSelection()).getFirstElement();
                if (element instanceof ContinueSearchElement) {
                    try {
View Full Code Here

Examples of org.eobjects.datacleaner.widgets.DCLabel.addMouseListener()

        }
      }
    };

    addMouseListener(invokeCheckBoxMouseListener);
    datastoreNameLabel.addMouseListener(invokeCheckBoxMouseListener);

    final JButton editButton = createEditButton(datastore);
    final JButton removeButton = createRemoveButton(datastore);

    setBorder(WidgetUtils.BORDER_LIST_ITEM);
View Full Code Here

Examples of org.eobjects.datacleaner.widgets.tree.SchemaTree.addMouseListener()

            _treePanel.removeAll();
            Injector injectorWithDatastore = _injectorBuilder.with(Datastore.class, _datastore)
                .with(AnalysisJobBuilder.class, null).createInjector();

            final SchemaTree schemaTree = injectorWithDatastore.getInstance(SchemaTree.class);
            schemaTree.addMouseListener(new MouseAdapter() {
              @Override
              public void mouseClicked(MouseEvent e) {
                TreePath path = schemaTree.getSelectionPath();
                if (path == null) {
                  return;
View Full Code Here

Examples of org.fenrir.yggdrasil.ui.widget.TrayNotificationWidget.addMouseListener()

        }
        else{
            trayLabel = new TrayNotificationWidget(entry.getIcon());
            trayZone.add(trayLabel.getWidget());
            trayZoneElements.put(entry.getNotificationId(), trayLabel);
            trayLabel.addMouseListener(new MouseInputAdapter()
            {
                @Override
                public void mouseClicked(MouseEvent event)
                {
                    showMessagesPopup();                               
View Full Code Here

Examples of org.geotools.swing.JMapPane.addMouseListener()

        // Create PopUp menu
        PointPopUpMenu pointPopUpMenu = new PointPopUpMenu(pointSelectedHelper, MainView.this);

        //Add listener to components that can bring up popup menus.
        MapMouseAdapter popupListener = new MapMouseListener(pointPopUpMenu.getPopupMenu(), pointSelectedHelper);
        mapPane.addMouseListener(popupListener);
    }

    private void resetToNewShape() {
        points.clear();
        startPoint = null;
View Full Code Here

Examples of org.jamesii.gui.application.task.TaskMonitor.addMouseListener()

  public JComponent getStatusBar() {
    Box hBox = Box.createHorizontalBox();
    final TaskMonitor tm = new TaskMonitor();
    MouseAdapter mA = new StatusBarMouseAdapter(tm);
    tm.addMouseMotionListener(mA);
    tm.addMouseListener(mA);

    Dimension prefSize = tm.getPreferredSize();
    tm.setPreferredSize(new Dimension(450, prefSize.height));
    tm.setMaximumSize(tm.getPreferredSize());
    hBox.add(Box.createHorizontalGlue());
View Full Code Here

Examples of org.jboss.as.cli.gui.component.CLIOutput.addMouseListener()

        DoOperationActionListener opListener = new DoOperationActionListener(cliGuiCtx);
        CommandLine cmdLine = new CommandLine(opListener);
        cliGuiCtx.setCommandLine(cmdLine);

        output.addMouseListener(new SelectPreviousOpMouseAdapter(cliGuiCtx, opListener));

        JPanel mainPanel = makeMainPanel(tabs, cmdLine);
        cliGuiCtx.setMainPanel(mainPanel);

        return cliGuiCtx;
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.