本文整理匯總了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();
}
}
});
}