Interface ModelWidgetCondition.ConditionFactory

    • Method Detail

      • newInstance

        ModelWidgetCondition.Condition newInstance​(ModelWidget modelWidget,
                                                   Element conditionElement)
        Returns a new Condition instance built from conditionElement.
        Parameters:
        modelWidget - The ModelWidget that contains the Condition instance.
        conditionElement - The XML element used to build the Condition instance.
        Returns:
        A new Condition instance built from conditionElement.
        Throws:
        IllegalArgumentException - if no model was found for the XML element