Package org.gwtoolbox.widget.client.panel.layout

Examples of org.gwtoolbox.widget.client.panel.layout.HorizontalLayout


@LayoutSample
public class HorizontalLayoutSample extends ResizeComposite implements SamplePanel {

    public HorizontalLayoutSample() {

        HorizontalLayout layout = new HorizontalLayout();
        layout.getElement().getStyle().setProperty("borderBottom", "1px solid blue");
        layout.addWidget(createContent("width: 70px", "#CCFFCC", "BLUE"), new HorizontalLayoutData().setWidth("70px"));
        Widget content = createContent("width: 50%", "#FFFBA3", "GREEN");
        content.setVisible(true);
        layout.addWidget(content, new HorizontalLayoutData().setWidth("50%"));
        layout.addWidget(createContent("width: *", "#FFC0CB", "black"));
        layout.addWidget(createContent("width: 50px", "#E6E6FA", "yellow"), new HorizontalLayoutData("50px"));
        layout.addWidget(createContent("width: *", "orange", "cyan"));

        initWidget(layout);
    }
View Full Code Here

TOP

Related Classes of org.gwtoolbox.widget.client.panel.layout.HorizontalLayout

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.