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.PromptCartTransform | |||||||
↳ | com.microstrategy.web.app.transforms.PromptExpressionCartTransform | |||||||
↳ | com.microstrategy.web.app.transforms.PromptHierarchicalCartTransform | |||||||
↳ | com.microstrategy.web.app.transforms.PromptHierarchicalTreeTransform |
This class is deprecated.
Use PromptHierarchicalTreeXHTMLTransform
instead
Renders Expression prompt in "tree" style.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
protected String | _attributeImage | ||||||||||
protected String | _attributeLockedImage | ||||||||||
protected String | _elementImage | ||||||||||
protected String | _folderImage | Indicates name of Folder Image. | |||||||||
protected String | _hierarchyImage | ||||||||||
protected Vector | _treeList | Collection of tree nodes. | |||||||||
public FormalParameter | attributeImage | Image used to represent an attribute. | |||||||||
public FormalParameter | attributeLockedImage | Image used to represent a locked attribute. | |||||||||
public FormalParameter | backToParentFolderImage | Image for going up in browsing path for object prompts. | |||||||||
protected String | browsePath | ||||||||||
public FormalParameter | elementImage | Image used to represent an attribute element. | |||||||||
public FormalParameter | folderImage | Image used to represent a folder. | |||||||||
public FormalParameter | folderItemsInTree | Specifies whether folder items should be displayed or not. | |||||||||
public FormalParameter | hierarchiesInTree | Specifies whether the hierarchies will be displayed inside the tree. | |||||||||
public FormalParameter | hierarchyImage | Image used to represent a hierarchy. | |||||||||
public FormalParameter | searchSize | Specifies the size of the search text box. | |||||||||
public FormalParameter | treeStyle | Class to indicate the style to use when displaying the tree. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PromptHierarchicalTreeTransform()
Default constructor, no arguments.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
canHierarchyPaneBeShown()
Indicates whether or not Hierarchy pane can be displayed.
| ||||||||||
WebDisplayUnit | getFirstNonHighlightedDimension(WebDisplayUnits units) | ||||||||||
String |
getResourcesFolder(String folderType)
Wraps the AppContext's
getResourceFolder method. | ||||||||||
void |
initializeImages()
Initializes the images used in this transform.
| ||||||||||
void |
renderAdd(MarkupOutput out)
Renders 'Add' arrow HTML image button.
| ||||||||||
void |
renderAvailable(MarkupOutput out)
Renders available HTML list.
| ||||||||||
void |
renderBackParentButton(MarkupOutput out)
Renders HTML button to trigger back to parent folder.
| ||||||||||
void |
renderCart(MarkupOutput out)
Renders cart area in hierarchical prompt layout.
| ||||||||||
void |
renderFoldersPane(MarkupOutput out)
Renders folder's pull-down area in current prompt question.
| ||||||||||
void |
renderFoldersPath(MarkupOutput out)
Renders folder path, including current folder and its ancestors.
| ||||||||||
void |
renderHierarchiesPane(MarkupOutput out)
Renders hierarchies HTML pane.
| ||||||||||
void | renderHierarchiesPaneContent(MarkupOutput out, boolean enabled) | ||||||||||
void |
renderHierarchiesPaneContent(boolean enabled, MarkupOutput out)
This method is deprecated.
Replaced by function renderHierarchiesPaneContent(MarkupOutput out, boolean enabled)
| ||||||||||
void |
renderPromptErrorMessage(MarkupOutput out)
Renders a localized generic error message to end-users.
| ||||||||||
void |
renderRemove(MarkupOutput out)
Renders 'Remove' arrow HTML image button.
| ||||||||||
void |
renderSubFolderPullDown(MarkupOutput out)
Renders HTML pull-down menu consisted of all existing subfolders.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TreeNode |
addTreeNodeToList(WebDisplayUnit item, int level)
Adds
WebDisplayUnit to current prompt tree. | ||||||||||
void |
cleanHierarchyList()
Filters out from hierarchies list those items which aren't instances of
WebDimension (Hierarchy). | ||||||||||
CartExpression |
getCartExpression()
Returns a new
CartExpression instance. | ||||||||||
String |
getLabelForFolderFirstOption()
Indicates localized label to be displayed as first option in Subfolder's pull-down menu.
| ||||||||||
WebEvent |
getPromptEvent(int eventId)
Returns prompt event associate to given Id.
| ||||||||||
boolean |
isTreeSupported()
Indicates whether or not tree prompt style is supported.
| ||||||||||
void |
processAvailableItems()
Initializes the available units list.
| ||||||||||
void |
processHierarchicalSubFolders()
Parses hierarchy sub folder list and initialize collection for its rendering.
| ||||||||||
boolean |
promptsLoadedFirstTime()
Checks in request whether or not prompts are loaded the firt time.
| ||||||||||
void |
writeAncestors(MarkupOutput out, SimpleList ancestors, int currentAncestor)
Renders folder path denoting ancestors folders to current folder.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Indicates name of Folder Image.
Collection of tree nodes.
Image for going up in browsing path for object prompts.
Object Prompts might support object browsing. This is done by displaying a browsing path
above given prompt question. This path is similar to that used for displaying location of
a given report. This image represents the button for allowing end-users to browse up in
the hierarchy.
Specifies whether the hierarchies will be displayed inside the tree.
Default constructor, no arguments.
Indicates whether or not Hierarchy pane can be displayed.
Hierarchical Tree prompt won't display this pane if there aren't any hierarchies in collection.
Also, it requires to have FP hierarchiesInTree set to False in order to invoke this method.
Wraps the AppContext's getResourceFolder
method.
But it validates that the getBeanContext is indeed an AppContext.
folderType | the folder type |
---|
getResourceFolder
, or ""
if not defined.
Initializes the images used in this transform.
It invokes parent method in order to get all shared images initialized as well.
Renders 'Add' arrow HTML image button.
out | where to write the output of the method. |
---|
Renders available HTML list.
HTML list gets populated with items in prompt's available list.
out | where to write the output of the method. |
---|
Renders HTML button to trigger back to parent folder.
out | MarkupOutput where to write HTML output |
---|
Renders cart area in hierarchical prompt layout.
It calls renderAvailable, renderSelected and renderAdd/renderRemove methods.
out | where to write the output of the method. |
---|
Renders folder's pull-down area in current prompt question.
out | MarkupOutput where to render folder layout. |
---|
Renders folder path, including current folder and its ancestors.
It invokes writeAncestors() method.
out | MarkupOutput where to write output. |
---|
Renders hierarchies HTML pane.
out | where to write the output of the method. |
---|
This method is deprecated.
Replaced by function renderHierarchiesPaneContent(MarkupOutput out, boolean enabled)
Renders a localized generic error message to end-users.
Error is displayed mostly when a validation fails either in backend or SDK.
It is enabled in all prompt types and styles.
out | the transform output |
---|
Renders 'Remove' arrow HTML image button.
out | where to write the output of the method. |
---|
Renders HTML pull-down menu consisted of all existing subfolders.
out | MarkupOutput where to write HTML output. |
---|
Adds WebDisplayUnit
to current prompt tree.
item | WebDisplayUnit to be added to tree. |
---|---|
level | int indicates tree node level. |
Filters out from hierarchies list those items which aren't instances of WebDimension
(Hierarchy).
Clears anything other than hierarchies in the list, for example, folders.
Removes anything that isn't a Hierarchy.
Returns a new CartExpression
instance.
If tree isn't supported, then parent method gets invoked instead.
If global variable isn't initialized, then factory is used to create a new instances of CartExpression
.
CartExpression
instance.
Indicates localized label to be displayed as first option in Subfolder's pull-down menu.
Returns prompt event associate to given Id.
It gets PromptsBean instance from which prompt event is obtained.
eventId | int indicating prompt event id. |
---|
Indicates whether or not tree prompt style is supported.
Tree mode is only supported if it is dhtml mode and in IE 5.5 or greater.
Initializes the available units list.
If trees isn't supported (isTreeSupported() method), then parent method processAvailableItems() gets invoked.
If supported, this function will parse available list of items and will start creating prompt tree structure.
WebObjectsException | if a problem occurs when highlighting or populating any WebDisplayUnit instance.
|
---|
Parses hierarchy sub folder list and initialize collection for its rendering.
It parses hierarchy list and constructs a collection of sub folders to be displayed.
WebObjectsException |
---|
Checks in request whether or not prompts are loaded the firt time.
It looks for any 'prompt' hidden value in request indicating there was a prompt request to
be processed. This means, user has started editing any prompt in report.
Renders folder path denoting ancestors folders to current folder.
out | MarkupOutput where to write folder path |
---|---|
ancestors | SimpleList collection of ancestors |
currentAncestor | int number of ancestors to be rendered. |