Package org.gwtoolbox.widget.client.panel.split.horizontal.dble

Examples of org.gwtoolbox.widget.client.panel.split.horizontal.dble.DoubleHorizontalSplitPanel$ImplSafari


        buttons.add(toggleLeftBtn);
        final SimpleToggleButton toggleRightBtn = new SimpleToggleButton("Hide Right");
        toggleRightBtn.getDownFace().setText("Show Right");
        buttons.add(toggleRightBtn);

        final DoubleHorizontalSplitPanel hsp = new DoubleHorizontalSplitPanel();
        hsp.setSize("100%", "100%");
        ScrollPanel sp = new ScrollPanel(createContent("#CCFFCC"));
        sp.setSize("100%", "100%");
        hsp.setLeftWidget(sp);
        sp = new ScrollPanel(createContent("#FFC0CB"));
        sp.setSize("100%", "100%");
        hsp.setCenterWidget(sp);
        sp = new ScrollPanel(createContent("#FFFBA3"));
        sp.setSize("100%", "100%");
        hsp.setRightWidget(sp);
        hsp.setSize("100%", "100%");

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

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


@PanelSample
public class IntegrationSamplePane extends Composite implements SamplePanel {

    public IntegrationSamplePane() {

        final DoubleHorizontalSplitPanel hsp = new DoubleHorizontalSplitPanel();
        hsp.setLeftWidget(addScroll(createContent(createVeryLongText(), "white")));
        hsp.setRightWidget(addScroll(createContent(createVeryLongText(), "white")));

        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%");
        hsp.setCenterWidget(buttons);


        FitPanel fitPanel = new FitPanel(vsp);
        fitPanel.setSize("100%", "100%");
View Full Code Here

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


        final DoubleHorizontalSplitPanel hsp = new DoubleHorizontalSplitPanel();
        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) {
View Full Code Here

//        main.setCellHeight(statusBar, STATUS_BAR_HEIGHT);
        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();
View Full Code Here

TOP

Related Classes of org.gwtoolbox.widget.client.panel.split.horizontal.dble.DoubleHorizontalSplitPanel$ImplSafari

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.