Class EntityAdminMenuAttributeRegistrar
java.lang.Object
com.foreach.across.modules.entity.views.menu.EntityAdminMenuAttributeRegistrar
Contains
AttributeRegistrar<EntityViewFactory>
methods for creating a EntityViewFactoryAttributes.ADMIN_MENU
attribute.- Since:
- 3.0.0
- Author:
- Arne Vandamme
-
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeRegistrar<EntityViewFactory>
Register a default view menu item with the registered path.static AttributeRegistrar<EntityViewFactory>
adminMenu
(String menuPath, Consumer<com.foreach.across.modules.web.menu.PathBasedMenuBuilder.PathBasedMenuItemBuilder> itemCustomizer) Register a default view menu item with the registered path.static <S> AttributeRegistrar<EntityViewFactory>
adminMenu
(Consumer<EntityAdminMenuEvent<S>> menuEventConsumer) Register a custom menu event consumer.
-
Method Details
-
adminMenu
Register a default view menu item with the registered path.- Parameters:
menuPath
- for the item- Returns:
- view attribute registrar
-
adminMenu
public static AttributeRegistrar<EntityViewFactory> adminMenu(String menuPath, Consumer<com.foreach.across.modules.web.menu.PathBasedMenuBuilder.PathBasedMenuItemBuilder> itemCustomizer) Register a default view menu item with the registered path.- Parameters:
menuPath
- for the itemitemCustomizer
- for additional customization of the menu item- Returns:
- view attribute registrar
-
adminMenu
public static <S> AttributeRegistrar<EntityViewFactory> adminMenu(Consumer<EntityAdminMenuEvent<S>> menuEventConsumer) Register a custom menu event consumer.- Type Parameters:
S
- entity type- Parameters:
menuEventConsumer
- for handling the menu- Returns:
- view attribute registrar
-