Example usage for com.vaadin.ui HorizontalSplitPanel HorizontalSplitPanel

List of usage examples for com.vaadin.ui HorizontalSplitPanel HorizontalSplitPanel

Introduction

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

Prototype

public HorizontalSplitPanel() 

Source Link

Document

Creates an empty horizontal split panel.

Usage

From source file:uk.q3c.krail.core.ui.DefaultApplicationUI.java

License:Apache License

protected void splitPanel() {
    if (splitPanel == null) {
        splitPanel = new HorizontalSplitPanel();
        splitPanel.setWidth("100%");
        splitPanel.setSplitPosition(200, Unit.PIXELS);
    }/*from w w w  . jav a  2 s  . c om*/
    if (option.get(optionNavTreeVisible)) {
        splitPanel.setFirstComponent(navTree);
        splitPanel.setSecondComponent(mainArea);
        splitPanel.setVisible(true);
    } else {
        splitPanel.setVisible(false);
    }
}