當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。