public class

PromptExpressionTextboxTransform

extends PromptExpressionNonCartTransform
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.PromptExpressionNonCartTransform
             ↳ com.microstrategy.web.app.transforms.PromptExpressionTextboxTransform

Class Overview

Renders each available expression item with a radio button, when one item is selected previous is deselected. The current selection becomes the answer.

Summary

[Expand]
Inherited Constants
From interface com.microstrategy.web.beans.EnumPromptsBeanEvents
[Expand]
Inherited Fields
From class com.microstrategy.web.app.transforms.PromptExpressionNonCartTransform
From class com.microstrategy.web.app.transforms.AbstractPromptExpressionTransform
From class com.microstrategy.web.app.transforms.AbstractPromptObjectTransform
Public Constructors
PromptExpressionTextboxTransform()
Default no-args constructor, initialize all the formal parameters.
Public Methods
void initializeCss()
Initializes CSS information to be used by this transform.
void renderAvailable(MarkupOutput out)
Renders available list.
void renderOperators(MarkupOutput out)
Renders operators HTML pull-down.
void renderPromptContent(MarkupOutput out)
Renders current prompt's content.
Protected Methods
void displayOption(MarkupOutput out, String argument, String displayName, String value, boolean isSelected, String dataType)
Renders HTML option tag.
boolean isNodeComplex(WebNode node)
This method is deprecated. This method has been deprecated since this is specific to expression prompts.
Use the method on AbstractPromptExpressionTransform.
[Expand]
Inherited Methods
From class com.microstrategy.web.app.transforms.PromptExpressionNonCartTransform
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 PromptExpressionTextboxTransform ()

Default no-args constructor, initialize all the formal parameters.

Public Methods

public void initializeCss ()

Initializes CSS information to be used by this transform.

public void renderAvailable (MarkupOutput out)

Renders available list.
HTML list will be populated with all items in available list which is part of current prompt question.

Parameters
out the transform output

public void renderOperators (MarkupOutput out)

Renders operators HTML pull-down.
Populated with operators only supported in Expression prompts.

Parameters
out where to write the output of the method.

public void renderPromptContent (MarkupOutput out)

Renders current prompt's content.
It defines layout for current prompt question.

Parameters
out the transform output

Protected Methods

protected void displayOption (MarkupOutput out, String argument, String displayName, String value, boolean isSelected, String dataType)

Renders HTML option tag.
Used for creating list of options.

Parameters
out MarkupOutput the transform output
argument String argument name for the option tag
displayName String display value
value String what's submitted as value
isSelected boolean indicates whether this option is selected
dataType String indicates HTML Tag property.

protected boolean isNodeComplex (WebNode node)

This method is deprecated.
This method has been deprecated since this is specific to expression prompts.
Use the method on AbstractPromptExpressionTransform.

Indicates whether or not prompt's answer is considered complex.
This method checks if a single subexpression is Complex. For textbox the only expressions we support is In for Attribute qualifications, and GreaterThan for MetricQualifications.

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.