Package org.gwtoolbox.widget.client.panel.split.vertical

Examples of org.gwtoolbox.widget.client.panel.split.vertical.SimpleVerticalSplitPanel


        FixedVerticalPanel vp = new FixedVerticalPanel();
        vp.addWidget(createContent("Console", "green"), new VerticalLayoutData().setHeight("25px"));
        vp.addWidget(createContent(createVeryLongText(), "orange"), new VerticalLayoutData().setExpandToFit(true).setOverflow("auto"));

        final SimpleVerticalSplitPanel vsp = new SimpleVerticalSplitPanel();
        vsp.setTopWidget(hsp);
        vsp.setBottomWidget(vp);
        vsp.setSplitPosition("75%");

        HorizontalPanel buttons = new HorizontalPanel();
        final SimpleToggleButton hideLeftButton = new SimpleToggleButton("Hide Left");
        hideLeftButton.getDownFace().setText("Show Left");
        hideLeftButton.addChangeHandler(new ChangeHandler() {
            public void onChange(ChangeEvent event) {
                hsp.setLeftWidgetVisible(!hideLeftButton.isDown());
            }
        });
        buttons.add(hideLeftButton);
        addGap(buttons, "10px");

        final SimpleToggleButton hideRightButton = new SimpleToggleButton("Hide Right");
        hideRightButton.getDownFace().setText("Show Right");
        hideRightButton.addChangeHandler(new ChangeHandler() {
            public void onChange(ChangeEvent event) {
               hsp.setRightWidgetVisible(!hideRightButton.isDown());
            }
        });
        buttons.add(hideRightButton);
        addGap(buttons, "10px");

        final SimpleToggleButton hideBottomButton = new SimpleToggleButton("Hide Bottom");
        hideBottomButton.getDownFace().setText("Show Bottom");
        hideBottomButton.addChangeHandler(new ChangeHandler() {
            public void onChange(ChangeEvent event) {
                vsp.setBottomWidgetVisible(!hideBottomButton.isDown());
            }
        });
        buttons.add(hideBottomButton);

        buttons.setWidth("100%");
View Full Code Here


        buttons.add(toggleTopBtn);
        final SimpleToggleButton toggleBottomBtn = new SimpleToggleButton("Hide Bottom");
        toggleBottomBtn.getDownFace().setText("Show Bottom");
        buttons.add(toggleBottomBtn);

        final SimpleVerticalSplitPanel vsp = new SimpleVerticalSplitPanel();
        vsp.setSize("100%", "100%");
        ScrollPanel tsp = new ScrollPanel(createContent(createVeryLongText(), "#CCFFCC"));
        tsp.setSize("100%", "100%");
        vsp.setTopWidget(tsp);
        ScrollPanel bsp = new ScrollPanel(createContent(createVeryLongText(), "#FFFBA3"));
        bsp.setSize("100%", "100%");
        vsp.setBottomWidget(bsp);

        toggleTopBtn.addChangeHandler(new ChangeHandler() {
            public void onChange(ChangeEvent event) {
                vsp.setTopWidgetVisible(!toggleTopBtn.isDown());
                toggleBottomBtn.setDown(!toggleTopBtn.isDown());
            }
        });

        toggleBottomBtn.addChangeHandler(new ChangeHandler() {
            public void onChange(ChangeEvent event) {
                vsp.setBottomWidgetVisible(!toggleBottomBtn.isDown());
                toggleTopBtn.setDown(!toggleBottomBtn.isDown());
            }
        });

        main.add(buttons, DockPanel.NORTH);
View Full Code Here

        hsp.setSize("100%", "100%");
        hsp.setLeftWidget(createContent("Left", "#CCFFCC"));
        hsp.setCenterWidget(createContent("Center", "#FFC0CB"));
        hsp.setRightWidget(createContent("Right", "#FFFBA3"));

        final SimpleVerticalSplitPanel vsp = new SimpleVerticalSplitPanel();
        vsp.setSize("100%", "100%");
        vsp.setTopWidget(hsp);
        vsp.setBottomWidget(createContent("Bottom", "#E6E6FA"));
        vsp.setSplitPosition("70%");
        vsp.setTopWidgetVisible(false);

        toggleLeftBtn.addChangeHandler(new ChangeHandler() {
            public void onChange(ChangeEvent event) {
                hsp.setLeftWidgetVisible(!toggleLeftBtn.isDown());
            }
        });

        toggleRightBtn.addChangeHandler(new ChangeHandler() {
            public void onChange(ChangeEvent event) {
                hsp.setRightWidgetVisible(!toggleRightBtn.isDown());
            }
        });

        toggleBottomBtn.addChangeHandler(new ChangeHandler() {
            public void onChange(ChangeEvent event) {
                vsp.setBottomWidgetVisible(!toggleBottomBtn.isDown());
            }
        });
        toggleTopBtn.addChangeHandler(new ChangeHandler() {
            public void onChange(ChangeEvent event) {
                vsp.setTopWidgetVisible(!toggleTopBtn.isDown());
            }
        });
        toggleTopBtn.setDown(true);

        main.add(buttons, DockPanel.NORTH);
View Full Code Here

        main.setWidget(1, 0, statusBar);
        main.getCellFormatter().setHeight(1, 0, STATUS_BAR_HEIGHT);
        main.getCellFormatter().setVisible(1, 0, false);

        horizontalSplitPanel = new DoubleHorizontalSplitPanel();
        verticalSplitPanel = new SimpleVerticalSplitPanel();
        leftContentPane = new SimplePanel();
        rightContentPane = new SimplePanel();
        bottomContentPane = new SimplePanel();

        horizontalSplitPanel.setLeftWidget(leftContentPane);
View Full Code Here

TOP

Related Classes of org.gwtoolbox.widget.client.panel.split.vertical.SimpleVerticalSplitPanel

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.