Package nextapp.echo2.app.event

Examples of nextapp.echo2.app.event.ActionListener


    }
   
    protected void mustReload() {
        EventListener[] listeners= this.getEventListenerList().getListeners(ActionListener.class);
        for (int i = 0; i < listeners.length; i++) {
            ActionListener actionListener = (ActionListener) listeners[i];
            try {
                actionListener.actionPerformed(new ActionEvent(this, TblInvoicesForDunning.TBL_MUSTRELOAD));
            } catch (Throwable t) {
                logger.error("Error adding action.",t);
            }
        }
    }
View Full Code Here


    public void addColButtons() {
        Column colButtons = new Column();
        JbsButton btnAdd = new JbsButton("+");
        //btnAdd.setWidth(new JbsExtent(20));
        btnAdd.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

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

    private static final long serialVersionUID = -8714588054989331071L;

    public FmOfferEdit() {
        super(JbsL10N.getString("Offer.formTitle"));
        PnOfferEdit pnOfferEdit = new PnOfferEdit();
        pnOfferEdit.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                if (!arg0.getActionCommand().equals("")) {
                    cancelDialog();
                }
View Full Code Here

            switch (column) {
                case 0:
                    if (selectable) {
                        final CheckBox checkBox = new CheckBox("");
                        checkBox.setSelected((Boolean) value);
                        checkBox.addActionListener(new ActionListener() {

                            public void actionPerformed(ActionEvent arg0) {
                                if (checkBox.isSelected())
                                    tableModel.selectInvoice(invoice);
                                else
                                    tableModel.deSelectInvoice(invoice);
                            }
                        });
                        component = checkBox;
                    } else {
                        component = new JbsLabel();
                    }
                    break;
                case 4 :
                    component = super.getTableCellRendererComponent(table, value, column, row);
                    TableLayoutData rightLayout = new TableLayoutData();
                    rightLayout.setAlignment(Alignment.ALIGN_RIGHT);
                    component.setLayoutData(rightLayout);
                    break;
                case 5 :
                    component = super.getTableCellRendererComponent(table, value, column, row);
                    TableLayoutData sumPayedLayout = new TableLayoutData();
                    sumPayedLayout.setAlignment(Alignment.ALIGN_RIGHT);
                    component.setLayoutData(sumPayedLayout);
                    break;
                case 6:
                    final JbsButton btnShowInvoice = new JbsButton("Ansehen");
                    btnShowInvoice.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent arg0) {
                            FmInvoiceEdit fmInvoiceEdit = new FmInvoiceEdit();
                            fmInvoiceEdit.addActionListener(new ActionListener() {
                                public void actionPerformed(ActionEvent arg0) {
                                    //tblInvoices.mustReload();
                                }
                            });
                            fmInvoiceEdit.showForm(DlgState.dsEdit, invoice);
View Full Code Here

    protected void createControls() {
        this.tbMain = new JbsToolbar();
        this.setInvoices(this.fetchInvoices());
        this.tblInvoices = new TblInvoicesForDunning(this.getInvoices(),false);
        this.btnDoDunning = new BtnToolbar("invoice.png");
        this.btnDoDunning.addActionListener(new ActionListener() {

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

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

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

            private static final long serialVersionUID = 1L;

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

    protected void selectCustomer() {
        fmSelectCustomer = new FmJbsBaseObjectList(JbsL10N.getString("Customer.selectCustomer"));
        fmSelectCustomer.setPnList(new PnCustomerList());
        fmSelectCustomer.showForm();
        fmSelectCustomer.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

           
            MassLetterWizard massLetterWizard = new MassLetterWizard();
            massLetterWizard.setContacts(customers);

            FmWizard fmWizard = new FmWizard(massLetterWizard, JbsL10N.getString("MassLetterWizard.title"));
            fmWizard.addActionListener(new ActionListener() {

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

    protected void fillToolpane() {
       
       
        JbsObjectToolPaneButton btnNewTransaction = new JbsObjectToolPaneButton("offer.png", JbsL10N.getString("Offer.new"), true);
        btnNewTransaction.setToolTipText(JbsL10N.getString("Offer.newTooltip"));
        btnNewTransaction.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                Address address = (Address) getSelectedJbsBaseObject();
               
                FmOfferEdit fmOfferEdit = new FmOfferEdit();
                fmOfferEdit.showForm(address);
               
            }
        });
        this.getToolPane().addControl(JbsL10N.getString(PnListModule.TOOLPANEGROUP_ACTIONS), btnNewTransaction);
       
       
       
        JbsObjectToolPaneButton btnNewPayment = new JbsObjectToolPaneButton("invoice.png", JbsL10N.getString("Invoice.new"), true);
        btnNewPayment.setToolTipText(JbsL10N.getString("Invoice.newTooltip"));
        btnNewPayment.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                Address address = (Address) getSelectedJbsBaseObject();
                FmInvoiceEdit fmInvoiceEdit = new FmInvoiceEdit();
                fmInvoiceEdit.showForm(address);
View Full Code Here

    @Override
    protected void drawPage() {
        super.drawPage();
       
        btnPrint = new JbsButton(JbsL10N.getString("MassLetterWizard.btnPrint"));
        btnPrint.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                printLetters();
            }
        });
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.