@LayoutSample
public class VerticalLayoutSample extends ResizeComposite implements SamplePanel {
public VerticalLayoutSample() {
VerticalLayout layout = new VerticalLayout();
DOM.setStyleAttribute(layout.getElement(), "borderBottom", "1px solid blue");
layout.addWidget(createContent("height: 70px", "#CCFFCC", "BLUE"), new VerticalLayoutData().setHeight("70px"));
Widget content = createContent("height: 50%", "#FFFBA3", "GREEN");
content.setVisible(true);
layout.addWidget(content, new VerticalLayoutData().setHeight("50%"));
layout.addWidget(createContent("height: *", "#FFC0CB", "black"));
initWidget(layout);
}