List of usage examples for com.vaadin.ui.themes ValoTheme MENU_ROOT
String MENU_ROOT
To view the source code for com.vaadin.ui.themes ValoTheme MENU_ROOT.
Click Source Link
Set the primary style name of a CssLayout to this, and add any number of layouts with the #MENU_PART style inside it.
From source file:org.jumpmind.metl.ui.views.DeployNavigator.java
License:Open Source License
public DeployNavigator(ApplicationContext context, TabbedPanel tabbedPanel) { this.context = context; this.tabbedPanel = tabbedPanel; setCaption("Navigator"); setSizeFull();/*from ww w . ja v a2 s . c o m*/ addStyleName("noborder"); addStyleName(ValoTheme.MENU_ROOT); addComponent(buildMenuBar()); searchBarLayout = buildSearchBar(); addComponent(searchBarLayout); treeTable = buildTreeTable(); treeTable.addStyleName("noselect"); addComponent(treeTable); setExpandRatio(treeTable, 1); }
From source file:org.jumpmind.metl.ui.views.DesignNavigator.java
License:Open Source License
public DesignNavigator(ApplicationContext context, TabbedPanel tabs) { this.context = context; this.tabs = tabs; setSizeFull();// www .j a va2s . c o m addStyleName(ValoTheme.MENU_ROOT); addComponent(buildMenuBar()); searchBarLayout = buildSearchBar(); addComponent(searchBarLayout); treeTable = buildTreeTable(); }
From source file:org.jumpmind.metl.ui.views.ManageNavigator.java
License:Open Source License
public ManageNavigator(FolderType folderType, ApplicationContext context) { this.context = context; setSizeFull();//from w ww .ja v a 2s . c om addStyleName(ValoTheme.MENU_ROOT); VerticalLayout content = new VerticalLayout(); content.setSizeFull(); setContent(content); MenuBar leftMenuBar = new MenuBar(); leftMenuBar.addStyleName(ValoTheme.MENUBAR_BORDERLESS); leftMenuBar.setWidth(100, Unit.PERCENTAGE); content.addComponent(leftMenuBar); treeTable = buildTreeTable(); content.addComponent(treeTable); content.setExpandRatio(treeTable, 1); agentsFolder = new Folder(); agentsFolder.setName("Agents"); flowsFolder = new Folder(); flowsFolder.setName("Flows"); }
From source file:org.jumpmind.vaadin.ui.sqlexplorer.SqlExplorer.java
License:Open Source License
public SqlExplorer(String configDir, IDbProvider databaseProvider, ISettingsProvider settingsProvider, String user, float leftSplitSize, IDbMenuItem... additionalMenuItems) { this.databaseProvider = databaseProvider; this.settingsProvider = settingsProvider; this.savedSplitPosition = leftSplitSize; this.additionalMenuItems = additionalMenuItems; setSizeFull();/*www. j a v a2 s .c o m*/ addStyleName("sqlexplorer"); VerticalLayout leftLayout = new VerticalLayout(); leftLayout.setSizeFull(); leftLayout.addStyleName(ValoTheme.MENU_ROOT); leftLayout.addComponent(buildLeftMenu()); Panel scrollable = new Panel(); scrollable.setSizeFull(); dbTree = buildDbTree(); scrollable.setContent(dbTree); leftLayout.addComponent(scrollable); leftLayout.setExpandRatio(scrollable, 1); VerticalLayout rightLayout = new VerticalLayout(); rightLayout.setSizeFull(); VerticalLayout rightMenuWrapper = new VerticalLayout(); rightMenuWrapper.setWidth(100, Unit.PERCENTAGE); rightMenuWrapper.addStyleName(ValoTheme.MENU_ROOT); contentMenuBar = new MenuBar(); contentMenuBar.addStyleName(ValoTheme.MENUBAR_BORDERLESS); contentMenuBar.setWidth(100, Unit.PERCENTAGE); addShowButton(contentMenuBar); rightMenuWrapper.addComponent(contentMenuBar); rightLayout.addComponent(rightMenuWrapper); contentTabs = new SqlExplorerTabPanel(); contentTabs.addSelectedTabChangeListener(new SelectedTabChangeListener() { private static final long serialVersionUID = 1L; @Override public void selectedTabChange(SelectedTabChangeEvent event) { selectContentTab((IContentTab) contentTabs.getSelectedTab()); } }); rightLayout.addComponent(contentTabs); rightLayout.setExpandRatio(contentTabs, 1); addComponents(leftLayout, rightLayout); setSplitPosition(savedSplitPosition, Unit.PIXELS); }
From source file:org.vaadin.spring.sidebar.components.ValoSideBar.java
License:Apache License
/** * You should not need to create instances of this component directly. Instead, just inject the side bar into * your UI./*w ww . j a va2 s . c o m*/ */ public ValoSideBar(SideBarUtils sideBarUtils) { super(sideBarUtils); setPrimaryStyleName(ValoTheme.MENU_ROOT); setSizeUndefined(); }