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
ActionModel
s (resp. ActionGroupModel
s from an ActionsModel
.
Subclasses focus on how to locate and return the NiceActionHolder
.-
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
-
Method Summary
Modifier and TypeMethodDescriptioncreateActions
(Situation situation) Create a newActionGroupModel
for the specified situation.protected abstract NiceActionHolder
getActionsModel
(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:ActionFactory
Create a newActionGroupModel
for the specified situation.- Returns:
null
if 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 thenullActionHolder
defined in this class.
-