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 Details

  • Constructor Details

    • DefaultConditionFactory

      public DefaultConditionFactory()
  • Method Details

    • newInstance

      public ModelCondition newInstance(ModelWidget modelWidget, Element conditionElement)
      Description copied from interface: ModelConditionFactory
      Returns a new ModelCondition instance built from conditionElement.
      Specified by:
      newInstance in interface ModelConditionFactory
      Parameters:
      modelWidget - The ModelWidget that contains the Condition instance.
      conditionElement - The XML element used to build the Condition instance.
      Returns:
      A new ModelCondition instance built from conditionElement.
    • newInstance

      protected ModelCondition newInstance(ModelConditionFactory factory, ModelWidget modelWidget, Element conditionElement)
      New instance model condition.
      Parameters:
      factory - the factory
      modelWidget - the model widget
      conditionElement - the condition element
      Returns:
      the model condition