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

Examples of org.gwtoolbox.widget.client.panel.split.horizontal.SimpleHorizontalSplitPanel$ImplIE6


        ScrollPanel content2 = new ScrollPanel(createContent(createVeryLongText(), "#CCFFCC"));
        content2.setSize("100%", "100%");
        panel.addTab("Tab 2", content2);

        SimpleHorizontalSplitPanel hsp = new SimpleHorizontalSplitPanel();
        hsp.setLeftWidget(new Label("Left"));
        hsp.setRightWidget(new Label("Right"));
        hsp.setSplitPosition("25%");
        hsp.setSize("100%", "100%");
        panel.addTab("Tab 3", hsp);

        TabSpec tab4 = new TabSpec("tab4", "Tab 4", null, new Label("Confent for Tab 4"), false).setMenuBuilder(new MenuBuilder() {
            public void build(Menu menu) {
                CheckMenuItem item = new CheckMenuItem("Disable", !panel.isTabEnabled("tab4"));
View Full Code Here


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

        final SimpleHorizontalSplitPanel hsp = new SimpleHorizontalSplitPanel();
        hsp.setSize("100%", "100%");

        ScrollPanel lsp = new ScrollPanel(createContent(createVeryLongText(), "#CCFFCC"));
        lsp.setSize("100%", "100%");
        hsp.setLeftWidget(lsp);

        ScrollPanel rsp = new ScrollPanel(createContent(createVeryLongText(), "#FFFBA3"));
        rsp.setSize("100%", "100%");
        hsp.setRightWidget(rsp);

        hsp.setSize("100%", "100%");

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

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

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

TOP

Related Classes of org.gwtoolbox.widget.client.panel.split.horizontal.SimpleHorizontalSplitPanel$ImplIE6

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.