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


Java SliderTabPosition类代码示例

本文整理汇总了Java中org.vaadin.sliderpanel.client.SliderTabPosition的典型用法代码示例。如果您正苦于以下问题:Java SliderTabPosition类的具体用法?Java SliderTabPosition怎么用?Java SliderTabPosition使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: postLoad

import org.vaadin.sliderpanel.client.SliderTabPosition; //导入依赖的package包/类
void postLoad()
{
	VerticalLayout sliderHolder = new VerticalLayout();
	sliderHolder.setWidth("80%");
	sliderHolder.setHeight("40");
	addComponent(sliderHolder);
	setComponentAlignment(sliderHolder, Alignment.TOP_CENTER);

	dashboardsSlider = new SliderPanelBuilder(dashboardPanels()).expanded(false).mode(SliderMode.TOP)
			.tabPosition(SliderTabPosition.MIDDLE).style(style).caption("Dashboards").animationDuration(400)
			.tabSize(30).autoCollapseSlider(true).build();
	sliderHolder.addComponent(dashboardsSlider);

	Tblportallayout portalLayout = findDefaultPortal();
	createDashboard(portalLayout);
	dashBoardSelector.select(portalLayout);
	dashBoardHolderPanel.setSizeFull();

	addComponent(dashBoardHolderPanel);
	setExpandRatio(dashBoardHolderPanel, 1);

}
 
开发者ID:rlsutton1,项目名称:VaadinUtils,代码行数:23,代码来源:DashBoardView.java

示例2: buildMainLayout

import org.vaadin.sliderpanel.client.SliderTabPosition; //导入依赖的package包/类
private void buildMainLayout()
{

	addComponent((Component) component);
	setExpandRatio((Component) component, 1);
	helpPane = new Panel();
	helpPane.setImmediate(false);

	showHelpLoadingSplash();

	helpSliderPanel = new SliderPanelBuilder(helpPane).expanded(false).mode(SliderMode.RIGHT)
			.tabPosition(SliderTabPosition.MIDDLE).style(SliderPanelStyles.COLOR_BLUE).caption("Help")
			.animationDuration(400).tabSize(30).autoCollapseSlider(true)
			.fixedContentSize((int) (UI.getCurrent().getPage().getBrowserWindowWidth() * 0.75)).build();

	helpLoader = new SlideOutLoader();

	innerSecondPanel = new VerticalLayout();
	innerSecondPanel.setSizeFull();
	innerSecondPanel.setWidth("30");
	innerSecondPanel.addComponent(helpSliderPanel);
	innerSecondPanel.setComponentAlignment(helpSliderPanel, Alignment.MIDDLE_RIGHT);

	addComponent(innerSecondPanel);

	Page.getCurrent().addBrowserWindowResizeListener(new BrowserWindowResizeListener()
	{

		private static final long serialVersionUID = -8548907013566961812L;

		@Override
		public void browserWindowResized(BrowserWindowResizeEvent event)
		{

			helpSliderPanel.setFixedContentSize((int) (event.getWidth() * 0.75));
			if (helpSliderPanel.isExpanded())
			{
				helpSliderPanel.collapse();
			}

		}

	});

}
 
开发者ID:rlsutton1,项目名称:VaadinUtils,代码行数:46,代码来源:HelpSplitPanel.java


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