Package nextapp.echo2.app.event

Examples of nextapp.echo2.app.event.ActionListener


   
    protected void printLetters() {
        final LetterPrinter letterPrinter = new LetterPrinter(((MassLetterWizard)this.getWizard()).getLetterTemplate(), ((MassLetterWizard)this.getWizard()).getCreatedLetters(), ClientGlobals.getUser(), ClientGlobals.getCompany());

        final FmJbsReportOptions fmReportOptions = new FmJbsReportOptions("letter");
        fmReportOptions.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                if (arg0.getActionCommand().equals(JbsDialogWindowOKCancel.ACTION_OK)) {
                    letterPrinter.setPageTemplate(fmReportOptions.getSelectedPageTemplate());
                    letterPrinter.setReportTemplate(fmReportOptions.getSelectedReportTemplate());
View Full Code Here


    Logger logger = Logger.getLogger(JbsContactSelectField.class);

    public JbsContactSelectField() {
        this.getTextField().setEnabled(false);
        this.setSelectedListener(null);
        this.getBtnSelect().addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent arg0) {
                selectContact();
View Full Code Here

    protected void selectContact() {
        fmSelectContact = new FmJbsBaseObjectList(JbsL10N.getString("Contact.selectContact"));
        fmSelectContact.setPnList(new PnContactList());
        fmSelectContact.showForm();
        fmSelectContact.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent arg0) {
                if (arg0.getActionCommand().equals(JbsDialogWindowOKCancel.ACTION_OK)) {
View Full Code Here

    protected void createCompontents() {
        this.txUserName = new JbsTextField();
        this.txPassword = new PasswordField();
        this.btnLogin = new JbsButton(JbsL10N.getString("Login.btnLogin"));
        this.btnLogin.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent arg0) {
                doLogin();
View Full Code Here

            fmSelectCompany = new FmSelectCompany();
        }


        if (fmSelectCompany != null) {
            fmSelectCompany.addActionListener(new ActionListener() {

                private static final long serialVersionUID = 1L;

                public void actionPerformed(ActionEvent arg0) {
                    if (arg0.getActionCommand() == JbsDialogWindowOKCancel.ACTION_OK) {
View Full Code Here

        if (ksListener != null)
            rowMain.remove(ksListener);

        ksListener = new KeyStrokeListener();
        ksListener.addKeyCombination(KeyStrokeListener.VK_RETURN, "OK");
        ksListener.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent arg0) {
                logger.debug(arg0.getActionCommand());
View Full Code Here

        pnPayments = new PnPayments(this);
       
        btnToCreditNote = new BtnToolbar("tocreditnote.png");
        btnToCreditNote.setText(JbsL10N.getString("Transaction.toCreditNote"));
        btnToCreditNote.setToolTipText(JbsL10N.getString("Transaction.toCreditNote"));
        btnToCreditNote.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                createCreditNote();
            }
        });
View Full Code Here

        try {
            final CreditNote creditNote = new CreditNote();
            String userNumber = getNextUserNumber(CreditNote.class);
            creditNote.setDataFromTransaction(getInvoice(), userNumber);
            JbsOptionPane dialog = JbsOptionPane.showMessageDialog(this, JbsL10N.getString("Invoice.msgToCreditNote"), JbsL10N.getString("Offer.messageBoxTitle"), JbsOptionPane.INFORMATION_MESSAGE);
            dialog.addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent arg0) {
                    FmCreditNoteEdit fmCreditNoteEdit = new FmCreditNoteEdit();
                    fmCreditNoteEdit.showForm(DlgState.dsCopy, creditNote);
                    addAction(PnInvoiceEdit.ACTION_TOCREDITNOTE);
View Full Code Here

  }
 
  protected void checkUserNameField() {
    if (txUserName.getText().trim().equals("")) {
      JbsOptionPane messageDialog=JbsOptionPane.showMessageDialog(this, JbsL10N.getString("FmLogin.noUserName"), JbsL10N.getString("Generic.error"), JbsOptionPane.ERROR_MESSAGE);
      messageDialog.addActionListener(new ActionListener() {
        private static final long serialVersionUID = 1L;

        public void actionPerformed(ActionEvent arg0) {
          checkPasswordField();
        }
View Full Code Here

  }
 
  protected void checkPasswordField() {
    if (txUserName.getText().trim().equals("")) {
      JbsOptionPane messageDialog=JbsOptionPane.showMessageDialog(this, JbsL10N.getString("FmLogin.noPassword"), JbsL10N.getString("Generic.error"), JbsOptionPane.ERROR_MESSAGE);
      messageDialog.addActionListener(new ActionListener() {
        private static final long serialVersionUID = 1L;

        public void actionPerformed(ActionEvent arg0) {
          doPost();
        }
View Full Code Here

TOP

Related Classes of nextapp.echo2.app.event.ActionListener

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.