Examples of ActionListener


Examples of mdes.slick.sui.event.ActionListener

          m_login.tabKeyDefault();
      }

      if (key == (Input.KEY_ESCAPE)) {
        if(m_confirm==null){
          ActionListener yes = new ActionListener() {
            public void actionPerformed(ActionEvent arg0) {
              try {
                System.exit(0);
              } catch (Exception e) {
                e.printStackTrace();
              }

            }
          };
          ActionListener no = new ActionListener() {
            public void actionPerformed(ActionEvent arg0) {
              m_confirm.setVisible(false);
              getDisplay().remove(m_confirm);
              m_confirm = null;
            }
View Full Code Here

Examples of nextapp.echo2.app.event.ActionListener

    protected final String IMG_DROPDOWN = Styles.IMAGE_PATH + "blank.gif";
   
    public JbsMenuLabel(String text) {
        super();
        this.setBtnMain(new JbsButton(""));
        this.getBtnMain().addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                logger.debug("popup");
                setExpanded(!isExpanded());
                collapseAllOther();
View Full Code Here

Examples of org.apache.click.ActionListener

        getForm().setButtonAlign(Form.ALIGN_RIGHT);
        getForm().setErrorsPosition(Form.POSITION_MIDDLE);

        previous = new Submit("previous");
        previous.setLabel("< Previous");
        getPreviousButton().setActionListener(new ActionListener() {
            public boolean onAction(Control source) {
                return onPrevious();
            }
        });
        form.add(previous);
        if (!getWizardPage().hasPreviousStep(this)) {
            previous.setDisabled(true);
        }

        next = new Submit("next");
        next.setLabel("Next >");
        getNextButton().setActionListener(new ActionListener() {
            public boolean onAction(Control source) {
                return onNext();
            }
        });
        form.add(next);
        if (!getWizardPage().hasNextStep(this)) {
            next.setDisabled(true);
        }

        finish = new Submit("Finish");
        getFinishButton().setActionListener(new ActionListener() {
            public boolean onAction(Control source) {
                return onFinish();
            }
        });
        form.add(finish);
        if (!getWizardPage().isLastStep(this)) {
            finish.setDisabled(true);
        }

        cancel = new Submit("Cancel");
        getCancelButton().setActionListener(new ActionListener() {
            public boolean onAction(Control source) {
                return onCancel();
            }
        });
        form.add(cancel);
View Full Code Here

Examples of org.apache.cocoon.forms.event.ActionListener

    public static class AddRowActionDefinition extends RepeaterActionDefinition {
       
        public AddRowActionDefinition(String repeaterName) {
            super(repeaterName);
           
            this.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent event) {
                    Repeater repeater = ((RepeaterAction)event.getSource()).getRepeater();
                    repeater.addRow();
                }
            });
View Full Code Here

Examples of org.apache.cocoon.woody.event.ActionListener

public class AddRowActionDefinition extends RepeaterActionDefinition {
   
    public AddRowActionDefinition(String repeaterName) {
        super(repeaterName);
       
        this.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent event) {
                Repeater repeater = ((RepeaterAction)event.getSource()).getRepeater();
                repeater.addRow();
            }
        });
View Full Code Here

Examples of org.cybergarage.upnp.control.ActionListener

    getActionData().setActionListener(listener);
  }
 
  public boolean performActionListener(ActionRequest actionReq)
  {
    ActionListener listener = (ActionListener)getActionListener();
    if (listener == null)
      return false;
    ActionResponse actionRes = new ActionResponse();
    setStatus(UPnPStatus.INVALID_ACTION);
    clearOutputAgumentValues();
    if (listener.actionControlReceived(this) == true) {
      actionRes.setResponse(this);
    }
    else {
      UPnPStatus upnpStatus = getStatus();
      actionRes.setFaultResponse(upnpStatus.getCode(), upnpStatus.getDescription());
View Full Code Here

Examples of org.eclipse.draw2d.ActionListener

          // Do nothing - the button can only be pressed with a mouse
        }
      };
      removeButton.setOpaque(false);
      removeButton.setToolTip(getRemoveToolTip());
      removeButton.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent event) {
          removeEntry();
        }
      });
     
      addButton = new NoBorderButton(CommonUIPlugin.getDefault().getImageRegistry().get(ICommonUIConstants.ICON_TRAY_CATEGORY_ADD_BUTTON)) {
        public void handleKeyPressed(KeyEvent event) {
          // Do nothing - the button can only be pressed with a mouse
        }
        public void handleKeyReleased(KeyEvent event) {
          // Do nothing - the button can only be pressed with a mouse
        }
      };
      addButton.setOpaque(false);
      addButton.setToolTip(getAddToolTip());
      addButton.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent event) {
          addEntry();
        }
      });
     
View Full Code Here

Examples of org.quna.rsc.ActionListener

    @Override
    void process (ByteBuffer data) {
        try {
            String string = StringByteBufferConverter.decodeToString (data);
            Message message = new Message (string);
            ActionListener listener = listenerMap.get (message.getMessageType ());
            if (listener != null) {
                listener.process (message);
            }
        } catch (ParseException ex) {
            logger.log (Level.SEVERE, "", ex);
        }
    }
View Full Code Here

Examples of sos.scheduler.editor.actions.listeners.ActionListener


  public ActionForm(Composite parent, int style, ActionsDom dom, Element action, ActionsForm _gui) {
    super(parent, style);          
    //gui = _gui;
    listener = new ActionListener(dom, action, _gui);
    initialize();
    setToolTipText();

  }
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.