Package java.awt.event

Examples of java.awt.event.ActionListener.actionPerformed()


        updateName();
      }
      public void updateName() {
        name = tfName.getText();
        if (name.equals("")) name = null;
        actionListener.actionPerformed(new ActionEvent(pane, 1, (name==null) ? resources.getString("UnnamedMapper") : name));
      }
    });

    table.addSelectionListener(new ListSelectionListener() {
      public void valueChanged(ListSelectionEvent event) {
View Full Code Here


      }
    });

    if (listener!=null) ok.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        actionListener.actionPerformed(new ActionEvent(pane, 2,""));
      }
    });
   
    return pane;
  }
View Full Code Here

    }

    private void fireEvent(ActionEvent e) {
        for (int i = 0; i < listeners.size(); i++) {
            ActionListener l = (ActionListener) listeners.get(i);
            l.actionPerformed(e);
        }
    }
}

class Field {
View Full Code Here

                    Globals.lang("This entry has no BibTeX key. Generate key now?"),
                    Globals.lang("Download file"), JOptionPane.OK_CANCEL_OPTION,
                    JOptionPane.QUESTION_MESSAGE);
            if (answer == JOptionPane.OK_OPTION) {
                ActionListener l = entryEditor.generateKeyAction;
                l.actionPerformed(null);
                bibtexKey = entryEditor.getEntry().getCiteKey();
            }
        }
        DownloadExternalFile def = new DownloadExternalFile(frame,
                frame.basePanel().metaData(), bibtexKey);
View Full Code Here

                "Pattern");
        ArrayList list = (ArrayList) listeners.clone();
        ActionListener listener;
        for (int i = 0; i < list.size(); i++) {
            listener = (ActionListener) list.get(i);
            listener.actionPerformed(event);
        }
    }
}
View Full Code Here

    }
   
    private void fireActionEvent(ActionEvent evt) {
        for (Enumeration en = listeners.elements(); en.hasMoreElements();) {
            ActionListener l = (ActionListener)en.nextElement();
            l.actionPerformed(evt);
        }
    }
   
    private void createChooser() {
        if(chooser == null) {
View Full Code Here

    // right click
    if (button == MouseEvent.BUTTON2 || button == MouseEvent.BUTTON3) {
      ActionListener actionListener = _pane.getRightClickActionListener(clickedTabIndex);
      if (actionListener != null) {
        actionListener.actionPerformed(new ActionEvent(e, clickedTabIndex, "right-click"));
      }
    }
  }

  @Override
View Full Code Here

    valueDistributionCheckBox.addActionListener(actionListener);
    patternFinderCheckBox.addActionListener(actionListener);
    columnsTextField.getDocument().addDocumentListener(new DCDocumentListener() {
      @Override
      protected void onChange(DocumentEvent event) {
        actionListener.actionPerformed(null);
      }
    });

    final DCPanel quickAnalysisPanel = new DCPanel().setTitledBorder("Quick analysis");
    WidgetUtils.addToGridBag(DCLabel.dark("Max columns per analyzer:"), quickAnalysisPanel, 0, 0);
View Full Code Here

    };
    proxyCheckBox.addActionListener(actionListener);
    proxyAuthCheckBox.addActionListener(actionListener);

    // use ActionListener to initialize components
    actionListener.actionPerformed(null);

    final DCPanel networkTabPanel = new DCPanel(WidgetUtils.BG_COLOR_BRIGHT, WidgetUtils.BG_COLOR_BRIGHTEST);
    networkTabPanel.setLayout(new BorderLayout());
    networkTabPanel.add(proxyCheckBox, BorderLayout.NORTH);
    networkTabPanel.add(proxyPanel, BorderLayout.CENTER);
View Full Code Here

    topPanel.add(titleC, BorderLayout.WEST);

    JLabel icon = new JLabel(Activator.desktop.tipIcon);
    icon.addMouseListener(new MouseAdapter() {
  public void mouseClicked(MouseEvent ev) {
    nextAction.actionPerformed(null);
  }
      });
    icon.setToolTipText(nextButton.getText());

    add(icon,        BorderLayout.WEST);
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.