Package org.apache.ofbiz.widget.model
Class AbstractModelAction
java.lang.Object
org.apache.ofbiz.widget.model.AbstractModelAction
- All Implemented Interfaces:
Serializable
,ModelAction
- Direct Known Subclasses:
AbstractModelAction.EntityAnd
,AbstractModelAction.EntityCondition
,AbstractModelAction.EntityOne
,AbstractModelAction.GetRelated
,AbstractModelAction.GetRelatedOne
,AbstractModelAction.PropertyMap
,AbstractModelAction.PropertyToField
,AbstractModelAction.Script
,AbstractModelAction.Service
,AbstractModelAction.SetField
,ModelFormAction.CallParentActions
,ModelFormAction.Service
,ModelMenuAction.SetField
,ModelTreeAction
Abstract base class for the action models.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Models the <entity-and> element.static class
Models the <entity-condition> element.static class
Models the <entity-one> element.static class
Models the <get-related> element.static class
Models the <get-related-one> element.static class
Models the <property-map> element.static class
Models the <property-to-field> element.static class
Models the <script> element.static class
Models the <service> element.static class
Models the <set> element. -
Constructor Summary
ModifierConstructorDescriptionprotected
protected
AbstractModelAction
(ModelWidget modelWidget, Element actionElement) -
Method Summary
Modifier and TypeMethodDescriptionReturns theModelWidget
that contains the <actions> element.static ModelAction
newInstance
(ModelWidget modelWidget, Element actionElement) Returns a newModelAction
instance, built fromactionElement
.static List<ModelAction>
readSubActions
(ModelWidget modelWidget, Element parentElement) static void
runSubActions
(List<ModelAction> actions, Map<String, Object> context) Executes the actions contained inactions
.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.ofbiz.widget.model.ModelAction
accept, runAction
-
Constructor Details
-
AbstractModelAction
protected AbstractModelAction() -
AbstractModelAction
-
-
Method Details
-
newInstance
Returns a newModelAction
instance, built fromactionElement
.- Parameters:
modelWidget
- TheModelWidget
that contains the <actions> elementactionElement
-- Returns:
- A new
ModelAction
instance
-
readSubActions
-
runSubActions
Executes the actions contained inactions
.- Parameters:
actions
-context
-
-
getModelWidget
Returns theModelWidget
that contains the <actions> element.- Returns:
- The
ModelWidget
that contains the <actions> element
-
toString
-