Class PromptExpressionNonCartTransform

    • Field Detail

      • inputSize

        public FormalParameter inputSize
        Specifies the size of the input textfield. This flag is used as an int value.
      • selectSize

        public FormalParameter selectSize
        The number of elements that the Selected list box displays. This flag is used as an int value.
        Since:
        MicroStrategy Web 8.0.0
      • _operator

        protected int _operator
        Current operator or function ID
      • _operatorDimensionality

        protected java.lang.String _operatorDimensionality
        Determines answer dimensionality
        Since:
        MicroStrategy Web 8.0.0
      • _operatorType

        protected int _operatorType
        Current operator or function type
      • _inputValue

        protected java.lang.String _inputValue
        Value of current prompt answer.
      • _availableLabel

        protected java.lang.String _availableLabel
        Label used for rendering available list
      • _operatorLabel

        protected java.lang.String _operatorLabel
        Operator label for operator pull-down menu.
      • _inputLabel

        protected java.lang.String _inputLabel
        Input label for input textfield.
      • _availableArgument

        protected java.lang.String _availableArgument
        Available list argument for select tag.
      • _operatorArg

        protected java.lang.String _operatorArg
        Indicates operator argument name.
        Since:
        MicroStrategy Web 8.0.0
    • Constructor Detail

      • PromptExpressionNonCartTransform

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

      • initializeFormalParameters

        public void initializeFormalParameters()
        Initializes formal parameters.
      • processSelectedItems

        protected void processSelectedItems()
                                     throws WebObjectsException
        Initializes selected items list.
        This cart only supports Element and Objects prompts lists.
        Throws:
        WebObjectsException - when parsing each item in Selected list.
      • isNodeComplex

        protected boolean isNodeComplex​(WebNode node)
        This method checks if a single subexpression is Complex. An expression is complex if it cannot be created using the Web interface.
        This is used by ExpressionPrompts transforms to determine if the Answer is Complex.
        Overrides:
        isNodeComplex in class AbstractPromptExpressionTransform
        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.
        Since:
        MicroStrategy Web 8.0.0
      • canTransform

        public boolean canTransform​(Transformable data)
        Extends canTransform() by returning true only if the prompt is of type EnumWebPromptType.WebPromptTypeExpression
        Specified by:
        canTransform in interface Transform
        Overrides:
        canTransform in class AbstractTransform
        Parameters:
        data - object (PromptObject) to transform
        Returns:
        true if the data is a PromptObject of a Expression WebPrompt.
      • getDefaultShortcutId

        protected java.lang.String getDefaultShortcutId()
        Parses current prompt answer in order to obtain shortcut Id.
        Returns:
        String ID of shortcut node.
      • getObjectIDfromAnswer

        protected java.lang.String getObjectIDfromAnswer()
        Function that obtains from current answer first DisplayUnit Id
        Returns:
        text Id of given displayUnit in answer.
      • getAnswer

        protected WebExpression getAnswer()
        function that retrieves answer from given Web prompt object.
        Returns:
        WebExpression instance that represents prompt current answer.
      • getDescription

        public java.lang.String getDescription()
        This transforms description
        Specified by:
        getDescription in interface Transform
        Returns:
        the description of a radio button answer.
      • renderAvailableLabel

        public void renderAvailableLabel​(MarkupOutput out)
        Renders an HTML label associated to Available section.
        Parameters:
        out - where to write HTML label.
        Since:
        MicroStrategy Web 8.0.0
      • renderOperatorLabel

        public void renderOperatorLabel​(MarkupOutput out)
        Renders an HTML label associated to Operators section.
        Parameters:
        out - where to write HTML label.
        Since:
        MicroStrategy Web 8.0.0
      • renderInputLabel

        public void renderInputLabel​(MarkupOutput out)
        Renders an HTML label associated to value input section.
        Parameters:
        out - where to write HTML label.
        Since:
        MicroStrategy Web 8.0.0
      • renderAvailable

        public void renderAvailable​(MarkupOutput out)
        Renders Available list in HTML list component.
        Parameters:
        out - MarkupOutput the transform output
      • renderOperators

        public void renderOperators​(MarkupOutput out)
        Renders operators pull-down.
        Parameters:
        out - MarkupOutput where to write the output of the method.
      • renderInput

        public void renderInput​(MarkupOutput out)
        Renders qualification value textbox.
        Parameters:
        out - MarkupOutput where to write the output of the method.
      • renderEditContentBelowInput

        public void renderEditContentBelowInput​(MarkupOutput out)
        Renders the text and button that opens the output level editor.
        Parameters:
        out - where to write the output of the method.
        Since:
        MicroStrategy Web 8.0.0
      • displayOption

        protected void displayOption​(MarkupOutput out,
                                     java.lang.String argument,
                                     java.lang.String displayName,
                                     java.lang.String value,
                                     boolean isSelected)
        Renders HTML option tag.
        Used for creating list of options.
        Parameters:
        out - the transform output
        argument - argument name for the option tag
        displayName - display value
        value - what's submitted as value
        isSelected - indicates whether this option is selected
      • 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.
        Parameters:
        out - the transform output
        argument - argument name for the option tag
        displayName - display value
        value - what's submitted as value
        isSelected - indicates whether this option is selected
        dataType - indicates data type for Tag property.