public class

PromptExpressionCartWithPickerTransform

extends PromptExpressionCartXHTMLTransform
java.lang.Object
   ↳ com.microstrategy.web.transform.AbstractTransform
     ↳ com.microstrategy.web.transform.AbstractLayoutTransform
       ↳ com.microstrategy.web.app.transforms.AbstractPromptObjectTransform
         ↳ com.microstrategy.web.app.transforms.AbstractPromptExpressionTransform
           ↳ com.microstrategy.web.app.transforms.PromptCartXHTMLTransform
             ↳ com.microstrategy.web.app.transforms.PromptExpressionCartXHTMLTransform
               ↳ com.microstrategy.web.app.transforms.PromptExpressionCartWithPickerTransform

Class Overview

This transform renders the expression prompt with additional inputs to display the element picker. It is used for Attribute Qualification.

Summary

[Expand]
Inherited Constants
From interface com.microstrategy.web.beans.EnumPromptsBeanEvents
[Expand]
Inherited Fields
From class com.microstrategy.web.app.transforms.PromptExpressionCartXHTMLTransform
From class com.microstrategy.web.app.transforms.PromptCartXHTMLTransform
From class com.microstrategy.web.app.transforms.AbstractPromptExpressionTransform
From class com.microstrategy.web.app.transforms.AbstractPromptObjectTransform
Public Constructors
PromptExpressionCartWithPickerTransform()
Default Constructor
Public Methods
String getDescription()
Indicates the description for this Transform.
void initializeCart()
Initializes this transform's CartExpression instance properties to the default values required.
boolean isIncludeExcludeAvailable()
Checks whether the include Exclude option is Available.It checks the cart's property and returns the value.
void renderCart(MarkupOutput out)
Renders a shopping cart output by calling different methods that will render the individual sections of the prompt layout.
void renderIncludeExcludeOption(MarkupOutput out)
Renders the Include/Exclude option.
Protected Methods
boolean isElementPickerSupported()
Indicates whether or not Element Picker is supported.
[Expand]
Inherited Methods
From class com.microstrategy.web.app.transforms.PromptExpressionCartXHTMLTransform
From class com.microstrategy.web.app.transforms.PromptCartXHTMLTransform
From class com.microstrategy.web.app.transforms.AbstractPromptExpressionTransform
From class com.microstrategy.web.app.transforms.AbstractPromptObjectTransform
From class com.microstrategy.web.transform.AbstractLayoutTransform
From class com.microstrategy.web.transform.AbstractTransform
From class java.lang.Object
From interface com.microstrategy.web.transform.LayoutTransform
From interface com.microstrategy.web.transform.Transform

Public Constructors

public PromptExpressionCartWithPickerTransform ()

Default Constructor

Public Methods

public String getDescription ()

Indicates the description for this Transform.

Returns
  • String with the description for the transform.

public void initializeCart ()

Initializes this transform's CartExpression instance properties to the default values required.

public boolean isIncludeExcludeAvailable ()

Checks whether the include Exclude option is Available.It checks the cart's property and returns the value.

public void renderCart (MarkupOutput out)

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);
   }
 

Parameters
out where to write the output of the method.

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

Protected Methods

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.