当前位置: 首页>>代码示例>>Java>>正文


Java VerticalSplitPanel.setFirstComponent方法代码示例

本文整理汇总了Java中com.vaadin.ui.VerticalSplitPanel.setFirstComponent方法的典型用法代码示例。如果您正苦于以下问题:Java VerticalSplitPanel.setFirstComponent方法的具体用法?Java VerticalSplitPanel.setFirstComponent怎么用?Java VerticalSplitPanel.setFirstComponent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.vaadin.ui.VerticalSplitPanel的用法示例。


在下文中一共展示了VerticalSplitPanel.setFirstComponent方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createMainContainer

import com.vaadin.ui.VerticalSplitPanel; //导入方法依赖的package包/类
@Override
protected ComponentContainer createMainContainer() {
	Panel mainPanel = new Panel();
	mainPanel.setSizeFull();
	if (!multipleLevels) {
		firstContainer = mainPanel;
	} else {
		VerticalSplitPanel vSplit = new VerticalSplitPanel();
		vSplit.setSizeFull();
		mainPanel.setContent(vSplit);
		firstContainer = new Panel();
		firstContainer.setSizeFull();
		vSplit.setFirstComponent(firstContainer);
		secondContainer = new Panel();
		secondContainer.setSizeFull();
		vSplit.setSecondComponent(secondContainer);
		vSplit.setLocked(false);
	}
	return mainPanel;
}
 
开发者ID:frincon,项目名称:openeos,代码行数:21,代码来源:VaadinWindowImpl.java

示例2: updateWidgetView

import com.vaadin.ui.VerticalSplitPanel; //导入方法依赖的package包/类
/**
 * Updates the bottom widget area with the registered widgets
 * 
 * Any widget with the service property of 'location=bottom' are
 * included.
 * 
 * @param widgetManager
 */
private void updateWidgetView(WidgetManager widgetManager) {
    synchronized (m_layout) {
        m_layout.removeAllComponents();
        if(widgetManager.widgetCount() == 0) {
            m_layout.addComponent(m_treeMapSplitPanel, getBelowMenuPosition());
        } else {
            VerticalSplitPanel bottomLayoutBar = new VerticalSplitPanel();
            bottomLayoutBar.setFirstComponent(m_treeMapSplitPanel);
            // Split the screen 70% top, 30% bottom
            bottomLayoutBar.setSplitPosition(70, Sizeable.UNITS_PERCENTAGE);
            bottomLayoutBar.setSizeFull();
            bottomLayoutBar.setSecondComponent(getTabSheet(widgetManager, this));
            m_layout.addComponent(bottomLayoutBar, getBelowMenuPosition());
        }
        m_layout.requestRepaint();
    }
    if(m_contextMenu != null && m_contextMenu.getParent() == null) {
        getMainWindow().addComponent(m_contextMenu);
    }
}
 
开发者ID:qoswork,项目名称:opennmszh,代码行数:29,代码来源:TopologyWidgetTestApplication.java

示例3: AddressBookView

import com.vaadin.ui.VerticalSplitPanel; //导入方法依赖的package包/类
public AddressBookView() {
	VerticalSplitPanel splitPanel = new VerticalSplitPanel();
	VerticalLayout topLayout = new VerticalLayout();
	HorizontalLayout buttonPanel = new HorizontalLayout();
	buttonPanel.setSpacing(true);
	buttonPanel.setMargin(true);
	buttonPanel.addComponent(addButton);
	buttonPanel.addComponent(removeButton);
	topLayout.addComponent(buttonPanel);
	topLayout.addComponent(table);
	topLayout.setExpandRatio(table, 1.0f);
	topLayout.setSizeFull();
	table.setSizeFull();
	table.setSelectable(true);
	table.setMultiSelect(false);
	table.setImmediate(true);
	splitPanel.setFirstComponent(topLayout);
	splitPanel.setSecondComponent(form);
	splitPanel.setSplitPosition(60.0f, UNITS_PERCENTAGE);
	setCompositionRoot(splitPanel);
	setSizeFull();
}
 
开发者ID:michaeljfazio,项目名称:bambi-mvvm,代码行数:23,代码来源:AddressBookView.java

示例4: init

import com.vaadin.ui.VerticalSplitPanel; //导入方法依赖的package包/类
@Override
protected void init(VaadinRequest request) {
	treeToolEditor = new TreeToolEditor(this);
	toolEditor = new ToolEditor(this);
	textEditor = new TextEditor(this);
	final Panel vLayout = new Panel();
	vSplitPanel = new VerticalSplitPanel();
	vSplitPanel.setSplitPosition(50, Unit.PERCENTAGE);
	vSplitPanel.setImmediate(true);
	vSplitPanel.setLocked(false);
	vSplitPanel.setWidth("100%");
	vLayout.setContent(vSplitPanel);
    setContent(vSplitPanel);
    VerticalLayout vvLayout = new VerticalLayout();
    vvLayout.setSizeFull();
    Label title = new Label("<h2><b>&nbsp;Tool Editor</b></h2>", ContentMode.HTML);

    vvLayout.addComponent(title);
    vvLayout.setComponentAlignment(title, Alignment.TOP_LEFT);
    HorizontalSplitPanel hSplitpPanel = new HorizontalSplitPanel();
    hSplitpPanel.setSizeFull();
    vvLayout.addComponent(hSplitpPanel);

    HorizontalLayout buttonPanel = getButtonPanel();
    vvLayout.addComponent(buttonPanel);
    vvLayout.setComponentAlignment(buttonPanel, Alignment.MIDDLE_CENTER);

    vvLayout.setExpandRatio(hSplitpPanel, 5);
    vvLayout.setComponentAlignment(hSplitpPanel, Alignment.TOP_LEFT);
    vvLayout.setMargin(false);
    vvLayout.setSpacing(false);
    hSplitpPanel.setFirstComponent(treeToolEditor);
    hSplitpPanel.setSecondComponent(toolEditor);
    vSplitPanel.setFirstComponent(vvLayout);
    vSplitPanel.setSecondComponent(textEditor);
    hSplitpPanel.setStyleName("topborder");
}
 
开发者ID:chipster,项目名称:chipster,代码行数:38,代码来源:ToolEditorUI.java

示例5: init

import com.vaadin.ui.VerticalSplitPanel; //导入方法依赖的package包/类
@Override
protected void init(VaadinRequest request) {
	final VerticalLayout layout = new VerticalLayout();
	layout.setMargin(true);
	layout.setSizeFull();
	setContent(layout);
	
	HorizontalSplitPanel hPanel = new HorizontalSplitPanel();
	VerticalSplitPanel vPanel = new VerticalSplitPanel();
	Panel playerPanel = new Panel("Player");
	Panel roundsPanel = new Panel("Rounds");
	Panel matchesPanel = new Panel("Matches");
	Table playersTable = new Table("PlayersTable");
	playersTable.addContainerProperty("Id", Integer.class, null);
	playersTable.addContainerProperty("Name", String.class, null);
	playersTable.addContainerProperty("Score", Integer.class, null);
	playersTable.addContainerProperty("Handicap", Integer.class,null);
	Table roundsTable = new Table("RoundsTable");
	Table matchesTable = new Table("MatchesTable");
	playerPanel.setContent(playersTable);
	HorizontalLayout newPlayerLayout = new HorizontalLayout();
	TextField newPlayer = new TextField(null,"newPlayer");
	Button addPlayerButton = new Button("addPlayer");
	newPlayerLayout.addComponent(newPlayer);
	newPlayerLayout.addComponent(addPlayerButton);
	hPanel.addComponent(newPlayerLayout);
	roundsPanel.setContent(roundsTable);
	matchesPanel.setContent(matchesTable);

	VerticalLayout playerLayout = new VerticalLayout();
	playerLayout.addComponent(playerPanel);
	playerLayout.addComponent(newPlayerLayout);

	VerticalLayout roundsLayout = new VerticalLayout();
	roundsLayout.addComponent(roundsPanel);
	Button addRoundButton = new Button("addRound");
	roundsLayout.addComponent(roundsPanel);
	roundsLayout.addComponent(addRoundButton);
	
	layout.addComponent(hPanel);
	hPanel.setFirstComponent(playerLayout);
	hPanel.setSecondComponent(vPanel);
	vPanel.setFirstComponent(roundsLayout);
	vPanel.setSecondComponent(matchesPanel);
}
 
开发者ID:johannestigges,项目名称:tournament,代码行数:46,代码来源:TournamentUI.java


注:本文中的com.vaadin.ui.VerticalSplitPanel.setFirstComponent方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。