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();
            }
        });
View Full Code Here


    protected KeyStrokeListener createKeyStrokeListener() {
        KeyStrokeListener ks = new KeyStrokeListener();

        ks.addKeyCombination(KeyStrokeListener.VK_ALT + KeyStrokeListener.VK_O, "OK");
        ks.addKeyCombination(KeyStrokeListener.VK_CONTROL + KeyStrokeListener.VK_ENTER, "OK");
        ks.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

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

        try {
            final Invoice invoice = new Invoice();
            String userNumber = getNextUserNumber(Invoice.class);
            invoice.setDataFromTransaction(getOrderConfirmation(), userNumber);
            JbsOptionPane dialog = JbsOptionPane.showMessageDialog(this, JbsL10N.getString("OrderConfirmation.msgToInvoice"), JbsL10N.getString("OrderConfirmation.formTitle"), 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(getOrderConfirmation(), userNumber);
            JbsOptionPane dialog = JbsOptionPane.showMessageDialog(this, JbsL10N.getString("OrderConfirmation.msgToDeliveryNote"), JbsL10N.getString("OrderConfirmation.formTitle"), 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(getOrderConfirmation(), userNumber);
            JbsOptionPane dialog = JbsOptionPane.showMessageDialog(this, JbsL10N.getString("OrderConfirmation.msgToWorkOrder"), JbsL10N.getString("OrderConfirmation.formTitle"), 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

    @Override
    protected void fillToolbar() {
        super.fillToolbar();
        if (ClientGlobals.getUser().isRoot()) {
            BtnToolbar btnImportJobs = new BtnToolbar("edit.png");
            btnImportJobs.addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent arg0) {
                    importJobs("/etc/openJBS/berufe.html");
                    reload();
                }
View Full Code Here

        createTree();

        JbsButton btnTest = new JbsButton("Test");
        pnContent.add(btnTest);
        btnTest.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

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

        super(JbsL10N.getString("Article.prices"));
        this.colPrices = new ColPrices();
        this.add(colPrices);
        Column colButtons = new Column();
        JbsButton btnAddPrice = new JbsButton(JbsL10N.getString("Article.addPrice"));
        btnAddPrice.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent arg0) {
                colPrices.addPriceRow(new ArticlePrice());
View Full Code Here

    public JobGroupSelectField() {
        super();
        this.setSelectedJobGroup(null);
        this.getTextField().setEnabled(false);
        this.getBtnSelect().addActionListener(new ActionListener() {

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

   
    protected void selectJobGroup() {
        fmJobGroups = new FmJbsBaseObjectList(JbsL10N.getString("JobGroup.selectGroup"));
        fmJobGroups.setPnList(new PnJobGroupList());
        fmJobGroups.showForm();
        fmJobGroups.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

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.