Class EntityAdminMenuAttributeRegistrar

java.lang.Object
com.foreach.across.modules.entity.views.menu.EntityAdminMenuAttributeRegistrar

public final class EntityAdminMenuAttributeRegistrar extends Object
Since:
3.0.0
Author:
Arne Vandamme
  • Method Details

    • adminMenu

      public static AttributeRegistrar<EntityViewFactory> adminMenu(String menuPath)
      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 item
      itemCustomizer - 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