Uses of Class
com.jbstrap.core.cache.MenuItem
-
Uses of MenuItem in com.jbstrap.core
Modifier and TypeMethodDescriptionstatic MenuItem
JBStrap.addMenuItem
(String menuName, MenuItem menuItem) Adds a menu item to an already existing menu.static MenuItem
JBStrap.addMenuItem
(String menuName, String menuItemName, Icon menuItemIcon, String menuItemTitle) Adds a menu item to an already existing menu.static MenuItem
JBStrap.addMenuItem
(String menuName, String menuItemName, Icon menuItemIcon, String menuItemTitle, MenuItem... subMenuItems) Adds a menu item with sub menu items to an already existing menu.static MenuItem
JBStrap.addMenuItem
(String menuName, String menuItemName, Icon menuItemIcon, String menuItemTitle, MenuOperation operation, String targetPageId) Adds a menu item with sub menu items to an already existing menu.Modifier and TypeMethodDescriptionJBStrap.getMenuItems
(String menuName) Gets a list of the name of menu items that are assigned to the specified menuModifier and TypeMethodDescriptionstatic MenuItem
JBStrap.addMenuItem
(String menuName, MenuItem menuItem) Adds a menu item to an already existing menu.static MenuItem
JBStrap.addMenuItem
(String menuName, String menuItemName, Icon menuItemIcon, String menuItemTitle, MenuItem... subMenuItems) Adds a menu item with sub menu items to an already existing menu. -
Uses of MenuItem in com.jbstrap.core.cache
Modifier and TypeMethodDescriptionAdds the specified role to the menu itemAdds the specified roles to the menu itemMenuItem.addSubMenuItem
(MenuItem item) Adds a new sub-menu item to the menu item.MenuItem.copy()
MenuItem.findByName
(String name) Finds the specified menu item, by using it's name. .MenuItem.getParent()
Gets the menu item's parentMenuItem.getSubMenuItemByName
(String name) Gets the specified sub-menu itemMenuItem.removeHotKey()
Removes the previously assigned hotkeyMenuItem.removeRole
(String roleCode) Removes the specified role from the menu itemMenuItem.removeSubMenuItem
(MenuItem subMenuItem) Removes the specified sub-menu item.MenuItem.removeSubMenuItem
(String name) Removes the specified sub-menu item.MenuItem.setClickHandler
(NavigationEventHandler handler) Sets a custom click hanlderMenuItem.setHotKey
(int hotKey) Sets a hotkey to the menu itemSets a marker text and type to the menu itemMenuItem.setMarkerText
(String markerText) Sets a marker text to the menu itemMenuItem.setMarkerType
(BadgeType markerType) Sets a marker type to the menu itemfinal MenuItem
MenuItem.setMenuOperation
(MenuOperation operation, String targetPageId) Sets the menu item operationSets the menu item's order.protected MenuItem
Modifier and TypeMethodDescriptionMenuCache.getMenuItems
(String menuName) MenuItem.getSubMenuItems()
Gets every sub-menu item that is assigned to the menu itemModifier and TypeMethodDescriptionvoid
MenuCache.addMenuItemToMenu
(String menuName, MenuItem menuItem) MenuItem.addSubMenuItem
(MenuItem item) Adds a new sub-menu item to the menu item.MenuItem.removeSubMenuItem
(MenuItem subMenuItem) Removes the specified sub-menu item.void
MenuCache.reorderMenuByItem
(MenuItem item) protected MenuItem