Class CartExpressionImpl

  • All Implemented Interfaces:
    Cart, CartExpression, EnumCartProperties, GuiElement
    Direct Known Subclasses:
    TreeCartExpressionImpl

    public class CartExpressionImpl
    extends CartImpl
    implements CartExpression

    Title: CartExpressionImpl.

    Description: CartExpressionImpl abstraction it renders an HMTL "shopping cart" style for Expression type outputs of the Cart output.

    Copyright: Copyright (c) 2002

    Company: Microstrategy, Inc.

    Since:
    MicroStrategy Web 7.3.1 or earlier
    • Constructor Detail

      • CartExpressionImpl

        public CartExpressionImpl()
        CartExpression constructor, initialize all expression cart properties.
    • Method Detail

      • initializeCart

        public void initializeCart()
        InitializeCart, for initializing all Cart properties to default values.
        Specified by:
        initializeCart in interface Cart
        Overrides:
        initializeCart in class CartImpl
      • renderCart

        public void renderCart​(MarkupOutput out,
                               java.util.Enumeration availableItems,
                               java.util.Enumeration selectedItems)
        renderCart, function that abstracts standard Cart output.
        Specified by:
        renderCart in interface Cart
        Overrides:
        renderCart in class CartImpl
        Parameters:
        out - where to write the output of the method.
        availableItems - enumeration of all available items
        selectedItems - enumeration of all selected items
      • renderAvailable

        public void renderAvailable​(MarkupOutput out,
                                    java.util.Enumeration availableItems)
        renderAvailable, function that abstracts Available output.
        Specified by:
        renderAvailable in interface Cart
        Overrides:
        renderAvailable in class CartImpl
        Parameters:
        out - where to write the output of the method.
        availableItems - argument Name for generating Event output.
      • getAttributeForms

        protected WebAttributeForms getAttributeForms​(WebAttribute attribute)
        Returns collection of attribute forms.
        It reads property EXPAND_ATTRIBUTE_FORMS_TYPE which indicates what attribute's forms collection to be returned: All forms, Template forms or Browse forms.
        Parameters:
        attribute - WebAttribute from which specific forms collection will be obtained.
        Returns:
        WebAttributeForms collection
        Since:
        MicroStrategy Web 8.0.0
      • renderSelected

        public void renderSelected​(MarkupOutput out,
                                   java.util.Enumeration items)
        renderSelected, function that abstracts Selected output.
        Specified by:
        renderSelected in interface Cart
        Overrides:
        renderSelected in class CartImpl
        Parameters:
        out - where to write the output of the method.
        items - enumeration of all selected items
      • renderMatch

        public void renderMatch​(MarkupOutput out)
        renderMatch, function that outputs AND / OR match output.
        Specified by:
        renderMatch in interface CartExpression
        Parameters:
        out - where to write the output of the method.
      • renderOperators

        public void renderOperators​(MarkupOutput out)
        renderOperators, function that outputs operators pull-down.
        Specified by:
        renderOperators in interface CartExpression
        Parameters:
        out - where to write the output of the method.
      • renderInput

        public void renderInput​(MarkupOutput out)
        renderInput, function that outputs qualification value textbox.
        Specified by:
        renderInput in interface CartExpression
        Parameters:
        out - where to write the output of the method.
      • renderCalendarScript

        protected void renderCalendarScript​(MarkupOutput out,
                                            java.lang.String inputArg)
        Renders the Javascript for the DHTML calendar
        Parameters:
        out -
        inputArg -
        Since:
        MicroStrategy Web 8.0.1
      • renderButtonNextInput

        public void renderButtonNextInput​(MarkupOutput out)
        renderButtonNextInput is used to render a button next to the input textbox
        Specified by:
        renderButtonNextInput in interface CartExpression
        Parameters:
        out - where to write the output of the method.
        Since:
        MicroStrategy Web 8.0.0
      • renderExpression

        public void renderExpression​(MarkupOutput out)
        renderExpression is used for rendering group of elements that conform the input and operator in Expression cart
        Specified by:
        renderExpression in interface CartExpression
        Parameters:
        out - where to write the output of the method.
      • toString

        public java.lang.String toString()
        Function that returns class name
        Overrides:
        toString in class CartImpl
        Returns:
        class name
      • setCalendar

        public void setCalendar​(GGCalendar calendar)
        setCalendar is used for setting calendar object
        Specified by:
        setCalendar in interface CartExpression
        Parameters:
        calendar - GGCalendar instance.
      • getCalendar

        public GGCalendar getCalendar()
        Function used for returning instance of calendar object GGCalendar.
        Specified by:
        getCalendar in interface CartExpression
        Returns:
        GGCalendar calendar instance.
        Since:
        MicroStrategy Web 7.5.1
      • isCalendarAvailable

        public boolean isCalendarAvailable()
        Function that check whether calendar object is enabled or not.
        Specified by:
        isCalendarAvailable in interface CartExpression
        Returns:
        true if calendar is available.
      • getSelectedSize

        public int getSelectedSize()
        Returns the number of User selections.
        Specified by:
        getSelectedSize in interface CartExpression
        Returns:
        int size of selected elements
      • getExpressionTransform

        protected PromptExpressionTransform getExpressionTransform()
        Function creates instance of prompt expression transform once.
        Returns:
        PromptExpressionTransform