Package org.apache.ofbiz.widget.model
Class AbstractModelAction
- java.lang.Object
-
- org.apache.ofbiz.widget.model.AbstractModelAction
-
- All Implemented Interfaces:
java.io.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
public abstract class AbstractModelAction extends java.lang.Object implements java.io.Serializable, ModelAction
Abstract base class for the action models.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractModelAction.EntityAnd
Models the <entity-and> element.static class
AbstractModelAction.EntityCondition
Models the <entity-condition> element.static class
AbstractModelAction.EntityOne
Models the <entity-one> element.static class
AbstractModelAction.GetRelated
Models the <get-related> element.static class
AbstractModelAction.GetRelatedOne
Models the <get-related-one> element.static class
AbstractModelAction.PropertyMap
Models the <property-map> element.static class
AbstractModelAction.PropertyToField
Models the <property-to-field> element.static class
AbstractModelAction.Script
Models the <script> element.static class
AbstractModelAction.Service
Models the <service> element.static class
AbstractModelAction.SetField
Models the <set> element.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractModelAction()
protected
AbstractModelAction(ModelWidget modelWidget, org.w3c.dom.Element actionElement)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelWidget
getModelWidget()
Returns theModelWidget
that contains the <actions> element.static ModelAction
newInstance(ModelWidget modelWidget, org.w3c.dom.Element actionElement)
Returns a newModelAction
instance, built fromactionElement
.static java.util.List<ModelAction>
readSubActions(ModelWidget modelWidget, org.w3c.dom.Element parentElement)
static void
runSubActions(java.util.List<ModelAction> actions, java.util.Map<java.lang.String,java.lang.Object> context)
Executes the actions contained inactions
.java.lang.String
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 Detail
-
AbstractModelAction
protected AbstractModelAction()
-
AbstractModelAction
protected AbstractModelAction(ModelWidget modelWidget, org.w3c.dom.Element actionElement)
-
-
Method Detail
-
newInstance
public static ModelAction newInstance(ModelWidget modelWidget, org.w3c.dom.Element actionElement)
Returns a newModelAction
instance, built fromactionElement
.- Parameters:
modelWidget
- TheModelWidget
that contains the <actions> elementactionElement
-- Returns:
- A new
ModelAction
instance
-
readSubActions
public static java.util.List<ModelAction> readSubActions(ModelWidget modelWidget, org.w3c.dom.Element parentElement)
-
runSubActions
public static void runSubActions(java.util.List<ModelAction> actions, java.util.Map<java.lang.String,java.lang.Object> context)
Executes the actions contained inactions
.- Parameters:
actions
-context
-
-
getModelWidget
public ModelWidget getModelWidget()
Returns theModelWidget
that contains the <actions> element.- Returns:
- The
ModelWidget
that contains the <actions> element
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-