Class PromptExpressionTextboxTransform

    • Constructor Detail

      • PromptExpressionTextboxTransform

        public PromptExpressionTextboxTransform()
        Default no-args constructor, initialize all the formal parameters.
    • Method Detail

      • renderAvailable

        public void renderAvailable​(MarkupOutput out)
        Renders available list.
        HTML list will be populated with all items in available list which is part of current prompt question.
        Overrides:
        renderAvailable in class PromptExpressionNonCartTransform
        Parameters:
        out - the transform output
      • isNodeComplex

        protected boolean isNodeComplex​(WebNode node)
        Indicates whether or not prompt's answer is considered complex.
        This method checks if a single subexpression is Complex. For textbox the only expressions we support is In for Attribute qualifications, and GreaterThan for MetricQualifications.
        Overrides:
        isNodeComplex in class PromptExpressionNonCartTransform
        Parameters:
        node - the root node of the subexpression to check
        Returns:
        True if the Node is complex, that is, it cannot be created using Web.
      • displayOption

        protected void displayOption​(MarkupOutput out,
                                     java.lang.String argument,
                                     java.lang.String displayName,
                                     java.lang.String value,
                                     boolean isSelected,
                                     java.lang.String dataType)
        Renders HTML option tag.
        Used for creating list of options.
        Overrides:
        displayOption in class PromptExpressionNonCartTransform
        Parameters:
        out - MarkupOutput the transform output
        argument - String argument name for the option tag
        displayName - String display value
        value - String what's submitted as value
        isSelected - boolean indicates whether this option is selected
        dataType - String indicates HTML Tag property.
      • renderOperators

        public void renderOperators​(MarkupOutput out)
        Renders operators HTML pull-down.
        Populated with operators only supported in Expression prompts.
        Overrides:
        renderOperators in class PromptExpressionNonCartTransform
        Parameters:
        out - where to write the output of the method.