Package nextapp.echo2.app.event

Examples of nextapp.echo2.app.event.ActionListener


        super.createComponents();
       
        btnToDeliveryNote = new BtnToolbar("todelivnote.png");
        btnToDeliveryNote.setText(JbsL10N.getString("Transaction.toDeliveryNote"));
        btnToDeliveryNote.setToolTipText(JbsL10N.getString("Transaction.toDeliveryNote"));
        btnToDeliveryNote.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                createDeliveryNote();
            }
        });
       
       
        btnToInvoice = new BtnToolbar("toinvoice.png");
        btnToInvoice.setText(JbsL10N.getString("Transaction.toInvoice"));
        btnToInvoice.setToolTipText(JbsL10N.getString("Transaction.toInvoice"));
        btnToInvoice.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                createInvoice();
            }
        });
       
        btnToWorkOrder = new BtnToolbar("toworkorder.png");
        btnToWorkOrder.setText(JbsL10N.getString("Transaction.toWorkOrder"));
        btnToWorkOrder.setToolTipText(JbsL10N.getString("Transaction.toWorkOrder"));
        btnToWorkOrder.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                createWorkOrder();
            }
        });
       
        btnToOrderConfirmation = new BtnToolbar("toorderconfirmation.png");
        btnToOrderConfirmation.setText(JbsL10N.getString("Transaction.toOrderConfirmation"));
        btnToOrderConfirmation.setToolTipText(JbsL10N.getString("Transaction.toOrderConfirmation"));
        btnToOrderConfirmation.addActionListener(new ActionListener() {

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


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

                public void actionPerformed(ActionEvent arg0) {
                    FmInvoiceEdit fmInvoiceEdit = new FmInvoiceEdit();
                    fmInvoiceEdit.showForm(DlgState.dsCopy, invoice);
                    addAction(PnOfferEdit.ACTION_TOINVOICE);
View Full Code Here

        try {
            final DeliveryNote deliveryNote = new DeliveryNote();
            String userNumber = getNextUserNumber(DeliveryNote.class);
            deliveryNote.setDataFromTransaction(getOffer(), userNumber);
            JbsOptionPane dialog = JbsOptionPane.showMessageDialog(this, JbsL10N.getString("Offer.msgToDeliveryNote"), JbsL10N.getString("Offer.messageBoxTitle"), JbsOptionPane.INFORMATION_MESSAGE);
            dialog.addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent arg0) {
                    FmDeliveryNoteEdit fmDeliveryNoteEdit = new FmDeliveryNoteEdit();
                    fmDeliveryNoteEdit.showForm(DlgState.dsCopy, deliveryNote);
                    addAction(PnOfferEdit.ACTION_TODELIVERYNOTE);
View Full Code Here

        try {
            final WorkOrder workOrder = new WorkOrder();
            String userNumber = getNextUserNumber(WorkOrder.class);
            workOrder.setDataFromTransaction(getOffer(), userNumber);
            JbsOptionPane dialog = JbsOptionPane.showMessageDialog(this, JbsL10N.getString("Offer.msgToWorkOrder"), JbsL10N.getString("Offer.messageBoxTitle"), JbsOptionPane.INFORMATION_MESSAGE);
            dialog.addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent arg0) {
                    FmWorkOrderEdit fmWorkOrderEdit = new FmWorkOrderEdit();
                    fmWorkOrderEdit.showForm(DlgState.dsCopy, workOrder);
                    addAction(PnTransactionEdit.ACTION_TOWORKORDER);
View Full Code Here

        try {
            final OrderConfirmation orderConfirmation = new OrderConfirmation();
            String userNumber = getNextUserNumber(OrderConfirmation.class);
            orderConfirmation.setDataFromTransaction(getOffer(), userNumber);
            JbsOptionPane dialog = JbsOptionPane.showMessageDialog(this, JbsL10N.getString("Offer.msgToOrderConfirmation"), JbsL10N.getString("Offer.messageBoxTitle"), JbsOptionPane.INFORMATION_MESSAGE);
            dialog.addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent arg0) {
                    FmOrderConfirmationEdit fmOrderConfirmationEdit = new FmOrderConfirmationEdit();
                    fmOrderConfirmationEdit.showForm(DlgState.dsCopy, orderConfirmation);
                    addAction(PnTransactionEdit.ACTION_TOORDERCONFIRMATION);
View Full Code Here

    }

    @Override
    protected ActionListener getSortButtonListener(int column, SortableTableModel arg1) {
        final int sortColumn = column;
        return new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                getTblMJbsBaseObject().sortByColumn(sortColumn);
            }
        };
View Full Code Here

        btnInsert = new JbsButton("+");
        //TODO: Remove completely when really not used anymore.
        //At the moment it's not used because all datasets are ordered by their dates.
        btnInsert.setVisible(false);
        btnInsert.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

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

        btnRemove = new JbsButton("-");
        btnRemove.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

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

    protected void createComponents() {
        this.tpMain = new JbsTabbedPane();
        this.tbMain = new JbsToolbar();
        this.btnPrint = new BtnToolbar("print.png");
        this.btnPrint.setText(JbsL10N.getString("Generic.print"));
        this.btnPrint.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

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

        return "transaction";
    }
   
    protected void printTransaction() {
        final FmJbsReportOptions fmReportOptions = new FmJbsReportOptions(this.getReportTypeId());
        fmReportOptions.addActionListener(new ActionListener() {

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

        mainRow.setInsets(new Insets(new JbsExtent(11), new JbsExtent(11)));
       
        btnPrevious = new JbsButton(this.getPreviousCaption());
        btnPrevious.setAlignmentHorizontal(Alignment.CENTER);
        btnPrevious.setWidth(new JbsExtent(80));
        btnPrevious.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent arg0) {
                previousPage();
            }
        });
        mainRow.add(btnPrevious);

        btnNext = new JbsButton(this.getNextCaption());
        btnNext.setAlignmentHorizontal(Alignment.CENTER);
        btnNext.setWidth(new JbsExtent(80));
        btnNext.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

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