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