Examples of SplitPane


Examples of nextapp.echo2.app.SplitPane

        super();
        initPanel();
    }

    protected void initPanel() {
        SplitPane spMain = new SplitPane(SplitPane.ORIENTATION_VERTICAL, new JbsExtent(23));
        spMain.setSeparatorWidth(new JbsExtent(1, JbsExtent.PX));
        this.add(spMain);

        Row rowTitle = new Row();
        rowTitle.setStyleName("TitlePane");
        Label lblTitle = new Label("OpenJBS");
        lblTitle.setStyleName("TitleLabel.Main");
        rowTitle.add(lblTitle);

        lblModuleName = new Label("");
        lblModuleName.setStyleName("TitleLabel.Main");
        rowTitle.add(lblModuleName);
       
        spMain.add(rowTitle);

        pnModuleArea = new PnModuleArea();

        if ((ClientGlobals.getUser().getStartModule()!=null) && (ClientGlobals.getUser().canRead(ClientGlobals.getUser().getStartModule())))
            pnModuleArea.setPnCurrentModule(ClientGlobals.getUser().getStartModule().getClientPanel());
        else
            pnModuleArea.setPnCurrentModule(new PnWelcome());
       
        SplitPane spApp = new SplitPane(SplitPane.ORIENTATION_HORIZONTAL, new JbsExtent(200));
        spApp.setSeparatorWidth(new JbsExtent(1, JbsExtent.PX));
        spMain.add(spApp);

        PnModules pnModules = new PnModules(pnModuleArea);
        spApp.add(pnModules);

        spApp.add(pnModuleArea);

       
       
        SplitPane spSub = new SplitPane(SplitPane.ORIENTATION_VERTICAL_BOTTOM_TOP, new JbsExtent(23));
        spSub.add(new StatusBar());
        spSub.add(spApp);

        spMain.add(spSub);


    }
View Full Code Here

Examples of nextapp.echo2.app.SplitPane

            public void actionPerformed(ActionEvent arg0) {
                printLetter();
            }
        });
       
        this.setSpMain(new SplitPane());
        this.getSpMain().setOrientation(SplitPane.ORIENTATION_HORIZONTAL_RIGHT_LEFT);
        this.getSpMain().setSeparatorPosition(new JbsExtent(PnModule.STD_TOOLPANEWIDTH,JbsExtent.PX));
        this.getSpMain().setSeparatorWidth(new JbsExtent(1,JbsExtent.PX));
       
        this.setToolPane(new JbsObjectToolPane());
View Full Code Here

Examples of nextapp.echo2.app.SplitPane

        initPanel();
    }

    protected void initPanel() {
       
        SplitPane spMainVertikal = new SplitPane(SplitPane.ORIENTATION_VERTICAL, new JbsExtent(350,JbsExtent.PX));
        spMainVertikal.setSeparatorWidth(new JbsExtent(1,JbsExtent.PX));
        this.add(spMainVertikal);
       
       
       
        SplitPane spMainHorizontal_1 = new SplitPane(SplitPane.ORIENTATION_HORIZONTAL, new JbsExtent(975,JbsExtent.PX));
        spMainHorizontal_1.setSeparatorWidth(new JbsExtent(1,JbsExtent.PX));
        spMainVertikal.add(spMainHorizontal_1);
       
        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);
        pnUnpayedInvoicesList.setMaxTableRow(10);
        pnUnpayedInvoicesList.setTitle(JbsL10N.getString("UnpayedInvoices.moduleLongName"));

       
        PnCmsNewsEntryList pnCmsNewsEntryList = new PnCmsNewsEntryList();
        pnCmsNewsEntryList.setSearchable(false);
        pnCmsNewsEntryList.setToolPaneVisible(false);
        pnCmsNewsEntryList.setTableNavigationVisible(false);
        pnCmsNewsEntryList.setMaxTableRow(10);
        pnCmsNewsEntryList.setTitle(JbsL10N.getString("CmsNews.moduleLongName"));
                     
        spSub_2.add(pnUnpayedInvoicesList);
        spSub_2.add(pnCmsNewsEntryList);
       
    }
View Full Code Here

Examples of nextapp.echo2.app.SplitPane

        super(title, new Extent(320), new Extent(240));
        setStyleName("Default");
        setClosable(false);
        setModal(true);

        SplitPane splitPane = new SplitPane(SplitPane.ORIENTATION_VERTICAL_BOTTOM_TOP, new Extent(32));
        add(splitPane);
       
        Row controlsRow = new Row();
        controlsRow.setStyleName("ControlPane");
        splitPane.add(controlsRow);

        Button button;
        switch (controlConfiguration) {
        case CONTROLS_OK:
            button = new Button(Messages.getString("Generic.Ok"), Styles.ICON_24_YES);
            button.setStyleName("ControlPane.Button");
            button.setActionCommand(COMMAND_OK);
            button.addActionListener(actionProcessor);
            controlsRow.add(button);
            break;
        case CONTROLS_YES_NO:
            button = new Button(Messages.getString("Generic.Yes"), Styles.ICON_24_YES);
            button.setStyleName("ControlPane.Button");
            button.setActionCommand(COMMAND_OK);
            button.addActionListener(actionProcessor);
            controlsRow.add(button);
            button = new Button(Messages.getString("Generic.No"), Styles.ICON_24_NO);
            button.setStyleName("ControlPane.Button");
            button.setActionCommand(COMMAND_CANCEL);
            button.addActionListener(actionProcessor);
            controlsRow.add(button);
            break;
        }
       
        Label contentLabel = new Label(message);
        contentLabel.setStyleName("MessageDialog.ContentLabel");
        splitPane.add(contentLabel);
       
        setModal(true);
    }
View Full Code Here

Examples of nextapp.echo2.app.SplitPane

     * Creates a new <code>ChatScreen</code>.
     */
    public ChatScreen() {
        super();
       
        SplitPane outerSplitPane = new SplitPane(SplitPane.ORIENTATION_VERTICAL_TOP_BOTTOM, new Extent(32));
        outerSplitPane.setStyleName("ChatScreen.SplitPane");
        add(outerSplitPane);
       
        Row controlsRow = new Row();
        controlsRow.setStyleName("ControlPane");
        outerSplitPane.add(controlsRow);
       
        Button logoutButton = new Button(Messages.getString("Generic.Exit"), Styles.ICON_24_EXIT);
        logoutButton.setStyleName("ControlPane.Button");
        logoutButton.addActionListener(new ActionListener(){
            public void actionPerformed(ActionEvent e) {
                ChatApp.getApp().disconnect();
            }
        });
        controlsRow.add(logoutButton);
       
        SplitPane mainSplitPane = new SplitPane(SplitPane.ORIENTATION_VERTICAL_BOTTOM_TOP, new Extent(90));
        mainSplitPane.setStyleName("ChatScreen.SplitPane");
        outerSplitPane.add(mainSplitPane);
       
        SplitPane inputAreaSplitPane = new SplitPane(SplitPane.ORIENTATION_HORIZONTAL_LEADING_TRAILING, new Extent(150));
        mainSplitPane.add(inputAreaSplitPane);

        Label currentUserLabel = new Label(ChatApp.getApp().getUserName() + ":");
        currentUserLabel.setStyleName("ChatScreen.CurrentUserLabel");
        inputAreaSplitPane.add(currentUserLabel);
       
        SplitPane postSplitPane = new SplitPane(SplitPane.ORIENTATION_HORIZONTAL_TRAILING_LEADING, new Extent(100));
        inputAreaSplitPane.add(postSplitPane);

        Button submitPostButton = new Button(Messages.getString("ChatScreen.SubmitPostButton"), Styles.ICON_24_RIGHT_ARROW);
        submitPostButton.setStyleName("ChatScreen.SubmitPostButton");
        submitPostButton.setTextPosition(new Alignment(Alignment.LEFT, Alignment.DEFAULT));
        submitPostButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                postMessage();
            }
        });
        postSplitPane.add(submitPostButton);

        postField = new TextArea();
        postField.setStyleName("ChatScreen.PostField");
        postField.setWidth(new Extent(97, Extent.PERCENT));
        postField.setHeight(new Extent(70, Extent.PX));
        postField.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                postMessage();
            }
        });
        postSplitPane.add(postField);
       
        messagePane = new MessagePane();
        mainSplitPane.add(messagePane);
       
        ChatApp app = ChatApp.getApp();
View Full Code Here

Examples of nextapp.echo2.app.SplitPane

        loginWindow.setTitle(Messages.getString("LoginScreen.LoginWindowTitle"));
        loginWindow.setStyleName("LoginScreen.LoginWindow");
        loginWindow.setClosable(false);
        add(loginWindow);
       
        SplitPane splitPane = new SplitPane(SplitPane.ORIENTATION_VERTICAL_BOTTOM_TOP, new Extent(32));
        loginWindow.add(splitPane);
       
        Row controlRow = new Row();
        controlRow.setStyleName("ControlPane");
        splitPane.add(controlRow);
       
        Button button = new Button(Messages.getString("LoginScreen.Continue"), Styles.ICON_24_YES);
        button.setStyleName("ControlPane.Button");
        button.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                processLogin();
            }
        });
        controlRow.add(button);

        Grid layoutGrid = new Grid();
        layoutGrid.setStyleName("LoginScreen.LayoutGrid");
        splitPane.add(layoutGrid);

        Column warningColumn = new Column();
        GridLayoutData gridLayoutData = new GridLayoutData();
        gridLayoutData.setColumnSpan(2);
        warningColumn.setLayoutData(gridLayoutData);
View Full Code Here

Examples of nextapp.echo2.app.SplitPane

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

Examples of nextapp.echo2.app.SplitPane

                    windowPane.setTitleInsets(new Insets(10, 5));
                    windowPane.setStyleName("Default");
                    windowPane.setTitleBackground(new Color(0x2f2f4f));
                    windowPane.setWidth(new Extent(500, Extent.PX));
                    windowPane.setHeight(new Extent(300, Extent.PX));
                    SplitPane splitPane = new SplitPane(SplitPane.ORIENTATION_VERTICAL_BOTTOM_TOP, new Extent(42));
                    SplitPaneLayoutData splitPaneLayoutData;
                   
                    Button okButton = new Button("Ok");
                    okButton.addActionListener(new ActionListener() {
                        /**
                         * @see nextapp.echo2.app.event.ActionListener#actionPerformed(nextapp.echo2.app.event.ActionEvent)
                         */
                        public void actionPerformed(ActionEvent e) {
                            windowPane.getParent().remove(windowPane);
                        }
                    });
                    splitPaneLayoutData = new SplitPaneLayoutData();
                    splitPaneLayoutData.setBackground(new Color(0x5f5f9f));
                    splitPaneLayoutData.setInsets(new Insets(8));
                    splitPaneLayoutData.setAlignment(new Alignment(Alignment.CENTER, Alignment.DEFAULT));
                    splitPaneLayoutData.setOverflow(SplitPaneLayoutData.OVERFLOW_HIDDEN);
                    okButton.setLayoutData(splitPaneLayoutData);
                    okButton.setWidth(new Extent(100));
                    okButton.setStyleName("Default");
                    splitPane.add(okButton);
                   
                    Label contentLabel = new Label(StyleUtil.QUASI_LATIN_TEXT_1);
                    splitPaneLayoutData = new SplitPaneLayoutData();
                    splitPaneLayoutData.setBackground(new Color(0xefefff));
                    contentLabel.setLayoutData(splitPaneLayoutData);
                    splitPane.add(contentLabel);
                   
                    windowPane.add(splitPane);
                }
            });
   
            addButton("Add Multiple SplitPane Nautilus Window", new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    final WindowPane windowPane = new WindowPane();
                    windowPane.setStyleName("Default");
                    windowPane.setWidth(new Extent(500, Extent.PX));
                    windowPane.setHeight(new Extent(500, Extent.PX));
                    windowPane.setTitle("SP Nautilus Window #" + windowNumber++);
                    windowPane.add(new SplitPaneNestedTest(new Extent(50)));
                    positionWindowPane(windowPane);
                    targetContentPane.add(windowPane);
                }
            });
           
            addButton("Add Multiple SplitPane Window", new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    final WindowPane windowPane = new WindowPane();
                    positionWindowPane(windowPane);
                    targetContentPane.add(windowPane);
                    windowPane.setTitle("Multiple SplitPane Window #" + windowNumber++);
                    windowPane.setTitleInsets(new Insets(10, 5));
                    windowPane.setStyleName("Default");
                    windowPane.setTitleBackground(new Color(0x2f2f4f));
                    windowPane.setWidth(new Extent(700, Extent.PX));
                    windowPane.setHeight(new Extent(500, Extent.PX));
                   
                    SplitPane splitPane1 = new SplitPane(SplitPane.ORIENTATION_HORIZONTAL, new Extent(100));
                    splitPane1.setStyleName("DefaultResizable");
                    SplitPaneLayoutData splitPaneLayoutData;
                   
                    Label label;
                   
                    label = new Label(StyleUtil.QUASI_LATIN_TEXT_1);
                    splitPaneLayoutData = new SplitPaneLayoutData();
                    splitPaneLayoutData.setBackground(new Color(0x3fbf5f));
                    splitPaneLayoutData.setInsets(new Insets(5));
                    label.setLayoutData(splitPaneLayoutData);
                    splitPane1.add(label);

                    SplitPane splitPane2 = new SplitPane(SplitPane.ORIENTATION_VERTICAL, new Extent(120));
                    splitPane2.setStyleName("DefaultResizable");
                   
                    SplitPane splitPane3 = new SplitPane(SplitPane.ORIENTATION_HORIZONTAL, new Extent(200));
                    splitPane3.setStyleName("DefaultResizable");
                    splitPane2.add(splitPane3);
                   
                    SplitPane splitPane4 = new SplitPane(SplitPane.ORIENTATION_HORIZONTAL, new Extent(300));
                    splitPane4.setStyleName("DefaultResizable");
                    splitPane2.add(splitPane4);
                   
                    label = new Label(StyleUtil.QUASI_LATIN_TEXT_1);
                    splitPaneLayoutData = new SplitPaneLayoutData();
                    splitPaneLayoutData.setBackground(new Color(0x5f3fbf));
                    splitPaneLayoutData.setInsets(new Insets(5));
                    label.setLayoutData(splitPaneLayoutData);
                    splitPane3.add(label);
                   
                    label = new Label(StyleUtil.QUASI_LATIN_TEXT_1);
                    splitPaneLayoutData = new SplitPaneLayoutData();
                    splitPaneLayoutData.setBackground(new Color(0x3f5fbf));
                    splitPaneLayoutData.setInsets(new Insets(5));
                    label.setLayoutData(splitPaneLayoutData);
                    splitPane3.add(label);
                   
                    label = new Label(StyleUtil.QUASI_LATIN_TEXT_1);
                    splitPaneLayoutData = new SplitPaneLayoutData();
                    splitPaneLayoutData.setBackground(new Color(0xbf5f3f));
                    splitPaneLayoutData.setInsets(new Insets(5));
                    label.setLayoutData(splitPaneLayoutData);
                    splitPane4.add(label);
                   
                    label = new Label(StyleUtil.QUASI_LATIN_TEXT_1);
                    splitPaneLayoutData = new SplitPaneLayoutData();
                    splitPaneLayoutData.setBackground(new Color(0xbf3f5f));
                    splitPaneLayoutData.setInsets(new Insets(5));
                    label.setLayoutData(splitPaneLayoutData);
                    splitPane4.add(label);
   
                    splitPane1.add(splitPane2);
                   
                    windowPane.add(splitPane1);
                }
View Full Code Here

Examples of nextapp.echo2.app.SplitPane

        loginWindow.setTitle(Messages.getString("LoginScreen.LoginWindowTitle"));
        loginWindow.setStyleName("LoginScreen.LoginWindow");
        loginWindow.setDefaultCloseOperation(WindowPane.DO_NOTHING_ON_CLOSE);
        add(loginWindow);
       
        SplitPane splitPane = new SplitPane(SplitPane.ORIENTATION_VERTICAL_BOTTOM_TOP, new Extent(32));
        loginWindow.add(splitPane);
       
        Row controlRow = new Row();
        controlRow.setStyleName("ControlPane");
        splitPane.add(controlRow);
       
        Button button = new Button(Messages.getString("LoginScreen.Continue"), Styles.ICON_24_YES);
        button.setStyleName("ControlPane.Button");
        button.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                processLogin();
            }
        });
        controlRow.add(button);

        Grid layoutGrid = new Grid();
        layoutGrid.setStyleName("LoginScreen.LayoutGrid");
        splitPane.add(layoutGrid);

        label = new Label(Messages.getString("LoginScreen.PromptEmailAddress"));
        label.setStyleName("LoginScreen.Prompt");
        layoutGrid.add(label);
View Full Code Here

Examples of nextapp.echo2.app.SplitPane

    private Column testLaunchButtonsColumn;
   
    public TestPane() {
        super();
       
        SplitPane verticalPane = new SplitPane(SplitPane.ORIENTATION_VERTICAL);
        verticalPane.setStyleName("TestPane");
        add(verticalPane);

        Label titleLabel = new Label("NextApp Echo2 Test Application");
        titleLabel.setStyleName("TitleLabel");
        verticalPane.add(titleLabel);
       
        horizontalPane = new SplitPane(SplitPane.ORIENTATION_HORIZONTAL, new Extent(215));
        horizontalPane.setStyleName("DefaultResizable");
        verticalPane.add(horizontalPane);
       
        Column controlsColumn = new Column();
        controlsColumn.setStyleName("ApplicationControlsColumn");
        controlsColumn.setCellSpacing(new Extent(5));
       
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.