Uses of Class
com.foreach.across.modules.web.menu.Menu
Packages that use Menu
-
Uses of Menu in com.foreach.across.modules.web.events
Classes in com.foreach.across.modules.web.events with type parameters of type MenuModifier and TypeClassDescriptionclass
BuildMenuEvent<T extends Menu>
Event fired by the MenuFactory whenever a menu is being generated.Method parameters in com.foreach.across.modules.web.events with type arguments of type MenuModifier 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
Classes in com.foreach.across.modules.web.menu with type parameters of type MenuModifier 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.Fields in com.foreach.across.modules.web.menu with type parameters of type MenuModifier and TypeFieldDescriptionstatic final Comparator<Menu>
static final Comparator<Menu>
Menu.SORT_BY_TITLE
Methods in com.foreach.across.modules.web.menu with type parameters of type MenuModifier 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>
TMethods in com.foreach.across.modules.web.menu that return MenuModifier 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.Methods in com.foreach.across.modules.web.menu that return types with arguments of type MenuModifier and TypeMethodDescriptionMenu.getComparator()
FixedMenuOrderComparator.getFallbackComparator()
Menu.getItems()
Menu.getSelectedItemPath()
Returns all selected items (including the menu itself) in top-down order.Methods in com.foreach.across.modules.web.menu with parameters of type MenuModifier 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) Method parameters in com.foreach.across.modules.web.menu with type arguments of type MenuModifier 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) Constructors in com.foreach.across.modules.web.menu with parameters of type MenuConstructor parameters in com.foreach.across.modules.web.menu with type arguments of type Menu