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 java.lang.Object implements ModelConditionFactory
AModelCondition
factory. This factory handles elements common to all widgets that support conditions. Widgets that have specialized conditions can extend this class.
-
-
Field Summary
Fields Modifier and Type Field Description static ModelCondition
FALSE
static ModelCondition
TRUE
-
Constructor Summary
Constructors Constructor Description DefaultConditionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ModelCondition
newInstance(ModelConditionFactory factory, ModelWidget modelWidget, org.w3c.dom.Element conditionElement)
ModelCondition
newInstance(ModelWidget modelWidget, org.w3c.dom.Element conditionElement)
Returns a newModelCondition
instance built fromconditionElement
.
-
-
-
Field Detail
-
TRUE
public static final ModelCondition TRUE
-
FALSE
public static final ModelCondition FALSE
-
-
Method Detail
-
newInstance
public ModelCondition newInstance(ModelWidget modelWidget, org.w3c.dom.Element conditionElement)
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, org.w3c.dom.Element conditionElement)
-
-