Uses of Class
com.jbstrap.ui.components.navbar.NavBar
-
Uses of NavBar in com.jbstrap.ui.components.navbar
Modifier and TypeMethodDescriptionNavBar.addComponent
(Component<?> component) NavBar.addFooterButton
(NavBarFooterButton button) Adds a footer button to the navbar component.NavBar.addFooterButtons
(NavBarFooterButton... buttons) Adds multiple footer buttons to the component.NavBar.addMenu
(String menuName, String title, CurrentUser user) Adds an entire menu to the navbar with the specified header text.NavBar.addSearch
(NavBarSeachHandler searchHandler) Adds a generic search component to the navbar.NavBar.createHeaderItem
(String headerText) Adds a header type menu item to the component.NavBar.pin()
Sets the navbar component’s size.NavBar.removeFooterButton
(NavBarFooterButton button) Removes a footer button from the navbar.NavBar.removeItem
(String name) Removes a menu item from the navbar component by its name.NavBar.removeSearch()
Removes the search component from the navbar.NavBar.setAutoPin
(boolean autoPin) Sets whether the navbar component should be automatically minimized.NavBar.setBackgroundImageUrl
(String imageUrl) Sets the background image for the navbar component.NavBar.setBorderRadius
(boolean radiusOn) Sets the border radius for navbar component elements.Sets the text on the top of the navbar component.NavBar.setBrand
(Icon icon, String brand, ClickEventHandler clickHandler) Sets the text on the top of the navbar component.Sets the text on the top of the navbar component.NavBar.setBrand
(String brand, ClickEventHandler clickHandler) Sets the text on the top of the navbar component.Sets the role for navbar component elements.Sets the navbar component’s displayed user status.NavBar.setTheme
(NavBarTheme theme) Sets the display theme for the navbar.NavBar.setUsername
(String username) Sets the username on the navbar.NavBar.setUserPicture
(String pictureUrl) Sets the avatar image displayed in the navbar header.NavBar.toggle()
Hides or makes the navbar component visible.