Example usage for com.vaadin.ui VerticalSplitPanel setSecondComponent

List of usage examples for com.vaadin.ui VerticalSplitPanel setSecondComponent

Introduction

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

Prototype

public void setSecondComponent(Component c) 

Source Link

Document

Sets the second component of this split panel.

Usage

From source file:org.opennms.features.vaadin.nodemaps.internal.NodeMapsApplication.java

License:Open Source License

private void updateWidgetView() {
    final VerticalSplitPanel bottomLayoutBar = new VerticalSplitPanel();
    bottomLayoutBar.setFirstComponent(m_mapWidgetComponent);

    // Split the screen 70% top, 30% bottom
    bottomLayoutBar.setSplitPosition(70, Unit.PERCENTAGE);
    bottomLayoutBar.setSizeFull();/*from   w  w w  .  j  ava2 s .  c  om*/
    bottomLayoutBar.setSecondComponent(getTabSheet());
    m_layout.addComponent(bottomLayoutBar);
    m_layout.markAsDirty();
}

From source file:pt.yellowduck.ramboia.RamboiaApplication.java

License:Open Source License

private void buildMainLayout() {

    VerticalSplitPanel vSplit = new VerticalSplitPanel();
    vSplit.setSplitPosition(15, Sizeable.UNITS_PERCENTAGE);
    vSplit.setSizeFull();//w w w.  j av  a 2 s  .  c  om

    HorizontalSplitPanel hSplit_top = new HorizontalSplitPanel();
    hSplit_top.setSizeFull();
    hSplit_top.setSplitPosition(50, Sizeable.UNITS_PERCENTAGE);
    hSplit_top.setFirstComponent(viewPlayer);
    hSplit_top.setSecondComponent(viewUpload);
    hSplit_top.setLocked(true);

    vSplit.setFirstComponent(hSplit_top);

    HorizontalSplitPanel hSplit_bottom = new HorizontalSplitPanel();
    hSplit_bottom.setSizeFull();
    hSplit_bottom.setSplitPosition(75, Sizeable.UNITS_PERCENTAGE);
    hSplit_bottom.setFirstComponent(viewLibrary);
    hSplit_bottom.setSecondComponent(viewPlaylist);
    hSplit_bottom.setLocked(true);

    vSplit.setSecondComponent(hSplit_bottom);

    mainWindow.setContent(vSplit);
}