List of usage examples for com.vaadin.ui VerticalSplitPanel setSplitPosition
public void setSplitPosition(float pos)
From source file:com.github.mjvesa.herd.HerdIDE.java
License:Apache License
private VerticalSplitPanel constructEditorAndLayoutPanel() { VerticalSplitPanel vsp = new VerticalSplitPanel(); vsp.setSizeFull();//from ww w. j a v a2 s . co m vsp.addComponent(constructEditorAndLayout()); vsp.setSplitPosition(80); console = createConsole(); vsp.addComponent(console); return vsp; }
From source file:de.catma.ui.repository.RepositoryView.java
License:Open Source License
private void initComponents() { setSizeFull();// ww w . j av a 2 s . c om this.setMargin(false, true, true, true); this.setSpacing(true); Component documentsLabel = createDocumentsLabel(); addComponent(documentsLabel); VerticalSplitPanel splitPanel = new VerticalSplitPanel(); splitPanel.setSplitPosition(65); Component documentsManagerPanel = createDocumentsManagerPanel(); splitPanel.addComponent(documentsManagerPanel); tagLibraryPanel = new TagLibraryPanel(repository.getTagManager(), repository); splitPanel.addComponent(tagLibraryPanel); addComponent(splitPanel); setExpandRatio(splitPanel, 1f); }
From source file:fi.jasoft.feedreader.ui.ReaderUI.java
License:Apache License
@Override protected void init(WrappedRequest request) { // Create data tables feedTable = createFeedsTable();//from www .ja v a 2 s. co m entryTable = createEntriesTable(); // Create the main horizontal split panel HorizontalSplitPanel content = new HorizontalSplitPanel(); content.setStyleName(Reindeer.SPLITPANEL_SMALL); content.setSizeFull(); setContent(content); // Create the content of the left part of the main split panel VerticalLayout vl = new VerticalLayout(); vl.setSizeFull(); vl.addComponent(feedTable); Button addFeedBtn = new Button("Add RSS/Atom feed", new Button.ClickListener() { @Override public void buttonClick(ClickEvent event) { addFeed(); } }); addFeedBtn.setWidth("100%"); vl.addComponent(addFeedBtn); vl.setExpandRatio(feedTable, 1); content.setFirstComponent(vl); content.setSplitPosition(30); // Create and set the content of the right part of the main split panel VerticalSplitPanel rightPane = new VerticalSplitPanel(); rightPane.setStyleName(Reindeer.SPLITPANEL_SMALL); rightPane.setSizeFull(); rightPane.addComponent(entryTable); entryPanel.setSizeFull(); rightPane.addComponent(entryPanel); content.addComponent(rightPane); rightPane.setSplitPosition(30); if (feeds.size() > 0) { feedTable.setValue(feeds.getItemIds().iterator().next()); } }