Examples of GridLayoutData


Examples of com.ardor3d.extension.ui.layout.GridLayoutData

    }

    private UIPanel makeLoginPanel() {
        final UIPanel pLogin = new UIPanel(new GridLayout());
        final UILabel lHeader = new UILabel("Welcome! Log in to server xyz");
        lHeader.setLayoutData(new GridLayoutData(2, true, true));
        final UILabel lName = new UILabel("Name");
        final UITextField tfName = new UITextField();
        tfName.setText("player1");
        tfName.setLayoutData(GridLayoutData.WrapAndGrow);
        final UILabel lPassword = new UILabel("Password");
View Full Code Here

Examples of com.ardor3d.extension.ui.layout.GridLayoutData

    }

    private UIPanel makeLoginPanel() {
        final UIPanel pLogin = new UIPanel(new GridLayout());
        final UILabel lHeader = new UILabel("Welcome! Log in to server xyz");
        lHeader.setLayoutData(new GridLayoutData(2, true, true));
        final UILabel lName = new UILabel("Name");
        final UITextField tfName = new UITextField();
        tfName.setText("player1");
        tfName.setLayoutData(GridLayoutData.WrapAndGrow);
        final UILabel lPassword = new UILabel("Password");
View Full Code Here

Examples of nextapp.echo2.app.layout.GridLayoutData

        //Adjust the JbsGrid to have the same width as the image on the left side:
        grdMain.setColumnWidth(0, new JbsExtent(100));
        grdMain.setColumnWidth(1, new JbsExtent(300));

        grdMain.add(new Label(JbsL10N.getString("JbsUser.userName")));
        GridLayoutData JbsGridLayout = new GridLayoutData();
       
        boolean demoUserExists = this.hasDemoUser();
       
        if (demoUserExists)
            txUserName.setText("demo");
View Full Code Here

Examples of nextapp.echo2.app.layout.GridLayoutData

        colMain.add(grdSummary);
        this.add(colMain);
    }
   
    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));
   
View Full Code Here

Examples of nextapp.echo2.app.layout.GridLayoutData

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

Examples of nextapp.echo2.app.layout.GridLayoutData

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

Examples of nextapp.echo2.app.layout.GridLayoutData

    }

    @Override
    protected void initPanel() {
        ContentPane cpStdData = new ContentPane();
        GridLayoutData ld3Columns = new GridLayoutData();
        ld3Columns.setColumnSpan(3);

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

Examples of nextapp.echo2.app.layout.GridLayoutData

    }
   
   

    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("Transaction.sumSalesPrice") + ":"));
View Full Code Here

Examples of nextapp.echo2.app.layout.GridLayoutData

        grdMain.add(this.txDiscount3);
        grdMain.add(new Label(JbsL10N.getString("PaymentTerm.days4") + " / " + JbsL10N.getString("PaymentTerm.discount4")));
        grdMain.add(this.txDays4);
        grdMain.add(this.txDiscount4);
        grdMain.add(new Label(JbsL10N.getString("PaymentTerm.text")));
        GridLayoutData textLayout = new GridLayoutData();
        textLayout.setColumnSpan(2);
        this.txText.setLayoutData(textLayout);
        grdMain.add(this.txText);

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

Examples of nextapp.echo2.app.layout.GridLayoutData

       
        grdMain.add(new Label(JbsL10N.getString("StatusBar.userName")+": "));
        lblUserName = new Label();
        grdMain.add(lblUserName);
       
        GridLayoutData JbsGridLayout = new GridLayoutData();
        JbsGridLayout.setAlignment(Alignment.ALIGN_RIGHT);
        DirectHtml html = new DirectHtml("<a href=\"http://www.gs-networks.de\" target=\"_blank\" style=\"color: #000000;\">gs-networks</a>");
        html.setLayoutData(JbsGridLayout);
        //grdMain.add(html);
       
        JbsButton btnLogout = new JbsButton("Logout");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.