Package org.gwtoolbox.widget.client.panel

Examples of org.gwtoolbox.widget.client.panel.FixedVerticalPanel$ImplIE6


@PanelSample
public class FixedVerticalPanelSamplePane extends LayoutComposite implements SamplePanel {

    public FixedVerticalPanelSamplePane() {

        FixedVerticalPanel svp = new FixedVerticalPanel();
        DOM.setStyleAttribute(svp.getElement(), "borderBottom", "1px solid blue");
        svp.addWidget(createContent("height: 70px", "#CCFFCC", "BLUE"), new VerticalLayoutData().setHeight("70px"));
        Widget content = createContent("height: 50%", "#FFFBA3", "GREEN");
        content.setVisible(true);
        svp.addWidget(content, new VerticalLayoutData().setHeight("50%"));
        svp.addWidget(createContent("height: *", "#FFC0CB", "black"));
//        svp.addWidget(createContent("height: 50px", "#E6E6FA"), new VerticalLayoutData().setHeight("50px"));
//        svp.addWidget(createContent("height: *", "orange"));

        FitPanel panel = new FitPanel();
        panel.setSize("400px", "100%");
View Full Code Here


                }
            }
        });

        if (fixedSize) {
            final FixedVerticalPanel main = new FixedVerticalPanel();
            main.addWidget(tabBar, new VerticalLayoutData().setHeight("27px"));
            main.addWidget(deckPanel, new VerticalLayoutData().setHeight("*").setExpandToFit(true).setOverflow("hidden"));
            tabBarVisibilitySetter = new ValueSetter<Boolean>() {
                public void set(Boolean visible) {
                    setVisible(main.getWidgetContainer(tabBar), visible);
                }
            };
            initWidget(main);
        } else {
            final Grid main = new Grid(2, 1);
            main.setCellPadding(0);
            main.setCellSpacing(0);
            main.getCellFormatter().setHeight(0, 0, "27px");
            main.setWidget(0, 0, tabBar);
            tabBar.setSize("100%", "20px");
            main.setWidget(1, 0, deckPanel);
            deckPanel.setSize("100%", "100%");

            SimplePanel sp = new SimplePanel();
            sp.setWidget(main);
            main.setWidth("100%");

            tabBarVisibilitySetter = new ValueSetter<Boolean>() {
                public void set(Boolean visible) {
                    main.getCellFormatter().setVisible(0, 0, visible);
                }
            };

            initWidget(sp);
        }
View Full Code Here

TOP

Related Classes of org.gwtoolbox.widget.client.panel.FixedVerticalPanel$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.