Class AbstractModelActionFactory
java.lang.Object
ch.tocco.nice2.netui.spi.actions.AbstractActionFactory
ch.tocco.nice2.netui.impl.actions.entityoperation.AbstractModelActionFactory
- All Implemented Interfaces:
ActionFactory
- Direct Known Subclasses:
ColumnModelActionFactory
,FormModelActionFactory
-
Field Summary
Fields inherited from class ch.tocco.nice2.netui.spi.actions.AbstractActionFactory
actionBuilder
Fields inherited from interface ch.tocco.nice2.netui.spi.actions.ActionFactory
DISABLE_ACTION, HIGH_PRIORITY, LOW_PRIORITY, PERFORM_DENIED_KEY, REMOVE_ACTION
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractModelActionFactory
(ActionsBuilder actionBuilder, org.slf4j.Logger log, FormModel formModel) -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable ActionModel
createAction
(Situation situation, Action action, String formName, Integer position) Creates an action model from the specified action.protected @Nullable ActionGroupModel
createGroup
(Situation situation, Action action, String formName, Integer position) Creates an action group from the specified component.protected ActionModel
createSingleAction
(Action action, Integer position) Creates a single action from the specified component.protected String
getActionName
(Action action) protected @Nullable Form
protected boolean
protected void
transferProperties
(Action action, ActionModel model) Copies the action properties from the component to the model.Methods inherited from class ch.tocco.nice2.netui.spi.actions.AbstractActionFactory
addSeparator, addToList, asCollection, getEntityName, getPrimaryKey, isEntity, isForm, isPlace, isScope, isScreen
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.netui.spi.actions.ActionFactory
createActions
-
Field Details
-
log
protected final org.slf4j.Logger log -
formModel
-
-
Constructor Details
-
AbstractModelActionFactory
protected AbstractModelActionFactory(ActionsBuilder actionBuilder, org.slf4j.Logger log, FormModel formModel)
-
-
Method Details
-
createGroup
@Nullable protected @Nullable ActionGroupModel createGroup(Situation situation, Action action, String formName, Integer position) Creates an action group from the specified component. This makes only sense, if the children list is not empty.- Parameters:
formName
- for more descriptive exception message
-
createSingleAction
Creates a single action from the specified component. -
transferProperties
Copies the action properties from the component to the model. -
createAction
@Nullable protected @Nullable ActionModel createAction(Situation situation, Action action, String formName, Integer position) Creates an action model from the specified action. The corresponding model is either an action group or a single action depending on the children list of the specified action component.- Parameters:
formName
- for more descriptive exception message
-
isInScope
-
getActionName
-
getForm
-