Class FormModelActionFactory
java.lang.Object
ch.tocco.nice2.netui.spi.actions.AbstractActionFactory
ch.tocco.nice2.netui.impl.actions.entityoperation.AbstractModelActionFactory
ch.tocco.nice2.netui.impl.actions.entityoperation.FormModelActionFactory
- All Implemented Interfaces:
ActionFactory
This action factory reads the actions from the form model as defined on the form's xml.
For example Address_list.xml the
"<action ..." tags.
Sorting (see #15351): The form model comes sorted by position elements. This factory must
adhere to this sorting. But there is an exception for the root action groups. They don't
have a position attribute set in the XML but come in here with position=MIDDLE. The position
for the model is ignored, so they are appended to the end of the action list.-
Field Summary
Fields inherited from class ch.tocco.nice2.netui.impl.actions.entityoperation.AbstractModelActionFactory
formModel, logFields inherited from class ch.tocco.nice2.netui.spi.actions.AbstractActionFactory
actionBuilderFields inherited from interface ch.tocco.nice2.netui.spi.actions.ActionFactory
DISABLE_ACTION, HIGH_PRIORITY, LOW_PRIORITY, PERFORM_DENIED_KEY, REMOVE_ACTION -
Constructor Summary
ConstructorsConstructorDescriptionFormModelActionFactory(org.slf4j.Logger log, ActionsBuilder builder, FormModel formModel) -
Method Summary
Modifier and TypeMethodDescriptioncreateActions(Situation situation) Create a newActionGroupModelfor the specified situation.Methods inherited from class ch.tocco.nice2.netui.impl.actions.entityoperation.AbstractModelActionFactory
createAction, createGroup, createSingleAction, getActionName, getForm, isInScope, transferPropertiesMethods inherited from class ch.tocco.nice2.netui.spi.actions.AbstractActionFactory
addSeparator, addToList, asCollection, getEntityName, getPrimaryKey, isEntity, isForm, isPlace, isScope, isScreen
-
Constructor Details
-
FormModelActionFactory
-
-
Method Details
-
createActions
Description copied from interface:ActionFactoryCreate a newActionGroupModelfor the specified situation.- Returns:
nullif this factory provides no actions for this situation.
-