public class

PromptExpressionListTransform

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.PromptExpressionListTransform

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. This transforms makes use of Tag instances to render HTML output. See reference to TagsFactory.

Summary

[Expand]
Inherited Constants
From interface com.microstrategy.web.beans.EnumPromptsBeanEvents
Fields
public FormalParameter multiSelect Boolean flag that specifies whether or not to enable multi-select in selected list.
[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
PromptExpressionListTransform()
Default no-args constructor, initialize all the formal parameters.
Public Methods
void initializeCss()
Initializes CSS information to be used by this transform.
void initializeFormalParameters()
Initializes formal parameters.
void renderAvailable(MarkupOutput out)
Renders available list items in HTML list component.
void renderParentAvailable(MarkupOutput out)
Invokes parent method (renderAvailable(MarkupOutput)).
void renderParentContent(MarkupOutput out)
Renders the prompt content on the parent PromptExpressionNonCartTransform.
void renderPromptContent(MarkupOutput out)
Renders the prompt's content into Question area.
Protected Methods
void displayOption(MarkupOutput out, String argument, String displayName, String value, boolean isSelected, String dataType)
Renders HTML option tag.
[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

Fields

public FormalParameter multiSelect

Boolean flag that specifies whether or not to enable multi-select in selected list.
Not all prompt types and style support multiselect of elements, so even if this parameter is true, the multiselect functionality might not be available.
This flag is used as a boolean value.

Public Constructors

public PromptExpressionListTransform ()

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 initializeFormalParameters ()

Initializes formal parameters.

public void renderAvailable (MarkupOutput out)

Renders available list items in HTML list component.

Parameters
out the transform output

public void renderParentAvailable (MarkupOutput out)

Invokes parent method (renderAvailable(MarkupOutput)).
Layout files use this functionality.

Parameters
out the transform output

public void renderParentContent (MarkupOutput out)

Renders the prompt content on the parent PromptExpressionNonCartTransform.
This function is used by the layout file in order to avoid code duplication.

Parameters
out MarkupOutput where to write method's output.

public void renderPromptContent (MarkupOutput out)

Renders the prompt's content into Question area.

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 name for the option tag.
displayName String text to be displayed.
value String what's submitted as value.
isSelected boolean indicates whether this option is selected.
dataType String indicates datatype for HTML tag property.