本文整理汇总了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;
}
示例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();
}
}
});
}