java.lang.Object | |||
↳ | com.microstrategy.web.transform.AbstractTransform | ||
↳ | com.microstrategy.web.app.transforms.AbstractExpressionTransform | ||
↳ | com.microstrategy.web.app.transforms.PromptExpressionTransform |
This transform is meant to be used by Expression and Hierarchical prompts through
CartExpression
class. Pretty much, it parses current active node and renders
HTML option element. It uses Expression transforms for getting sub expression output
and it parses active node for constructing HTML and DHTML option values.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | DHTML | Denotes a constant indicating DHTML mode. | |||||||||
int | HTML | Denotes a constant indicating HTML mode. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PromptExpressionTransform()
Default no-args constructor, initialize all the formal parameters.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String |
getDescription()
Indicates class description.
| ||||||||||
void |
setExcludeForNOTNodes(boolean flag)
Specifies whether or not to add exclude for Nodes with NOT as parent Node.
| ||||||||||
void |
setExpressionValueSeparator(String value)
Specifies separator character for Expression answer.
| ||||||||||
void |
setIncludeExtraSelectedInfo(boolean flag)
Specifies whether or not to include extra HTML properties to option in Selected list.
| ||||||||||
void |
setPrependEmptySpaces(boolean flag)
Specifies whether or not to prepend empty spaces on the display portion.
| ||||||||||
void |
setRenderMode(int mode)
Specifies current render mode.
| ||||||||||
void |
setTruncateMode(boolean flag)
Specifies whether or not to truncate expression value output to custom size of characters.
| ||||||||||
void |
setTruncateSize(int size)
Specifies lenght of expression value to be displayed.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
doTransform(MarkupOutput transOut)
Executes transform logic on Prompt object.
| ||||||||||
void |
doTransform(WebNode activeNode, MarkupOutput transOut)
Executes transform logic on Prompt object.
| ||||||||||
String |
getDescriptor(int key)
Indicates localized descriptor associated to given key or Id.
| ||||||||||
String |
getDimensionalityInfo(WebNode node)
Indicates current expression prompt dimensionality type.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Denotes a constant indicating DHTML mode.
Denotes a constant indicating HTML mode.
Default no-args constructor, initialize all the formal parameters.
Indicates class description.
Specifies whether or not to add exclude for Nodes with NOT as parent Node.
flag | boolean true to add extra HTML. |
---|
Specifies separator character for Expression answer.
For those expressions whose answer is consisted of multiple values,
a custom separator might be specified.
value | String new separator. |
---|
Specifies whether or not to include extra HTML properties to option in Selected list.
flag | boolean true to add extra HTML. |
---|
Specifies whether or not to prepend empty spaces on the display portion.
flag | boolean true to add empty spaces. |
---|
Specifies whether or not to truncate expression value output to custom size of characters.
flag | true if truncate should be performed. |
---|
Specifies lenght of expression value to be displayed.
This property goes along with truncate mode which needs to be enabled in order to truncate
value to be displayed. Size is defined by this property.
size | int value indicating size for truncated strings. |
---|
Executes transform logic on Prompt object.
It checks whether there's an active node and starts processing from there. If
there isn't active node, then by default it points to root node.
transOut | MarkupOutput instance that will be the output by this transform
|
---|
Executes transform logic on Prompt object.
Generates HTML option for cart expression prompt.
activeNode | node where transform will be applied to |
---|---|
transOut | MarkupOutput instance that will be the output by this transform
|
Indicates localized descriptor associated to given key or Id.
key | unique descriptor id. |
---|
Indicates current expression prompt dimensionality type.
Based on dimty unit data type, a String gets returned with formatted
dimensionality information.
node | WebNode instance, likely to be a dimty node. |
---|