Example usage for com.vaadin.ui AbstractSplitPanel setCaption

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

Introduction

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

Prototype

@Override
    public void setCaption(String caption) 

Source Link

Usage

From source file:org.opennms.features.jmxconfiggenerator.webui.ui.mbeans.MBeansView.java

License:Open Source License

private AbstractSplitPanel initMainPanel(Component first, Component second) {
    AbstractSplitPanel layout = new HorizontalSplitPanel();
    layout.setSizeFull();// ww w .j av  a 2s. c  om
    layout.setLocked(false);
    layout.setSplitPosition(20, UNITS_PERCENTAGE);
    layout.setFirstComponent(first);
    layout.setSecondComponent(second);
    layout.setCaption(first.getCaption());
    return layout;
}

From source file:org.opennms.features.vaadin.jmxconfiggenerator.ui.mbeans.MBeansView.java

License:Open Source License

private AbstractSplitPanel initMainPanel(Tree first, Component second) {
    AbstractSplitPanel splitPanel = new HorizontalSplitPanel();
    splitPanel.setSizeFull();/*from  ww  w . j  a v  a 2 s.  c  o  m*/
    splitPanel.setLocked(false);
    splitPanel.setSplitPosition(25, Unit.PERCENTAGE);

    splitPanel.setFirstComponent(first);
    splitPanel.setSecondComponent(second);
    splitPanel.setCaption(first.getCaption());
    return splitPanel;
}