Class PromptExpressionCartTransform

    • Field Detail

      • _dottedArrowImg

        public FormalParameter _dottedArrowImg
        Deprecated.
        Image for dotted line to be used as graphical separator.
      • _dottedArrowImgName

        protected java.lang.String _dottedArrowImgName
        Deprecated.
      • logicalOperatorSelectionMethod

        public FormalParameter logicalOperatorSelectionMethod
        Deprecated.
        Specifies whether the 'And/Or' match case checkbox is displayed or not next the selected list in cart style ouput.
        Since:
        MicroStrategy Web 7.5.0
      • logicalOperatorAvailableUserDefined

        public FormalParameter logicalOperatorAvailableUserDefined
        Deprecated.
        Specifies a custome boolean value indicating whether or not to displaye logical operators.
        Since:
        MicroStrategy Web 8.0.0
      • logicalOperatorDefault

        public FormalParameter logicalOperatorDefault
        Deprecated.
        Specifies 'And/Or' match case default value.
        Since:
        MicroStrategy Web 7.5.0
    • Constructor Detail

      • PromptExpressionCartTransform

        public PromptExpressionCartTransform()
        Deprecated.
        Default no-args constructor, initialize all the formal parameters as Parent class has defined.
    • Method Detail

      • processAvailableItems

        protected void processAvailableItems()
                                      throws WebObjectsException
        Deprecated.
        Initializes the available units display list.
        It processes prompts available displayable units. It determines which item requires being marked as selected. It populates selected item if necessary by getting all Attribute's elements or forms.
        Overrides:
        processAvailableItems in class AbstractPromptObjectTransform
        Throws:
        WebObjectsException - if something wrong happens when populating an specific item.
      • processSelectedItems

        protected void processSelectedItems()
                                     throws WebObjectsException
        Deprecated.
        Initializes Selected list in Expression Prompt.
        It populates selected items collection by getting expression prompt answer. Each item in answer collection corresponds to a WebNode instance. Each node is parsed and if it isn't considered complex, then it gets added to selected list.
        Overrides:
        processSelectedItems in class PromptCartTransform
        Throws:
        WebObjectsException - if something goes wrong when parsing Expression prompt answer.
      • getAnswer

        protected WebExpression getAnswer()
        Deprecated.
        Returns Expression prompt answer.
        Answer is an instance of WebExpression object.
        Returns:
        WebExpression prompt answer.
      • isAnswerComplex

        public boolean isAnswerComplex()
        Deprecated.
        Indicates whether or not current prompt answer is complex.
        An Expression prompt answer is considered complex if it is consisted of nested sub expression which can't be rendered in a HTML select list. Also, if root node of WebExpression isn't either an OR/AND logical operator.
        Overrides:
        isAnswerComplex in class PromptCartTransform
        Returns:
        true if answer is complex
      • processIncrementalFetch

        protected void processIncrementalFetch()
                                        throws WebObjectsException
        Deprecated.
        Initializes incremental fetching settings for Available list.
        It figures out block count size for Incremental fetch of items in Available list. If Expression type in Prompt is associated with a Metric Qualification, then block count is determined by invoking function getObjectsBlockCount(). Similar with Attribute Qualification, function getAttrElemBlockCount() gets invoked.
        Both values are specified as Project preferences.
        Overrides:
        processIncrementalFetch in class AbstractPromptObjectTransform
        Throws:
        WebObjectsException - if something goes wrong figuring out these values.
      • initializeCart

        public void initializeCart()
        Deprecated.
        Initializes Cart properties to default values.
        It invokes parent method so all shared properties get initialized first and immediately after this invokation, only expression cart specific properties get initialized.
        Overrides:
        initializeCart in class PromptCartTransform
      • initializeImages

        public void initializeImages()
        Deprecated.
        Initializes the images for this transform.
        It also invokes parent method to initialized all shared images.
        Overrides:
        initializeImages in class PromptCartTransform
      • getSelectedItems

        protected java.util.Enumeration getSelectedItems()
        Deprecated.
        Returns Expression prompt answer in an Enumeration instance.
        Returns enumeration consisted of WebNode objects that were parsed in function processSelectedItems().
        Overrides:
        getSelectedItems in class PromptCartTransform
        Returns:
        selected items enumeration
      • getCart

        protected Cart getCart()
        Deprecated.
        Indicates an instance of a Cart object.
        Overrides getCart by providing a CartExpression.
        Overrides:
        getCart in class PromptCartTransform
        Returns:
        Cart instance
      • getCartExpression

        protected CartExpression getCartExpression()
        Deprecated.
        Indicates an instance of CartExpression object.
        It returns a new empty CartExpression instance if null.
        Returns:
        cart instance.
      • renderInputTextFile

        public void renderInputTextFile​(MarkupOutput out)
        Deprecated.
        Renders HTML for input text file.
        Parameters:
        out - MarkupOutput where to write the output of the method.
      • canTransform

        public boolean canTransform​(Transformable data)
        Deprecated.
        Indicates whether or not given component, denoted by data, can be processed by this transform.
        Extends canTransform() by returning true only if the prompt is of type EnumWebPromptType.WebPromptTypeExpression
        Specified by:
        canTransform in interface Transform
        Overrides:
        canTransform in class PromptCartTransform
        Parameters:
        data - object (PromptObject) to transform
        Returns:
        true if the data is a PromptObject of a Expression WebPrompt.
      • checkLogicalOperatorMethod

        protected boolean checkLogicalOperatorMethod​(int iConst)
        Deprecated.
        Indicates if the logicalOperatorSelectionMethod parameter value contains this flag.
        Parameters:
        iConst - logical operator mode flag
        Returns:
        true means the level logical operator mode flag is included in the logicalOperatorSelectionMethod parameter value
        Since:
        MicroStrategy Web 7.5.0