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


Java VerticalSplitPanel.setLocked方法代码示例

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


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

示例1: generateUi

import com.vaadin.ui.VerticalSplitPanel; //导入方法依赖的package包/类
/**
 * Diese Methode setzt den Titel (im Browser-Fenster) zu "Business Horizon 2.1" und
 * erstellt das zugehoerige Vertikale Splitpanel, in dem oben die Navigation und
 * unten die anzuzeigende Maske eingefuegt werden koennen.
 * 
 * @author Julius Hacker, Mirko Göpfrich
 */
private void generateUi() {
	setCaption("Business Horizon 2.1");
	logger.debug("Ueberschrift fuer Browser erstellt");
	
	//Teilt das Fenster vertikal in zwei Bereiche auf und erstellt eine horizontale Trennlinie (nicht verstellbar).
	verticalSplitPanel = new VerticalSplitPanel();
	verticalSplitPanel.setSplitPosition(100, Sizeable.UNITS_PIXELS);
	verticalSplitPanel.setLocked(true);
	verticalSplitPanel.setStyleName("small");
	logger.debug("Neues Vertikales SplitPanel erstellt");

	// Setzt das vertikale Splitpanel (äußeres Panel) inkl innere Panels als Inhalt für das Fenster.
	setContent(verticalSplitPanel);
	logger.debug("Vertikales SplitPanel mit allen Elementen an das Hauptfenster übergeben");
	
}
 
开发者ID:DHBW-Karlsruhe,项目名称:businesshorizon2,代码行数:24,代码来源:ProcessViewImpl.java

示例2: 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

示例3: 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

示例4: InitialLayout

import com.vaadin.ui.VerticalSplitPanel; //导入方法依赖的package包/类
/**
	 * Im Konstruktor wird das Layout erstellt.
	 * 
	 * @author Marco Glaser
	 * 
	 */
	public InitialLayout(){
		mainLayout.setSizeFull();
		mainLayout.setStyleName("mainLayout");
		leftLayout.setSizeFull();
		leftLayout.setStyleName("leftContainer");
		rightLayout.setSizeFull();
		bottomLayout.setSizeFull();
		bottomLeftLayout.setSizeFull();

		horizontalSplitPanel = new HorizontalSplitPanel();
		horizontalSplitPanel.setSplitPosition(30, com.vaadin.terminal.Sizeable.UNITS_PERCENTAGE);
		horizontalSplitPanel.setLocked(true);
		horizontalSplitPanel.setStyleName("horizontalMain");
		verticalSplitPanel = new VerticalSplitPanel();
		verticalSplitPanel.setSplitPosition(15, com.vaadin.terminal.Sizeable.UNITS_PERCENTAGE);
		verticalSplitPanel.setLocked(true);
		verticalSplitPanel.setWidth(90, com.vaadin.terminal.Sizeable.UNITS_PERCENTAGE);
		verticalSplitPanel.setHeight(100, com.vaadin.terminal.Sizeable.UNITS_PERCENTAGE);
		horizontalSplitPanelRight = new HorizontalSplitPanel();
		horizontalSplitPanelRight.setSplitPosition(30, com.vaadin.terminal.Sizeable.UNITS_PERCENTAGE);
		horizontalSplitPanelRight.setLocked(true);
		horizontalSplitPanelRight.addStyleName("horizontalBottom");
		horizontalSplitPanelRight.setHeight(90, com.vaadin.terminal.Sizeable.UNITS_PERCENTAGE);
		horizontalSplitPanelRight.setWidth(100, com.vaadin.terminal.Sizeable.UNITS_PERCENTAGE);
		
		leftL = new Label("links");
		rightTopL = new Label("rechts Oben");
		rightBottomL = new Label("rechts Unten");
		leftBottomL = new Label("links Unten");
		
		leftLayout.addComponent(leftL);
		rightLayout.addComponent(verticalSplitPanel);
		topRightLayout.addComponent(rightTopL);
		bottomRightLayout.addComponent(rightBottomL);
//		bottomLeftLayout.addComponent(leftBottomL);
		bottomLayout.addComponent(horizontalSplitPanelRight);
		
		horizontalSplitPanel.addComponent(leftLayout);
		horizontalSplitPanel.addComponent(rightLayout);
		
		verticalSplitPanel.addComponent(topRightLayout);
		verticalSplitPanel.addComponent(bottomLayout);
		
		horizontalSplitPanelRight.addComponent(bottomLeftLayout);
		horizontalSplitPanelRight.addComponent(bottomRightLayout);
		
		rightLayout.setComponentAlignment(verticalSplitPanel, Alignment.MIDDLE_CENTER);
		bottomLayout.setComponentAlignment(horizontalSplitPanelRight, Alignment.MIDDLE_CENTER);
		
		mainLayout.addComponent(horizontalSplitPanel);
	}
 
开发者ID:DHBW-Karlsruhe,项目名称:businesshorizon2,代码行数:58,代码来源:InitialLayout.java


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