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