Package java.awt.event

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


    };

    closeButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {       
        dialog.setVisible(false);
        saveChoice.actionPerformed(null);
      }
    });
    dialog.getRootPane().setDefaultButton(closeButton);
   
    dialog.addWindowListener(new WindowAdapter() {
View Full Code Here


    dialog.getRootPane().setDefaultButton(closeButton);
   
    dialog.addWindowListener(new WindowAdapter() {
      @Override
    public void windowClosing(WindowEvent e) {
        saveChoice.actionPerformed(null);
      }
    });
   
    ((JComponent)dialog.getContentPane()).registerKeyboardAction(saveChoice,
      KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0),
View Full Code Here

 
  protected void fireUnitChanged()
  {
        final ActionListener l = al;
    if( l != null ) {
      l.actionPerformed( new ActionEvent( this, ActionEvent.ACTION_PERFORMED, getText() ));
    }
  }

  /**
   *  Registers a new listener to be informed
View Full Code Here

  private void fireActionPerformed()
  {
    final ActionListener l = al;
    if( l != null ) {
      l.actionPerformed( new ActionEvent( this, ActionEvent.ACTION_PERFORMED, null ));
    }
  }

// ---------------- ActionListener interfaces ----------------
View Full Code Here

                  if (c != 0)
                  { // ignore null chars
                     ActionListener action = triggeredActions.get((char) c);
                     if (action != null)
                     {
                        action.actionPerformed(null);
                     }
                     else
                     {
                        putChar(c, true);
                     }
View Full Code Here

      selectProperty();
    } else if (e.getSource() == m_StatusBox) {
      // notify any listeners
      for (int i = 0; i < m_Listeners.size(); i++) {
  ActionListener temp = ((ActionListener)m_Listeners.elementAt(i));
  temp.actionPerformed(new ActionEvent(this,
               ActionEvent.ACTION_PERFORMED,
               "Editor status change"));
      }

      // Toggles whether the custom property is used
View Full Code Here

{
   ActionListener al = action_listener;

   if (al != null) {
      ActionEvent aevt = new ActionEvent(this,0,action_command);
      al.actionPerformed(aevt);
    }
}


View Full Code Here

    protected void processActionEvent(ActionEvent e) {
        for (Iterator<?> i = actionListeners.getUserIterator(); i.hasNext();) {
            ActionListener listener = (ActionListener) i.next();
            switch (e.getID()) {
                case ActionEvent.ACTION_PERFORMED:
                    listener.actionPerformed(e);
                    break;
            }
        }
    }
View Full Code Here

    protected void processActionEvent(ActionEvent e) {
        for (Iterator<?> i = actionListeners.getUserIterator(); i.hasNext();) {
            ActionListener listener = (ActionListener) i.next();
            switch (e.getID()) {
                case ActionEvent.ACTION_PERFORMED:
                    listener.actionPerformed(e);
                    break;
            }
        }
    }
View Full Code Here

        public void actionPerformed(ActionEvent e) {
            ActionListener[] actionListeners = getActionListeners();
            for (int i = 0; i < actionListeners.length; i++) {
                ActionListener actionListener = actionListeners[i];
                actionListener.actionPerformed(new ActionEvent(this, actionList.indexOf(this), "open"));
            }
        }

        public File getFile() {
            return file;
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.