Uses of Class
com.foreach.across.modules.web.menu.Menu
-
Uses of Menu in com.foreach.across.modules.web.events
Modifier and TypeClassDescriptionclass
BuildMenuEvent<T extends Menu>
Event fired by the MenuFactory whenever a menu is being generated.Modifier and TypeMethodDescriptionboolean
BuildMenuEvent.isForMenuOfType
(@NonNull Class<? extends Menu> menuClass) Check if the current build event is for a menu of the given type. -
Uses of Menu in com.foreach.across.modules.web.menu
Modifier and TypeInterfaceDescriptioninterface
MenuBuilder<T extends Menu,
E extends BuildMenuEvent<T>> Takes care of menu assembly.class
RequestMenuBuilder<T extends Menu,
E extends BuildMenuEvent<T>> Builds a menu and assigns the request path to the selected path.Modifier and TypeFieldDescriptionstatic final Comparator<Menu>
static final Comparator<Menu>
Menu.SORT_BY_TITLE
Modifier and TypeMethodDescription<T extends Menu>
T<T extends Menu,
E extends BuildMenuEvent<T>, B extends MenuBuilder<T, E>>
TMenuFactory.buildMenu
(T menu) Performs the build action on the given menu: publishes the build event, sorts and executes the selector attached to the event.<T extends Menu>
T<T extends Menu>
TModifier and TypeMethodDescriptionPathBasedMenuBuilder.build()
Fetches a generic menu with the given name.Search the given Menu for an item that matches the current selector.Menu.getFirstItem()
Menu.getItem
(MenuSelector selector) Fetches the item that matches the given MenuSelector.Menu.getItemWithName
(String name) Fetches the first item with the name specified.Menu.getItemWithPath
(String path) Fetches the first item with the path specified.Menu.getLowestSelectedItem()
Returns the lowest selected item of this menu tree.MenuFactory.getMenuWithName
(String name) Will search all MenuStore instances for a menu with the given name.Menu.getParent()
Menu.getRoot()
Menu.getSelectedItem()
Returns the selected direct child of this menu.Modifier and TypeMethodDescriptionMenu.getComparator()
FixedMenuOrderComparator.getFallbackComparator()
Menu.getItems()
Menu.getSelectedItemPath()
Returns all selected items (including the menu itself) in top-down order.Modifier and TypeMethodDescriptionvoid
Will build into the existing menu and merge the root only if the root has been configured on the builder.void
Builds the result of the builder in the existing instance.int
int
Search the given Menu for an item that matches the current selector.boolean
boolean
boolean
protected abstract boolean
void
Merges the other menu into this one.void
Will merge into the existing menu and merge the root only if it has been configured on the builder.void
Merges the result of the builder in the existing instance.boolean
Removes the menu item from the tree - disconnects it from its parent.void
void
protected void
RequestMenuBuilder.setContext
(Menu menu) Modifier and TypeMethodDescriptionPathBasedMenuBuilder.PathBasedMenuItemBuilder.comparator
(Comparator<Menu> comparator, boolean inheritable) Set the comparator to be used when sorting the children of this menu item.void
Menu.setComparator
(Comparator<Menu> comparator, boolean inheritable) Set the comparator to be used when sorting this Menu.void
FixedMenuOrderComparator.setFallbackComparator
(Comparator<Menu> fallbackComparator) Set the comparator that will be used in case the fixed order is the same.protected void
Menu.sort
(Comparator<Menu> inheritedComparator)