Example usage for com.vaadin.ui AbstractSplitPanel setWidth

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

Introduction

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

Prototype

@Override
    public void setWidth(String width) 

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);//w ww .j  a  va 2  s.  co m

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