Package nextapp.echo2.app

Examples of nextapp.echo2.app.Label


        txAmount = new JbsDoubleField();
    }

    @Override
    protected void initPanel() {
        grdMain.add(new Label(JbsL10N.getString("Payment.paymentDate")));
        grdMain.add(dfPaymentDate);
       
        grdMain.add(new Label(JbsL10N.getString("Payment.amount")));
        grdMain.add(txAmount);
       
        grdMain.add(new Label(JbsL10N.getString("Payment.remark")));
        grdMain.add(txRemark);
       
        this.add(grdMain);
    }
View Full Code Here


        ContentPane cpStdData = new ContentPane();
        Column colStdData = new Column();
        JbsGrid grdMain = new JbsGrid(2);
        grdMain.setInsets(new Insets(5, 5));
        grdMain.setColumnWidth(0, new JbsExtent(300));
        grdMain.add(new Label(JbsL10N.getString("Generic.lastChange")));
        grdMain.add(lblLastAction);
        grdMain.add(new Label(JbsL10N.getString("Transaction.userNumber")));
        grdMain.add(txUserNumber);
        grdMain.add(new Label(JbsL10N.getString("Transaction.transactionDate")));
        grdMain.add(txTransactionDate);
        colStdData.add(grdMain);
        colStdData.add(pnAddress);
        JbsGrid grdSub = new JbsGrid(2);
        grdSub.setInsets(new Insets(5, 5));
        grdSub.setColumnWidth(0, new JbsExtent(300));
        grdSub.add(new Label(JbsL10N.getString("Transaction.paymentTerm")));
        grdSub.add(sfPaymentTerm);
        colStdData.add(grdSub);
       
        cpStdData.add(colStdData);
        tpMain.addTabSheet(JbsL10N.getString("Transation.data"), cpStdData);
View Full Code Here

        drawPage();
    }
   
    protected void initPage(String title) {
        colMain = new Column();
        lblTitle = new Label();
        lblTitle.setStyleName("WizardTitle");
        lblDescription = new Label();
       
        this.setTitle(title);
    }
View Full Code Here

        private static final long serialVersionUID = 1L;

        @Override
        public Component getTableCellRendererComponent(Table table, Object value, int column, int row) {
            Label label = (Label) super.getTableCellRendererComponent(table, value, column, row);
           // DragSource dragSource = new DragSource(label);

            TableLayoutData layoutData = new TableLayoutData();
            int align;
            switch (column) {
                case 1:
                    align = Alignment.CENTER;
                    break;
                case 3:
                    align = Alignment.RIGHT;
                    break;
                case 4:
                    align = Alignment.RIGHT;
                    break;
                default:
                    align = Alignment.LEFT;
            }
            layoutData.setAlignment(new Alignment(align, Alignment.CENTER));
            label.setLayoutData(layoutData);
            return label;
        }
View Full Code Here

        grdMain.setColumnWidth(100, new JbsExtent(100,JbsExtent.PERCENT));

        GridLayoutData textLayout = new GridLayoutData();
        textLayout.setAlignment(Alignment.ALIGN_TOP);

        Label label1 = new Label(JbsL10N.getString("Transaction.textBefore"));
        label1.setLayoutData(textLayout);
        grdMain.add(label1);
        grdMain.add(txTextBefore);

        Label label2 = new Label(JbsL10N.getString("Transaction.textAfter"));
        label2.setLayoutData(textLayout);
        grdMain.add(label2);
        grdMain.add(txTextAfter);

        this.add(grdMain);
    }
View Full Code Here

           
            int controlWidth = 60;
            for (int i=1; i<=6; i++)
                grdMain.setColumnWidth(i, new JbsExtent(controlWidth));
           
            grdMain.add(new Label(JbsL10N.getString("ArticlePrice.standard")));
            GridLayoutData ldStandard = new GridLayoutData();
            ldStandard.setColumnSpan(5);
            cbStandard.setLayoutData(ldStandard);
            grdMain.add(cbStandard);

           
            grdMain.add(new Label(JbsL10N.getString("ArticlePrice.name")));
            GridLayoutData ldName = new GridLayoutData();
            ldName.setColumnSpan(5);
            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();
                }
            });
            grdMain.add(txSalesPrice);

            grdMain.add(new Label(JbsL10N.getString("ArticlePrice.vat")));
            selVAT.setWidth(new JbsExtent(controlWidth));
            selVAT.setLayoutData(ldName);
            grdMain.add(selVAT);
           
            grdMain.add(new Label(JbsL10N.getString("ArticlePrice.packingAmount")));
            txPackingAmount.setWidth(new JbsExtent(controlWidth));
            txPackingAmount.setLayoutData(ldName);
            grdMain.add(txPackingAmount);
           
           
            GridLayoutData ldDate = new GridLayoutData();
            ldDate.setColumnSpan(2);
            grdMain.add(new Label(JbsL10N.getString("ArticlePrice.availableFrom")));
            txAvailableFrom.setLayoutData(ldDate);
            grdMain.add(txAvailableFrom);
            grdMain.add(new Label(JbsL10N.getString("ArticlePrice.availableTo")));
            txAvailableTo.setLayoutData(ldDate);
            grdMain.add(txAvailableTo);
           
           
            this.add(grdMain);
View Full Code Here

        grdMain = new JbsGrid(4);
        grdMain.setInsets(new Insets(5, 5));
        grdMain.setColumnWidth(0, new JbsExtent(300));

        grdMain.add(new Label(JbsL10N.getString("Address.salutation")));
        cbbSalutation.setLayoutData(ld3Columns);
        grdMain.add(cbbSalutation);

        grdMain.add(new Label(JbsL10N.getString("Address.letterSalutation")));
        txLetterSaluation.setLayoutData(ld3Columns);
        grdMain.add(txLetterSaluation);
       
        grdMain.add(new Label(JbsL10N.getString("Address.fName")));
        txFName.setLayoutData(ld3Columns);
        grdMain.add(txFName);

        grdMain.add(new Label(JbsL10N.getString("Address.name")));
        grdMain.add(txName1);
        grdMain.add(txName2);
        grdMain.add(txName3);

        grdMain.add(new Label(JbsL10N.getString("Address.phone")));
        grdMain.add(txPhone);
        grdMain.add(new Label(JbsL10N.getString("Address.fax")));
        grdMain.add(txFax);

        grdMain.add(new Label(JbsL10N.getString("Address.mobilePhone")));
        txMobile.setLayoutData(ld3Columns);
        grdMain.add(txMobile);

        grdMain.add(new Label(JbsL10N.getString("Address.email")));
        grdMain.add(txEmail);
       
        this.add(grdMain);
       
        //this.addPnPermissions(tpMain);
View Full Code Here

        this.setGrdMain(new JbsGrid(2));
       
        grdMain.setInsets(new Insets(5, 5));
        grdMain.setColumnWidth(0, new JbsExtent(150));
       
        this.getGrdMain().add(new Label(JbsL10N.getString("ReportOptions.pageTemplate")));
        this.getGrdMain().add(this.getSelPageTemplate());
       
        this.getGrdMain().add(new Label(JbsL10N.getString("ReportOptions.template")));
        this.getGrdMain().add(this.getSelReportTemplate());
       
        colMain.add(this.getGrdMain());
        this.pnMain.add(colMain);
    }
View Full Code Here

    protected void initPanel() {
        JbsGrid grdMain = new JbsGrid(2);
        grdMain.setInsets(new Insets(5, 5));
        grdMain.setColumnWidth(0, new JbsExtent(300));

        grdMain.add(new Label(JbsL10N.getString("Transaction.address")));
        grdMain.add(sfAddress);
        grdMain.add(new Label(JbsL10N.getString("Transaction.name1")));
        grdMain.add(txName1);
        grdMain.add(new Label(JbsL10N.getString("Transaction.name2")));
        grdMain.add(txName2);
        grdMain.add(new Label(JbsL10N.getString("Transaction.name3")));
        grdMain.add(txName3);
        grdMain.add(new Label(JbsL10N.getString("Transaction.street")));
        grdMain.add(txStreet);
        grdMain.add(new Label(JbsL10N.getString("Transaction.countryShort")));
        grdMain.add(txCountryShort);
        grdMain.add(new Label(JbsL10N.getString("Transaction.zip")));
        grdMain.add(txZip);
        grdMain.add(new Label(JbsL10N.getString("Transaction.city")));
        grdMain.add(txCity);

        this.add(grdMain);
    }
View Full Code Here

        layoutData.setAlignment(new Alignment(Alignment.RIGHT, Alignment.CENTER));

        grdSummary = new JbsGrid(2);
        grdSummary.setInsets(new Insets(5, 5));
        grdSummary.setColumnWidth(0, new JbsExtent(300));
        grdSummary.add(new Label(JbsL10N.getString("Transaction.sumSalesPrice") + ":"));
        lblSumSalesPrice = new Label();
        lblSumSalesPrice.setLayoutData(layoutData);
        grdSummary.add(lblSumSalesPrice);
        grdSummary.add(new Label(JbsL10N.getString("Transaction.sumCostPrice") + ":"));
        lblSumCostPrice = new Label();
        lblSumCostPrice.setLayoutData(layoutData);
        grdSummary.add(lblSumCostPrice);
        grdSummary.add(lblSumCostPrice);
        grdSummary.add(new Label(JbsL10N.getString("Transaction.profit") + ":"));
        lblProfit = new Label();
        lblProfit.setLayoutData(layoutData);
        grdSummary.add(lblProfit);
    }
View Full Code Here

TOP

Related Classes of nextapp.echo2.app.Label

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.