Uses of Class
com.jbstrap.ui.components.menubar.MenuBar
-
Uses of MenuBar in com.jbstrap.ui.components.menubar
Modifier and TypeMethodDescriptionfinal MenuBar
MenuBar.addMenuItem
(MenuItem item) Adds a menu item to the menu bar component.final MenuBar
MenuBar.addMenuItem
(MenuItem item, CurrentUser user) Adds a menu item to the navigation menu.MenuBar.addMenuItemToUserMenu
(String name, Icon icon, String text, ClickEventHandler clickHandler) Adds a new custom menu item to the user menu bar.MenuBar.addSearch
(NavBarSeachHandler searchHandler) Adds a generic search component to the navbar.final MenuBar
MenuBar.buildFromMenu
(String menuName, CurrentUser user) Creates a menu bar component, based on the specified menu.MenuBar.removeAllMenuItemsFromTheUserMenu()
Removes all menu items associated with a user menu.MenuBar.removeSearch()
Removes the search component from the navbar.MenuBar.removeUserMenu()
Removes the complete user menu from the menu bar.MenuBar.removeUserMenuItem
(String name) Removes a menu item from the user menu by referencing its name.Sets the image on the left of the menu bar component.MenuBar.setBrand
(Image image, ClickEventHandler clickHandler) Sets the image on the left of the menu bar component.Sets the text on the left of the menu bar component.MenuBar.setBrand
(Icon icon, String brand, Image image, ClickEventHandler clickHandler) Sets the text on the left of the menu bar component.Sets the text on the left of the menu bar component.MenuBar.setBrand
(String brand, ClickEventHandler clickHandler) Sets the text on the left of the menu bar component.MenuBar.setContainerType
(ContainerType type) Sets the role for menu bar component elements.MenuBar.setUserMenuItemIcon
(String name, Icon icon) Sets an icon for a user menu item.MenuBar.setUserMenuItemText
(String name, String text) Sets a text for the user menu item.MenuBar.setUsername
(String username) Sets the username on the menu barMenuBar.setUserPicture
(String pictureUrl) Sets the avatar image displayed in the menu bar.MenuBar.setUserStatus
(String status) Sets the menu bar component’s displayed user status.