Package nextapp.echo2.app.event

Examples of nextapp.echo2.app.event.ActionListener


   
   
    public FmOrderConfirmationEdit() {
        super(JbsL10N.getString("OrderConfirmation.formTitle"));
        PnOrderConfirmationEdit pnOrderConfirmationEdit = new PnOrderConfirmationEdit();
        pnOrderConfirmationEdit.addActionListener(new ActionListener() {

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


            this.txSalesPrice = new JbsDoubleField(2);
            this.txCostPrice = new JbsDoubleField(2);
            this.selVAT = new JbsVATSelectField(ClientGlobals.getUser(), ClientGlobals.getCompany());
            this.txPackingAmount = new JbsDoubleField();
            this.cbStandard = new JbsCheckbox();
            this.cbStandard.addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent arg0) {
                    if (cbStandard.isSelected())
                        removeStdPrices();
                }
View Full Code Here

            txName.setLayoutData(ldName);
            grdMain.add(txName);
           
            grdMain.add(new Label(JbsL10N.getString("ArticlePrice.costPrice")));
            txCostPrice.setWidth(new JbsExtent(controlWidth));
            txCostPrice.addActionListener(new ActionListener() {

                private static final long serialVersionUID = 1L;

                public void actionPerformed(ActionEvent arg0) {
                    calcSalesPrice();
                }
            });
            grdMain.add(txCostPrice);

            grdMain.add(new Label(JbsL10N.getString("ArticlePrice.surcharge")));
            txSurcharge.setWidth(new JbsExtent(controlWidth));
            txSurcharge.addActionListener(new ActionListener() {

                private static final long serialVersionUID = 1L;

                public void actionPerformed(ActionEvent arg0) {
                    calcSalesPrice();
                }
            });
            grdMain.add(txSurcharge);

            grdMain.add(new Label(JbsL10N.getString("ArticlePrice.salesPrice")));
            txSalesPrice.setWidth(new JbsExtent(controlWidth));
            txSalesPrice.addActionListener(new ActionListener() {

                private static final long serialVersionUID = 1L;

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

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

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

   
    protected void selectQtyUnit() {
        fmQtyUnits = new FmJbsBaseObjectList(JbsL10N.getString("QtyUnit.selectGroup"));
        fmQtyUnits.setPnList(new PnQtyUnitList());
        fmQtyUnits.showForm();
        fmQtyUnits.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

        this.user= user;
        this.company=company;
        this.setReducedVAT(false);
        this.setStandardVATIfNull(true);
        this.getTextField().setEnabled(false);
        this.getBtnSelect().addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

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

    protected void selectVAT() {
        fmVATList = new FmJbsBaseObjectList(JbsL10N.getString("ArticleVAT.selectVAT"));
        fmVATList.setPnList(new PnVATList());
        fmVATList.showForm();
        fmVATList.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

     * @param group The group the module shall belong to
     * @param module The module to add a button for
     */
    protected void addModule(ModuleGroup group, Module module) {
        BtnModule btnModule = new BtnModule(module);
        btnModule.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent e) {
                getPnModuleArea().setPnCurrentModule(((BtnModule) e.getSource()).getModule().getClientPanel());
View Full Code Here

    }

    protected void createComponents() {
        this.sfAddress = new JbsCustomerSelectField();

        this.sfAddress.setSelectedListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent arg0) {
                if (sfAddress.getSelectedCustomer() != null) {
View Full Code Here

        this.getToolPane().addControl(JbsL10N.getString("Transaction.positions"), btnAddNormalPositionAsSub);
        */

        btnAddArticle = new JbsObjectToolPaneButton("addarticle.png",JbsL10N.getString("Transaction.addArticle"),false);
        btnAddArticle.setToolTipText("Transaction.addArticleToolTip");
        btnAddArticle.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent arg0) {
                addArticle();
            }
        });
        this.getToolPane().addControl(JbsL10N.getString("Transaction.positions"), btnAddArticle);
       
        btnAddArticleSub = new JbsObjectToolPaneButton("addarticle.png",JbsL10N.getString("Transaction.addArticleAsSub"),true);
        btnAddArticle.setToolTipText("Transaction.addArticleAsSubToolTip");
        btnAddArticleSub.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent arg0) {
                addArticle(tblPositions.getSelectedNode());
            }
        });
        this.getToolPane().addControl(JbsL10N.getString("Transaction.positions"), btnAddArticleSub);
       
        this.getToolPane().addSeparator(JbsL10N.getString("Transaction.positions"));

        btnAddGroupPosition = new JbsObjectToolPaneButton("addgroup.png",JbsL10N.getString("Transaction.addGroupPosition"),false);
        btnAddGroupPosition.setToolTipText("Transaction.AddGroupPositionToolTip");
        btnAddGroupPosition.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent arg0) {
                addGroupPosition();
            }
        });
        this.getToolPane().addControl(JbsL10N.getString("Transaction.positions"), btnAddGroupPosition);
       
       
        btnAddGroupPositionSub = new JbsObjectToolPaneButton("addgroup.png",JbsL10N.getString("Transaction.addGroupPositionAsSub"),true);
        btnAddGroupPosition.setToolTipText("Transaction.addGroupPositionAsSubToolTip");
        btnAddGroupPositionSub.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent arg0) {
                addGroupPosition(tblPositions.getSelectedNode());
            }
        });
        this.getToolPane().addControl(JbsL10N.getString("Transaction.positions"), btnAddGroupPositionSub);

        this.getToolPane().addSeparator(JbsL10N.getString("Transaction.positions"));

        btnAddDiscountPosition = new JbsObjectToolPaneButton("adddiscount.png",JbsL10N.getString("Transaction.addDiscountPosition"),false);
        btnAddDiscountPosition.setToolTipText("Transaction.addDiscountPositionTooTip");
        btnAddDiscountPosition.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent arg0) {
                addDiscountPosition();
            }
        });
        this.getToolPane().addControl(JbsL10N.getString("Transaction.positions"), btnAddDiscountPosition);
       
       
        btnAddDiscountPositionSub = new JbsObjectToolPaneButton("adddiscount.png",JbsL10N.getString("Transaction.addDiscountPositionAsSub"),true);
        btnAddDiscountPositionSub.setToolTipText("Transaction.addDiscountPositionAsSubToolTip");
        btnAddDiscountPositionSub.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent arg0) {
                addDiscountPosition(tblPositions.getSelectedNode());
            }
        });
        this.getToolPane().addControl(JbsL10N.getString("Transaction.positions"), btnAddDiscountPositionSub);

        this.getToolPane().addSeparator(JbsL10N.getString("Transaction.positions"));

        btnEditPosition = new JbsObjectToolPaneButton("edit.png",JbsL10N.getString("StdList.editCaption"),true);
        btnEditPosition.setToolTipText(JbsL10N.getString("StdList.editTooltip"));
        btnEditPosition.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent arg0) {
                editPosition();
            }
        });
        this.getToolPane().addControl(JbsL10N.getString("Transaction.positions"), btnEditPosition);

        btnDeletePosition = new JbsObjectToolPaneButton("remove.png",JbsL10N.getString("StdList.deleteCaption"),true);
        btnDeletePosition.setToolTipText(JbsL10N.getString("StdList.deleteTooltip"));
        btnDeletePosition.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

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