Class ActionsModelFactory
java.lang.Object
ch.tocco.nice2.netui.spi.actions.AbstractActionFactory
ch.tocco.nice2.netui.impl.actions.entityoperation.ActionsModelFactory
- All Implemented Interfaces:
ActionFactory
- Direct Known Subclasses:
EntityModelActionFactory
Creates
ActionModels (resp. ActionGroupModels from an ActionsModel.
Subclasses focus on how to locate and return the NiceActionHolder.-
Field Summary
FieldsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateActions(Situation situation) Create a newActionGroupModelfor the specified situation.protected abstract NiceActionHoldergetActionsModel(Situation situation) Return a action holder that gives access to anActionModel.Methods inherited from class ch.tocco.nice2.netui.spi.actions.AbstractActionFactory
addSeparator, addToList, asCollection, getEntityName, getPrimaryKey, isEntity, isForm, isPlace, isScope, isScreen
-
Field Details
-
nullActionHolder
-
-
Constructor Details
-
ActionsModelFactory
-
-
Method Details
-
createActions
Description copied from interface:ActionFactoryCreate a newActionGroupModelfor the specified situation.- Returns:
nullif this factory provides no actions for this situation.
-
getActionsModel
Return a action holder that gives access to anActionModel. If this is not appropriate (i.e. the situation) please return thenullActionHolderdefined in this class.
-