Package org.apache.ofbiz.widget.model
Class AbstractModelCondition.DefaultConditionFactory
java.lang.Object
org.apache.ofbiz.widget.model.AbstractModelCondition.DefaultConditionFactory
- All Implemented Interfaces:
ModelConditionFactory
- Enclosing class:
- AbstractModelCondition
public static class AbstractModelCondition.DefaultConditionFactory
extends Object
implements ModelConditionFactory
A
ModelCondition
factory. This factory handles elements
common to all widgets that support conditions. Widgets that have
specialized conditions can extend this class.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ModelCondition
newInstance
(ModelConditionFactory factory, ModelWidget modelWidget, Element conditionElement) New instance model condition.newInstance
(ModelWidget modelWidget, Element conditionElement) Returns a newModelCondition
instance built fromconditionElement
.
-
Field Details
-
TRUE
-
FALSE
-
-
Constructor Details
-
DefaultConditionFactory
public DefaultConditionFactory()
-
-
Method Details
-
newInstance
Description copied from interface:ModelConditionFactory
Returns a newModelCondition
instance built fromconditionElement
.- Specified by:
newInstance
in interfaceModelConditionFactory
- Parameters:
modelWidget
- TheModelWidget
that contains theCondition
instance.conditionElement
- The XML element used to build theCondition
instance.- Returns:
- A new
ModelCondition
instance built fromconditionElement
.
-
newInstance
protected ModelCondition newInstance(ModelConditionFactory factory, ModelWidget modelWidget, Element conditionElement) New instance model condition.- Parameters:
factory
- the factorymodelWidget
- the model widgetconditionElement
- the condition element- Returns:
- the model condition
-