Class EntityAdminMenu<T>
java.lang.Object
com.foreach.across.modules.web.menu.Menu
com.foreach.across.modules.adminweb.menu.EntityAdminMenu<T>
com.foreach.across.modules.entity.views.menu.EntityAdminMenu<T>
- Type Parameters:
T- entity type
- All Implemented Interfaces:
org.springframework.core.Ordered
Event published when an
EntityAdminMenu is being generated.
Extends the deprecated EntityAdminMenuEvent for backwards compatibility.- Since:
- 3.0.0
- Author:
- Arne Vandamme
-
Field Summary
Fields inherited from class com.foreach.across.modules.web.menu.Menu
ROOT_LEVEL, SORT_BY_ORDER_AND_TITLE, SORT_BY_TITLEFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEntityAdminMenu(Class<T> entityType, String entityName, @NonNull EntityViewContext entityViewContext, T entity) -
Method Summary
Modifier and TypeMethodDescriptionstatic EntityAdminMenu<?>create(EntityViewContext viewContext) Create a new instance for aEntityViewContext.Name under which the entity configuration is registered.TheEntityViewContextcontaining all information of the entity being viewed.Methods inherited from class com.foreach.across.modules.adminweb.menu.EntityAdminMenu
getEntity, getEntityTypeMethods inherited from class com.foreach.across.modules.web.menu.Menu
addItem, addItem, addItem, addItem, builder, clear, getAttribute, getAttributes, getComparator, getFirstItem, getItem, getItems, getItemWithName, getItemWithPath, getLevel, getLowestSelectedItem, getName, getOrder, getParent, getPath, getRoot, getSelectedItem, getSelectedItemPath, getTitle, getUrl, hasAttribute, hasItems, hasParent, hasTitle, hasUrl, isComparatorInheritable, isDisabled, isEmpty, isGroup, isOrdered, isRoot, isSelected, merge, remove, select, setAttribute, setAttributes, setComparator, setDisabled, setGroup, setName, setOrder, setOrdered, setPath, setSelected, setTitle, setUrl, size, sort, sort, toString
-
Constructor Details
-
EntityAdminMenu
protected EntityAdminMenu(Class<T> entityType, String entityName, @NonNull @NonNull EntityViewContext entityViewContext, T entity)
-
-
Method Details
-
create
Create a new instance for aEntityViewContext.- Parameters:
viewContext- for the entity configuration being viewed- Returns:
- menu
-
getEntityName
Name under which the entity configuration is registered. Can be the unique discriminator if theEntityAdminMenu.getEntityType()is not. -
getViewContext
TheEntityViewContextcontaining all information of the entity being viewed.
-