Class PromptExpressionCartWithPickerTransform

    • Constructor Detail

      • PromptExpressionCartWithPickerTransform

        public PromptExpressionCartWithPickerTransform()
        Default Constructor
    • Method Detail

      • renderCart

        public void renderCart​(MarkupOutput out)
        Description copied from class: PromptExpressionCartXHTMLTransform
        Renders a shopping cart output by calling different methods that will render the individual sections of the prompt layout. The output is organized with a series of DIV HTML tags created.
        The methods used for the cart output are listed below, where out is a MarkupOutput instance where the HTML generated by these calls is saved.
           renderLabel(out,
                       (String) _cart.getProperty(EnumCartProperties.AVAILABLE_LABEL),
                       (String) _cart.getProperty(EnumCartProperties.AVAILABLE_ARGUMENT));
           renderIncrementalFetch(out);
           renderAvailable(out);
           renderLabel(out, (String) _cart.getProperty(EnumCartProperties.OPERATOR_LABEL), (String) _cart.getProperty(EnumCartProperties.OPERATOR_ARGUMENT));
           renderOperators(out);
           renderLabel(out, (String) _cart.getProperty(EnumCartProperties.INPUT_LABEL), (String) _cart.getProperty(EnumCartProperties.INPUT_ARGUMENT));
           renderQualificationInputBox(out);
           if (((Boolean) _cart.getProperty(EnumCartProperties.BUTTON_NEXT_INPUT_AVAILABLE)).booleanValue()) {
             renderLabel(out, " ", null);
             renderNextInputButton(out);
           }
           renderAdd(out);
           renderRemove(out);
           renderLabel(out,
                       (String) _cart.getProperty(EnumCartProperties.SELECTED_LABEL),
                       (String) _cart.getProperty(EnumCartProperties.SELECTED_ARGUMENT));
           renderSelected(out);
           if (((Boolean) _cart.getProperty(EnumCartProperties.UP_AND_DOWN_AVAILABLE)).booleanValue()) {
             renderUp(out);
             renderDown(out);
           }
           renderMatch(out);
           if (isCalendarAvailable()) {
             renderCalendarButton(out);
           }
           if (isInputFromTextFile()) {
             renderInputTextFile(out);
           }
         
        Overrides:
        renderCart in class PromptExpressionCartXHTMLTransform
        Parameters:
        out - where to write the output of the method.
      • isElementPickerSupported

        protected boolean isElementPickerSupported()
        Indicates whether or not Element Picker is supported.
        This returns TRUE if the user preference is set to DHTML and the browser is IE6 or higher version and the report is a XDA/MDX report.
        Returns:
        true if Element Picker is enabled or supported.
      • renderIncludeExcludeOption

        public void renderIncludeExcludeOption​(MarkupOutput out)
        Renders the Include/Exclude option. Sample code for this method would be defined as follows:
           _cart.renderIncludeExcludeOption(out);
         
        Parameters:
        out - MarkupOutput instance where the HTML content generated by this method will be saved
      • isIncludeExcludeAvailable

        public boolean isIncludeExcludeAvailable()
        Checks whether the include Exclude option is Available.It checks the cart's property and returns the value.