Example usage for com.vaadin.ui AbstractSplitPanel setStyleName

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

Introduction

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

Prototype

@Override
    public void setStyleName(String style) 

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 w w  .  j av  a 2s . 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;
}