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


Java HorizontalSplitPanel.addStyleName方法代码示例

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


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

示例1: InitialLayout

import com.vaadin.ui.HorizontalSplitPanel; //导入方法依赖的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.HorizontalSplitPanel.addStyleName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。