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


Java SliderPanelStyles类代码示例

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


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

示例1: DashBoardView

import org.vaadin.sliderpanel.SliderPanelStyles; //导入依赖的package包/类
protected DashBoardView(boolean loadJQuery, String style)
{
	this.loadJQuery = loadJQuery;
	if (style == null)
	{
		this.style = SliderPanelStyles.COLOR_GREEN;
	}
	this.style = style;

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

示例2: buildMainLayout

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