Examples of ContentPane


Examples of nextapp.echo2.app.ContentPane

        /*
        grdMain.add(new Label(JbsL10N.getString("Employee.team")));
        grdMain.add(selTeam);
        */

        ContentPane cpEmployee = new ContentPane();
        cpEmployee.add(grdMain);
        tpMain.addTabSheet(JbsL10N.getString("Employee.formTitle"), cpEmployee);

        tpMain.addTabSheet("Bewerbung", this.getPnJobAssignment());
        this.addPnPermissions(tpMain);
    }
View Full Code Here

Examples of nextapp.echo2.app.ContentPane

     */
    @Override
    protected void initPanel() {
        colMain.add(tpMain);

        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));

        grdMain.add(new Label(JbsL10N.getString("Generic.lastChange")));
        lblLastAction.setLayoutData(ld3Columns);
        grdMain.add(lblLastAction);
       
        grdMain.add(new Label(JbsL10N.getString("Address.userNumber")));
        txUserNumber.setLayoutData(ld3Columns);
        grdMain.add(txUserNumber);
       
        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.abbreviation")));
        txFName.setLayoutData(ld3Columns);
        grdMain.add(txAbbreviation);

        grdMain.add(new Label(JbsL10N.getString("Address.street")));
        txStreet.setLayoutData(ld3Columns);
        grdMain.add(txStreet);

        grdMain.add(new Label(JbsL10N.getString("Address.country") + "/" + JbsL10N.getString("Address.zip") + "/" + JbsL10N.getString("Address.city")));
        grdMain.add(txCountry);
        grdMain.add(txZip);
        grdMain.add(txCity);

        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);
        grdMain.add(new Label(JbsL10N.getString("Address.homepage")));
        grdMain.add(txHomepage);

        grdMain.add(new Label(JbsL10N.getString("Address.reminder")));
        dfReminder.setLayoutData(ld3Columns);
        grdMain.add(dfReminder);
       
        //grdMain.add(new Label(JbsL10N.getString("Test")));
        //DropDown dropDown = new DropDown(txFax,new PnAddressList());
        //grdMain.add(new CalculatorField());

        cpStdData.add(grdMain);

        tpMain.addTabSheet(JbsL10N.getString("Address.data"), cpStdData);
        tpMain.addTabSheet(JbsL10N.getString("Address.contacts"), this.pnAddressContacts);
        tpMain.addTabSheet(JbsL10N.getString("Address.letters"), this.pnAddressLetters);
    }
View Full Code Here

Examples of nextapp.echo2.app.ContentPane

       
        SplitPane spSub_1 = new SplitPane(SplitPane.ORIENTATION_HORIZONTAL, new JbsExtent(485,JbsExtent.PX));
        spSub_1.setSeparatorWidth(new JbsExtent(1,JbsExtent.PX));
       
        spMainHorizontal_1.add(spSub_1);
        spMainHorizontal_1.add(new ContentPane());
       
        PnOfferList pnOfferList = new PnOfferList();
        pnOfferList.setToolPaneVisible(false);
        pnOfferList.setSearchable(false);
        pnOfferList.setTableNavigationVisible(false);
        pnOfferList.setMaxTableRow(10);
        pnOfferList.setTitle(JbsL10N.getString("Offer.moduleLongName"));

       
        PnInvoiceList pnInvoiceList = new PnInvoiceList();
        pnInvoiceList.setSearchable(false);
        pnInvoiceList.setToolPaneVisible(false);
        pnInvoiceList.setTableNavigationVisible(false);
        pnInvoiceList.setMaxTableRow(10);
        pnInvoiceList.setTitle(JbsL10N.getString("Invoice.moduleLongName"));
                     
        spSub_1.add(pnOfferList);
        spSub_1.add(pnInvoiceList);
       
        SplitPane spMainHorizontal_2 = new SplitPane(SplitPane.ORIENTATION_HORIZONTAL, new JbsExtent(975,JbsExtent.PX));
        spMainHorizontal_2.setSeparatorWidth(new JbsExtent(1,JbsExtent.PX));
        spMainVertikal.add(spMainHorizontal_2);
       
        SplitPane spSub_2 = new SplitPane(SplitPane.ORIENTATION_HORIZONTAL, new JbsExtent(485,JbsExtent.PX));
        spSub_2.setSeparatorWidth(new JbsExtent(1,JbsExtent.PX));
       
        spMainHorizontal_2.add(spSub_2);
        spMainHorizontal_2.add(new ContentPane());
       
        PnUnpayedInvoicesList pnUnpayedInvoicesList = new PnUnpayedInvoicesList();
        pnUnpayedInvoicesList.setToolPaneVisible(false);
        pnUnpayedInvoicesList.setSearchable(false);
        pnUnpayedInvoicesList.setTableNavigationVisible(false);
View Full Code Here

Examples of nextapp.echo2.app.ContentPane

        this.txTeamName = new JbsTextField();
    }

    @Override
    protected void initPanel() {
        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("Team.name")));
        grdMain.add(txTeamName);

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

Examples of nextapp.echo2.app.ContentPane

        }
    }

    @Override
    protected void initPanel() {
        ContentPane cpMain = new ContentPane();
        cpMain.setInsets(ClientGlobals.getStandardInsets());
       
        Column colMain = new Column();
        JbsGrid grdMain = new JbsGrid(2);
        grdMain.setColumnWidth(0, new JbsExtent(150));
        grdMain.add(new JbsLabel(JbsL10N.getString("ReportTemplate.name")));
        grdMain.add(this.txName);
        grdMain.add(new JbsLabel(JbsL10N.getString("ReportTemplate.type")));
        grdMain.add(this.selReportType);
        colMain.add(grdMain);
       
        colMain.add(new JbsLabel(JbsL10N.getString("ReportTemplate.contents")));
        colMain.add(this.txContents);
       
        cpMain.add(colMain);
       
        this.add(cpMain);
    }
View Full Code Here

Examples of nextapp.echo2.app.ContentPane

        Column colMain = new Column();
       
        tbMain.addButton(btnPrint);
        colMain.add(tbMain);

        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);
       
        ContentPane cpDeliveryAddress = new ContentPane();
        cpDeliveryAddress.add(pnDeliveryAddress);
        tpMain.addTabSheet(JbsL10N.getString("Transation.deliveryAddress"),cpDeliveryAddress);

        ContentPane cpPositions = new ContentPane();
        cpPositions.add(pnPositions);
        tpMain.addTabSheet(JbsL10N.getString("Transaction.positions"), cpPositions);

        ContentPane cpTexts = new ContentPane();
        cpTexts.add(pnTexts);
        tpMain.addTabSheet(JbsL10N.getString("Transaction.texts"), cpTexts);

        colMain.add(tpMain);
       
        this.add(colMain);
View Full Code Here

Examples of nextapp.echo2.app.ContentPane

        txShortName = new JbsLangTextField(ClientGlobals.getMainDbLanguage());
    }

    @Override
    protected void initPanel() {
        ContentPane cpStdData = new ContentPane();

        JbsGrid grdMain = new JbsGrid(2);
        grdMain.setInsets(new Insets(5, 5));
        grdMain.setColumnWidth(0, new JbsExtent(150));
       
        grdMain.add(new JbsLabel(JbsL10N.getString("QtyUnit.name")));
        grdMain.add(this.txName);
       
        grdMain.add(new JbsLabel(JbsL10N.getString("QtyUnit.shortName")));
        grdMain.add(this.txShortName);
       
       
        cpStdData.add(grdMain);
        this.add(cpStdData);
    }
View Full Code Here

Examples of nextapp.echo2.app.ContentPane

     * @see nextapp.echo2.app.ApplicationInstance#init()
     */
    public Window init() {
        Window window = new Window();
        window.setTitle("Thousand Monkeys (Start)");
        ContentPane contentPane = new ContentPane();
        window.setContent(contentPane);
        monkey = new Monkey(contentPane);
        startGhostTask();
        return window;
    }
View Full Code Here

Examples of nextapp.echo2.app.ContentPane

        Column groupContainerColumn = new Column();
        groupContainerColumn.setCellSpacing(new Extent(5));
        groupContainerColumn.setStyleName("TestControlsColumn");
        add(groupContainerColumn);
       
        contentPane = new ContentPane();
        add(contentPane);
        windowPane = new WindowPane();
        contentPane.add(windowPane);

        ButtonColumn controlsColumn;
View Full Code Here

Examples of nextapp.echo2.app.ContentPane

    public ContentPaneTest() {
        super(SplitPane.ORIENTATION_HORIZONTAL, new Extent(250, Extent.PX));
        setStyleName("DefaultResizable");
       
        final ContentPane rootContentPane = InteractiveApp.getApp().getDefaultWindow().getContent();
        final Label contentLabel = new Label(StyleUtil.QUASI_LATIN_TEXT_1 + StyleUtil.QUASI_LATIN_TEXT_1);
       
        ButtonColumn controlsColumn = new ButtonColumn();
        controlsColumn.setStyleName("TestControlsColumn");
        add(controlsColumn);
       
        final ContentPane testContentPane = new ContentPane();
        add(testContentPane);

        controlsColumn.add(new Label("Root Content Pane"));

        controlsColumn.addButton("Reset", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                rootContentPane.setBackground(null);
                rootContentPane.setForeground(null);
                rootContentPane.setFont(null);
            }
        });
        controlsColumn.addButton("Change Background", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                rootContentPane.setBackground(StyleUtil.randomColor());
            }
        });
        controlsColumn.addButton("Change Foreground", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                rootContentPane.setForeground(StyleUtil.randomColor());
            }
        });
        controlsColumn.addButton("Change Font", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                rootContentPane.setFont(StyleUtil.randomFont());
            }
        });
       
        controlsColumn.add(new Label("Test Content Pane"));
       
        controlsColumn.addButton("Reset", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                testContentPane.setBackground(null);
                testContentPane.setForeground(null);
                testContentPane.setFont(null);
            }
        });
        controlsColumn.addButton("Change Background", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                testContentPane.setBackground(StyleUtil.randomColor());
            }
        });
        controlsColumn.addButton("Change Foreground", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                testContentPane.setForeground(StyleUtil.randomColor());
            }
        });
        controlsColumn.addButton("Background Image", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                testContentPane.setBackgroundImage(Styles.BG_SHADOW_LIGHT_BLUE);
            }
        });
        controlsColumn.addButton("Background Image @ 50px", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                testContentPane.setBackgroundImage(Styles.BG_SHADOW_LIGHT_BLUE_50_PX_REPEAT);
            }
        });
        controlsColumn.addButton("Background Image @ 1%", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                testContentPane.setBackgroundImage(Styles.BG_SHADOW_LIGHT_BLUE_1_PERCENT_REPEAT);
            }
        });
        controlsColumn.addButton("Background Image @ 50%", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                testContentPane.setBackgroundImage(Styles.BG_SHADOW_LIGHT_BLUE_50_PERCENT_REPEAT);
            }
        });
        controlsColumn.addButton("Background Null", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                testContentPane.setBackgroundImage(null);
            }
        });
        controlsColumn.addButton("Change Font", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                testContentPane.setFont(StyleUtil.randomFont());
            }
        });
       
        controlsColumn.addButton("Add Label", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                removeAllContent(testContentPane);
                testContentPane.add(contentLabel);
            }
        });
        controlsColumn.addButton("Add SplitPane", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                removeAllContent(testContentPane);
                SplitPane splitPane = new SplitPane();
                splitPane.setResizable(true);
               
                Label label;
                SplitPaneLayoutData layoutData;

                layoutData = new SplitPaneLayoutData();
                layoutData.setBackground(new Color(0xafafff));
                label = new Label(StyleUtil.QUASI_LATIN_TEXT_1);
                label.setLayoutData(layoutData);
                splitPane.add(label);

                layoutData = new SplitPaneLayoutData();
                layoutData.setBackground(new Color(0xafffaf));
                label = new Label(StyleUtil.QUASI_LATIN_TEXT_1);
                label.setLayoutData(layoutData);
                splitPane.add(label);

                testContentPane.add(splitPane);
            }
        });
        controlsColumn.addButton("Add SplitPane / ContentPane / Button", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                removeAllContent(testContentPane);
                SplitPane splitPane = new SplitPane();
                splitPane.setResizable(true);
               
                Label label;
                SplitPaneLayoutData layoutData;

                layoutData = new SplitPaneLayoutData();
                layoutData.setBackground(new Color(0xafafff));
                ContentPane subContentPane = new ContentPane();
                subContentPane.setLayoutData(layoutData);
                splitPane.add(subContentPane);
               
                SplitPane splitPane2 = new SplitPane(SplitPane.ORIENTATION_VERTICAL);
                subContentPane.add(splitPane2);
               
                ContentPane subContentPane2 = new ContentPane();
                splitPane2.add(subContentPane2);
                subContentPane2.add(new Label("Test!"));
               
                ContentPane subContentPane3 = new ContentPane();
                splitPane2.add(subContentPane3);
               
               
                final Button button = new Button("Alpha");
                button.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        button.setText("Alpha".equals(button.getText()) ? "Omega" : "Alpha");
                    }
                });
                subContentPane3.add(button);

                layoutData = new SplitPaneLayoutData();
                layoutData.setBackground(new Color(0xafffaf));
                label = new Label(StyleUtil.QUASI_LATIN_TEXT_1);
                label.setLayoutData(layoutData);
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.