Package com.znize.platform.model.bean
Interface MapEntityBean.ActionHandler<T extends MapEntity>
-
- Type Parameters:
T- MapEntity
- All Known Implementing Classes:
MapEntityBean.DefaultActionHandler
- Enclosing class:
- MapEntityBean<T extends MapEntity>
public static interface MapEntityBean.ActionHandler<T extends MapEntity>ActionHandler: handle property ajax behavior events and menu node commands of an MapEntityBean.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PageNavigationclickMenuNode(MapEntityBean<T> mapEntityBean, MenuNode menuNode)Handle menu node action.PageNavigationclickPropertyMenuNode(PersistenceDataBackingBean<T> backingBean, T entity, EntityProperty<T> property, MenuNode menuNode)Handle the action of the property menu node.PageNavigationhandlePartialBehaviorEvent(PartialBehaviorEvent event, MapEntityBean<T> mapEntityBean, T entity, EntityProperty<T> property)Handle partial behavior event.voidpostRefreshEntityListPropertyModel(EntityListBackingBean<T> entityListBackingBean, java.util.List<EntityProperty<T>> entityProperties)Called after refreshing entity list property model.voidpostRefreshEntityPropertyModel(T entity)Called after refreshing entity property model.
-
-
-
Method Detail
-
clickMenuNode
PageNavigation clickMenuNode(MapEntityBean<T> mapEntityBean, MenuNode menuNode) throws SystemException
Handle menu node action.- Parameters:
mapEntityBean- a MapEntityBeanmenuNode- the menu node clicked- Returns:
- a PageNavigation
- Throws:
SystemException- throw if an error occurs in handling the action
-
handlePartialBehaviorEvent
PageNavigation handlePartialBehaviorEvent(PartialBehaviorEvent event, MapEntityBean<T> mapEntityBean, T entity, EntityProperty<T> property) throws SystemException
Handle partial behavior event.- Parameters:
event- the partial behavior event to handlemapEntityBean- a MapEntityBeanentity- the MapEntity of the mapEntityBeanproperty- the property source of the event- Returns:
- a PageNavigation
- Throws:
SystemException- throw if an error occurs in handling the action
-
postRefreshEntityPropertyModel
void postRefreshEntityPropertyModel(T entity) throws SystemException
Called after refreshing entity property model.- Parameters:
entity- MapEntity- Throws:
SystemException- throw if an error occurs
-
postRefreshEntityListPropertyModel
void postRefreshEntityListPropertyModel(EntityListBackingBean<T> entityListBackingBean, java.util.List<EntityProperty<T>> entityProperties) throws SystemException
Called after refreshing entity list property model.- Parameters:
entityListBackingBean- entity list backing beanentityProperties- the list of entity properties that have been created- Throws:
SystemException- throw if an error occurs
-
clickPropertyMenuNode
PageNavigation clickPropertyMenuNode(PersistenceDataBackingBean<T> backingBean, T entity, EntityProperty<T> property, MenuNode menuNode) throws SystemException
Handle the action of the property menu node.- Parameters:
backingBean- property backing beanentity- the current entity of the propertyproperty- the entity property whose menu node is clickedmenuNode- menuNode clicked- Returns:
- PageNavigation object
- Throws:
SystemException- throw if an error occurs- Since:
- 5.20
-
-