Example usage for com.vaadin.ui AbstractSplitPanel setHeight

List of usage examples for com.vaadin.ui AbstractSplitPanel setHeight

Introduction

In this page you can find the example usage for com.vaadin.ui AbstractSplitPanel setHeight.

Prototype

@Override
    public void setHeight(String height) 

Source Link

Usage

From source file:module.pandabox.presentation.PandaBox.java

License:Open Source License

private Layout getSplitPreviews() {
    Layout grid = getPreviewLayout("Split panels");

    AbstractSplitPanel panel = new VerticalSplitPanel();
    panel.setWidth("230px");
    panel.setHeight("130px");
    grid.addComponent(panel);/*from w  ww  .  j ava 2 s.  c om*/

    panel = new VerticalSplitPanel();
    panel.setWidth("230px");
    panel.setHeight("130px");
    panel.setStyleName("small");
    grid.addComponent(panel);

    panel = new HorizontalSplitPanel();
    panel.setWidth("230px");
    panel.setHeight("130px");
    grid.addComponent(panel);

    panel = new HorizontalSplitPanel();
    panel.setWidth("230px");
    panel.setHeight("130px");
    panel.setStyleName("small");
    grid.addComponent(panel);

    return grid;
}