Package nextapp.echo2.app.event

Examples of nextapp.echo2.app.event.ActionListener


    protected void selectObject() {
        final FmJbsBaseObjectList fmList = new FmJbsBaseObjectList(this.getFormTitle());
        fmList.setPnList(this.createPnList());
        fmList.showForm();
        fmList.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


       
        grdMain.add(new Label(JbsL10N.getString("Dunning.dunningText")));
        grdMain.add(this.txDunningText);
       
        JbsButton btnPrint = new JbsButton("Print");
        btnPrint.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent arg0) {
                printDunning();
            }
        });
        grdMain.add(btnPrint);
View Full Code Here

    @Override
    protected void createControls() throws Exception {
        super.createControls();
        this.btnDoDunning = new JbsObjectToolPaneButton("add.png",JbsL10N.getString("Dunning.doDunning"),false);
        this.btnDoDunning.setToolTipText(JbsL10N.getString("Dunning.doDunning"));
        this.btnDoDunning.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                doDunning();
            }

        });

        this.btnPrintSingleDunning = new JbsObjectToolPaneButton("print.png",JbsL10N.getString("Generic.print"),true);
        this.btnPrintSingleDunning.setToolTipText(JbsL10N.getString("Generic.print"));
        this.btnPrintSingleDunning.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                printSingleDunning();
            }
        });
       
        this.btnPrintUnprinted = new JbsObjectToolPaneButton("print.png",JbsL10N.getString("Dunning.printUnprinted"),false);
        this.btnPrintUnprinted.setToolTipText(JbsL10N.getString("Dunning.printUnprintedToolTip"));
        this.btnPrintUnprinted.addActionListener(new ActionListener() {

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

       
    }
   
    protected void doDunning() {
        FmWizard fmWizard = new FmWizard(new DunningWizard(), JbsL10N.getString("DunningWizard.title"));
        fmWizard.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                logger.debug("Reloading");
                reload();
            }
View Full Code Here

            final DunningsPrinter dunningsPrinter = new DunningsPrinter(ClientGlobals.getUser(), ClientGlobals.getCompany());
            if (dunningsPrinter.getDunnings().size()==0) {
                JbsOptionPane.showMessageDialog(this, JbsL10N.getString("Dunning.noUnprintedDunnings"), JbsL10N.getString("Dunning.printTitle"), JbsOptionPane.INFORMATION_MESSAGE);
            } else {
                JbsOptionPane dlg = JbsOptionPane.showConfirmDialog(this, JbsL10N.getString("Dunning.printUnprintedRequest"), JbsL10N.getString("Dunning.printTitle"), JbsOptionPane.YES_NO_OPTION);
                dlg.addActionListener(new ActionListener() {

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

        }
    }
   
    protected void printUnprinted(final DunningsPrinter dunningsPrinter) {
        final FmJbsReportOptions fmReportOptions = new FmJbsReportOptions("dunning");
        fmReportOptions.addActionListener(new ActionListener() {

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

        }
    }
   
    protected void printSingleDunning() {
        final FmJbsReportOptions fmReportOptions = new FmJbsReportOptions("dunning");
        fmReportOptions.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                if (arg0.getActionCommand().equals(JbsDialogWindowOKCancel.ACTION_OK)) {
                    printSingleDunning(fmReportOptions.getSelectedPageTemplate(), fmReportOptions.getSelectedReportTemplate());
                }
View Full Code Here

    }

    @Override
    protected void fillToolpane() {
        JbsObjectToolPaneButton btnAdd = new JbsObjectToolPaneButton("add.png",JbsL10N.getString("StdList.addCaption"),false);
        btnAdd.addActionListener(new ActionListener() {

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

   
    protected void addContact() {
        final FmJbsBaseObjectList 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 addContact(final Contact contact) {
        //If the contact is already assigned to another address we have to ask if the user really wants to reassign it, otherwise we can just add it
        if ((contact.getAddress()!=null) && ((Address)getParentObject()!=contact.getAddress())) {
            JbsOptionPane msgBox = JbsOptionPane.showConfirmDialog(this, JbsL10N.getString("Contact.alreadyAssignedRequest"), JbsL10N.getString("Contact.contact"), JbsOptionPane.YES_NO_OPTION);
            msgBox.addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent arg0) {
                    if (arg0.getActionCommand().equals(JbsOptionPane.YES_OPTION)) {
                        doAddContact(contact);
                    }
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.