Interface ConditionalComponent

    • Method Detail

      • getConditionExpression

        String getConditionExpression()
        Returns the JavaScript expression to be used as the condition. The could be the simple expression or the manual created expression.
        Returns:
        the JavaScript expression to be used as the condition
      • getCondition

        String getCondition()
        Returns the JavaScript expression to be used as the condition. This should evaluate to a boolean.
        Returns:
        the JavaScript expression to be used as the condition
      • setCondition

        void setCondition​(String condition)
        Sets the JavaScript expression to be used as the condition. This should evaluate to a boolean.
        Parameters:
        condition - the JavaScript expression to be used as the condition
      • getThenComponents

        List<BasicFormLogicComponent> getThenComponents()
        Returns the List of form logic components to be executed when the condition evaluates to true.
        Returns:
        the List of form logic components to be executed when the condition evaluates to true
      • setThenComponents

        void setThenComponents​(List<BasicFormLogicComponent> components)
        Sets the List of form logic components to be executed when the condition evaluates to true.
        Parameters:
        components - the List of form logic components to be executed when the condition evaluates to true
      • getElseComponents

        List<BasicFormLogicComponent> getElseComponents()
        Returns the List of form logic components to be executed when the condition evaluates to false.
        Returns:
        the List of form logic components to be executed when the condition evaluates to false
      • setElseComponents

        void setElseComponents​(List<BasicFormLogicComponent> components)
        Sets the List of form logic components to be executed when the condition evaluates to false.
        Parameters:
        components - the List of form logic components to be executed when the condition evaluates to false
      • getSimpleExpression

        SimpleExpression getSimpleExpression()
        Returns the SimpleExpression for this condition component.
        Returns:
        the SimpleExpression for this condition component
        See Also:
        SimpleExpression
      • setSimpleExpression

        void setSimpleExpression​(SimpleExpression expression)
        Sets the SimpleExpression for this condition component.
        Parameters:
        expression - the SimpleExpression for this condition component
      • createSimpleExpression

        SimpleExpression createSimpleExpression()
        Creates the SimpleExpression for this condition component.
        Returns:
        the SimpleExpression for this condition component
      • deleteSimpleExpression

        void deleteSimpleExpression()
        Deletes the SimpleExpression for this condition component.
      • getConditionMode

        ConditionMode getConditionMode()
        Determines the way the condition is evaluated.
        Returns:
        the way the condition is evaluated
        See Also:
        ConditionMode
      • setConditionMode

        void setConditionMode​(ConditionMode mode)
        Sets the way the condition is evaluated.
        Parameters:
        mode - the way the condition is evaluated
        See Also:
        ConditionMode