Package org.jabusuite.webclient.controls.container

Examples of org.jabusuite.webclient.controls.container.JbsGrid


       
        Column colMain = new Column();
        colMain.setInsets(new Insets(5,5));
        colMain.add(new JbsLabel(msg));

        JbsGrid grdMain = new JbsGrid(2);
        grdMain.setInsets(new Insets(5, 10));
        grdMain.setColumnWidth(0,new JbsExtent(150));

        grdMain.add(new Label(JbsL10N.getString("Contact.selectContactType")));
        grdMain.add(cbbContactType);
        colMain.add(grdMain);

        this.getPnMain().add(colMain);
    }
View Full Code Here


    this.txPassword = new PasswordField();
  }
 
  protected void initPnMain() {
    this.createCompontents();
    JbsGrid grdMain = new JbsGrid(2);
    grdMain.setInsets(new Insets(5,5));
    grdMain.setColumnWidth(0,new JbsExtent(300));
   
    grdMain.add(new Label(JbsL10N.getString("JbsUser.userName")));
    grdMain.add(txUserName);
    grdMain.add(new Label(JbsL10N.getString("JbsUser.password")));
    grdMain.add(txPassword);

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

   
    @Override
    protected void drawPage() {
        super.drawPage();
       
        JbsGrid grdMain = new JbsGrid(2);
        grdMain.setColumnWidth(0, new JbsExtent(200,JbsExtent.PX));
        grdMain.add(new JbsLabel(JbsL10N.getString("MassLetterWizard.selectedContacts")));
        grdMain.add(lblContactCount);
       
        this.getColMain().add(grdMain);
    }
View Full Code Here

       
        //this.add(tpMain);
       
        ContentPane cpStdData = new ContentPane();
       
        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(lblLastChange);
        grdMain.add(new Label(JbsL10N.getString("Article.userNo")));
        grdMain.add(txUserNo);
        grdMain.add(new Label(JbsL10N.getString("Article.matchCode")));
        grdMain.add(txMatchCode);
        grdMain.add(new Label(JbsL10N.getString("Article.alternativeNumber")));
        grdMain.add(txAlternativeNumber);
        grdMain.add(new Label(JbsL10N.getString("Article.gtIn")));
        grdMain.add(txGtIn);
        grdMain.add(new Label(JbsL10N.getString("Article.shortText")));
        grdMain.add(txShortText);
        grdMain.add(new Label(JbsL10N.getString("Article.cataloguePage")));
        grdMain.add(txCataloguePage);
        grdMain.add(new Label(JbsL10N.getString("Article.qtyUnit")));
        grdMain.add(qtyUnit);
        /*
        grdMain.add(new Label(JbsL10N.getString("Article.packingAmount")));
        grdMain.add(txPackingAmount);
         */
        grdMain.add(new Label(JbsL10N.getString("Article.supplier")));
        grdMain.add(sfSupplier);
        /*
        grdMain.add(new Label(JbsL10N.getString("Article.vat")));
        grdMain.add(sfVAT);
         */
        grdMain.add(new Label(JbsL10N.getString("Article.longText")));
        grdMain.add(txLongText);

        /*
        grdMain.add(new Label(JbsL10N.getString("Article.image")));
        grdMain.add(uploadImage);
        grdMain.add(new Label(""));
View Full Code Here

   
    protected void createPnSummary() {
        GridLayoutData layoutData = new GridLayoutData();
        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("Payments.sumPayed") + ":"));
        lblPaymentSum = new Label();
View Full Code Here

        this.setJbsBaseObject(payment);
    }

    @Override
    protected void createComponents() {
        grdMain = new JbsGrid(2);
        grdMain.setInsets(new Insets(5, 5));
        dfPaymentDate = new JbsDateField();
        txRemark = new JbsTextField();
        txAmount = new JbsDoubleField();
    }
View Full Code Here

         */
       
        Row row1= new Row();
        row1.setCellSpacing(new JbsExtent(5));
       
        JbsGrid grdMain = new JbsGrid(2);
        grdMain.setColumnWidth(0, new JbsExtent(40));
        grdMain.add(new JbsLabel(JbsL10N.getString("JobApplication.jobGroup")));
        grdMain.add(selJobGroup);
        grdMain.add(new JbsLabel(JbsL10N.getString("JobApplication.from")));
        grdMain.add(txFrom);
        grdMain.add(new JbsLabel(JbsL10N.getString("JobApplication.to")));
        grdMain.add(txTo);
        grdMain.add(new JbsLabel(JbsL10N.getString("JobApplication.job")));
        grdMain.add(txJobName);
        grdMain.add(new JbsLabel(JbsL10N.getString("JobApplication.company")));
        grdMain.add(txCompanyName);
        grdMain.add(new JbsLabel(JbsL10N.getString("JobApplication.place")));
        grdMain.add(txWhere);
        row1.add(grdMain);
       
        row1.add(this.getBtnInsert());
        this.getBtnInsert().setWidth(new JbsExtent(20));
        this.getBtnInsert().setAlignmentHorizontal(Alignment.CENTER);
View Full Code Here

        this.txTextBefore = new JbsLangTextArea(ClientGlobals.getMainDbLanguage());
        this.txTextAfter = new JbsLangTextArea(ClientGlobals.getMainDbLanguage());
    }

    protected void initPanel() {
        JbsGrid grdMain = new JbsGrid(2);
        grdMain.setInsets(new Insets(5, 5));
        grdMain.setColumnWidth(0, new JbsExtent(150));
        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

    protected void createColumn() {
        super.createColumn();
        Row row1= new Row();
        row1.setCellSpacing(new JbsExtent(5));
       
        JbsGrid grdMain = new JbsGrid(2);
        grdMain.setColumnWidth(0, new JbsExtent(40));
        grdMain.add(new JbsLabel(JbsL10N.getString("JobApplication.from")));
        grdMain.add(txFrom);
        grdMain.add(new JbsLabel(JbsL10N.getString("JobApplication.to")));
        grdMain.add(txTo);
        grdMain.add(new JbsLabel(JbsL10N.getString("JobApplication.schoolName")));
        grdMain.add(txSchoolName);
        grdMain.add(new JbsLabel(JbsL10N.getString("JobApplication.city")));
        grdMain.add(txWhere);
        grdMain.add(new JbsLabel(JbsL10N.getString("JobApplication.graduation")));
        grdMain.add(txGraduation);
        row1.add(grdMain);
       
        row1.add(this.getBtnInsert());
        this.getBtnInsert().setWidth(new JbsExtent(20));
        this.getBtnInsert().setAlignmentHorizontal(Alignment.CENTER);
View Full Code Here

                txSurcharge.setValue(((txSalesPrice.getValue() - txCostPrice.getValue()) / txCostPrice.getValue()) * 100);
            }
        }

        protected void initRow() {
            JbsGrid grdMain = new JbsGrid(6);
            grdMain.setInsets(new Insets(5, 5));
            /*
            grdMain.setColumnWidth(1, new JbsExtent(40));
            grdMain.setColumnWidth(3, new JbsExtent(40));
            grdMain.setColumnWidth(5, new JbsExtent(40));
             */
           
            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

TOP

Related Classes of org.jabusuite.webclient.controls.container.JbsGrid

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.