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 |
![]() |
This class is deprecated.
Use PromptHierarchicalCartXHTMLTransform
instead
Renders a hierarhical prompt in "shopping cart" style.
This transforms makes use of Tag
instances to render HTML output.
See reference to TagsFactory
.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | ARGUMENT_PANE_QUALIFY | ||||||||||
int | ARGUMENT_PANE_SELECT | ||||||||||
int | ARGUMENT_PANE_STATUS | ||||||||||
int | ARGUMENT_ROOT_FOLDER_BROWSE_ID | ||||||||||
String | NONE_VALUE | ||||||||||
int | PANE_QUALIFY | ||||||||||
int | PANE_SELECT |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
protected String | _1ptransImage | Image name for a transparent graphic. | |||||||||
protected Enumeration | _answers | ||||||||||
protected WebDisplayUnit | _attribute | ||||||||||
protected WebDisplayUnits | _attributeList | ||||||||||
protected CartExpression | _cartHelper | ||||||||||
protected Enumeration | _drillList | ||||||||||
protected WebDisplayUnits | _elementList | ||||||||||
protected Vector | _hierarchicalSubFolders | Specifies a collection of CartElementFolders to be used for rendering folders pull-down menu. | |||||||||
protected WebDisplayUnit | _hierarchy | ||||||||||
protected WebDisplayUnits | _hierarchyList | ||||||||||
protected WebObjectInfo | _origin | ||||||||||
protected String | _rootFolderId | Class variable that specifies the root folder ID. | |||||||||
protected int | _selectedPane | ||||||||||
protected String | _selectedPaneImage | ||||||||||
protected boolean | _showHierarchicalSubFolders | Class variable that specifies a flag indicating whether or not to show hierarchical sub folders in pull-down menu. | |||||||||
protected String | _step1Image | ||||||||||
protected String | _step2Image | ||||||||||
protected String | _step2disabledImage | ||||||||||
protected String | _unselectedPaneImage | ||||||||||
public FormalParameter | isQualifyAvailable | Determine if qualification pane is available. | |||||||||
public FormalParameter | isSearchRequired |
This field is deprecated.
Use searchAvailable instead.
|
|||||||||
public FormalParameter | selectedPaneImage | Image of the selected pane of the attribute qualification. | |||||||||
public FormalParameter | showAttributeSelection | Specifies whether or not to show or hide the Attribute Selection dropdown for hierarchical prompts. | |||||||||
public FormalParameter | step1Image | Image to indicate the first step for hierarchical prompts. | |||||||||
public FormalParameter | step2Image | Image to indicate the second step for hierarchical prompts. | |||||||||
public FormalParameter | step2disabledImage | Image to indicate the second step for hierarchical prompts (when disabled). | |||||||||
public FormalParameter | unselectedPaneImage | Image of the unselected pane of the attribute qualification. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PromptHierarchicalCartTransform()
Default no-args constructor, initialize all the formal parameters as
Parent class has defined.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
areThereAvailableSelections()
This function checks size of available selections.
| ||||||||||
boolean |
canHierarchyPaneBeShown()
Indicates whether or not Hierarchy pane can be displayed.
| ||||||||||
WebDisplayUnits |
getAttributeElementList()
Returns list of all elements defined in selected Attribute.
| ||||||||||
WebDisplayUnits |
getAvailableDisplayUnits()
Returns an enumeraiton with the availalbe items.
| ||||||||||
CartExpression |
getCartHelper()
Returns instance of cart helper object.
| ||||||||||
WebDimensionAttribute |
getDimensionAttribute(WebDisplayUnit unit)
Returns
WebDimensionAttribute intance from given unit. | ||||||||||
Enumeration |
getDrillList()
Returns drill list.
| ||||||||||
WebDisplayUnit |
getFirstHighlightedItem(WebDisplayUnits units)
Returns the first highlighted item found in collection.
| ||||||||||
WebDisplayUnit |
getFirstNonHighlightedEntryPoint(WebDisplayUnits units)
Returns the first non-highlighted entry point found in collection.
| ||||||||||
WebDisplayUnit |
getFirstNonHighlightedItem(WebDisplayUnits units)
Returns the first non-highlighted item found in collection.
| ||||||||||
WebDisplayUnits |
getHierarchyAttributeList()
Returns instance of active hierarchy list of attributes.
| ||||||||||
WebDisplayUnit |
getSelectedAttribute()
Returns instance of active hierarchy list of attributes.
| ||||||||||
void |
initializeCart()
Initializes all Cart properties to default values.
| ||||||||||
void |
initializeDrillList()
Initializes the elements in the drill list.
| ||||||||||
void |
initializeImages()
Extends initializeImages by initialize the images for this transform.
| ||||||||||
void |
initializePromptContent()
Initializes prompt content to be displayed.
| ||||||||||
boolean |
isLocked(WebDisplayUnit unit)
Determines whether given unit is locked up or not.
| ||||||||||
boolean |
isLockedForSearch(WebDisplayUnit unit)
Determines whether or not given unit is locked up.
| ||||||||||
void |
parserHierarchicalSubFolderCollection(WebDisplayUnits subFolders, int level)
Parses hierarchy list and creates all sub folder browsing in pull-down menu.
| ||||||||||
void |
renderAdd(MarkupOutput out)
renderAdd, displays add arrow button.
| ||||||||||
void |
renderAttributeQualification(MarkupOutput out)
Renders attribute HTML components for an attribute qualification.
| ||||||||||
void |
renderAttributesPane(MarkupOutput out)
Renders attribute HTML list pane.
| ||||||||||
void |
renderAttributesPaneContent(MarkupOutput out, boolean enabled)
Renders attribute pane content.
| ||||||||||
void |
renderAttributesPaneContent(boolean enabled, MarkupOutput out)
This method is deprecated.
This method cannot be used in a layout-xml.
Instead, use
renderAttributesPaneContent(MarkupOutput, boolean)
| ||||||||||
void |
renderAttributesPaneTile(MarkupOutput out, boolean enabled)
Renders attribute pane title.
| ||||||||||
void |
renderAttributesPaneTile(boolean enabled, MarkupOutput out)
This method is deprecated.
This method cannot be used in a layout-xml.
Instead, use
renderAttributesPaneTile(MarkupOutput, boolean) .
| ||||||||||
void |
renderAvailable(MarkupOutput out)
Will display available list.
| ||||||||||
void |
renderCart(MarkupOutput out)
Rendes the cart of hierarchical prompts.
| ||||||||||
void |
renderElementList(MarkupOutput out)
Renders a list of attribute elements.
| ||||||||||
void |
renderEmptyAttributeList(MarkupOutput out)
Renders HTML empty list of attributes.
| ||||||||||
void |
renderFoldersPane(MarkupOutput out)
Renders folder's pull-down area in current prompt question.
| ||||||||||
void |
renderFoldersPaneContent(MarkupOutput out)
Renders Hierarchies Pane Content.
| ||||||||||
void |
renderFoldersPaneTile(MarkupOutput out)
Renders Hierarchies Pane Title.
| ||||||||||
void |
renderHierarchiesPane(MarkupOutput out)
Renders hierarchies HTML pane.
| ||||||||||
void |
renderHierarchiesPaneContent(MarkupOutput out)
Renders Hierarchies Pane Content.
| ||||||||||
void |
renderHierarchiesPaneTile(MarkupOutput out)
Renders Hierarchies Pane Title.
| ||||||||||
void |
renderMatch(MarkupOutput out)
renderAdd, displays add arrow button.
| ||||||||||
void |
renderPromptHiddenInputs(MarkupOutput out)
Renders the hidden inputs of this prompt.
| ||||||||||
void |
renderPromptSummary(MarkupOutput out)
Renders prompt's default answer defininiton.
| ||||||||||
void |
renderRemove(MarkupOutput out)
renderRemove, displays remove arrow button.
| ||||||||||
void |
renderSelected(MarkupOutput out)
renderSelected, will display selected list.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
cleanHierarchyList()
Filters out hierarchy list.
| ||||||||||
String |
getArgumentName(int argumentId)
Returns an argument name for the given id.
| ||||||||||
String |
getAttributeFormattedValue(WebDisplayUnit attribute)
Returns formatted string to be passed as request parameter.
| ||||||||||
Enumeration |
getAvailableItems()
Returns an enumeration with the availalbe items.
| ||||||||||
String |
getErrorMessage(WebBeanError promptError)
Returns localized error message.
| ||||||||||
String |
getLabelForFolderFirstOption()
Indicates localized label to be displayed as first option in Subfolder's pull-down menu.
| ||||||||||
boolean |
hasAccessGranted(WebDisplayUnit dispUnit)
Determines whether or not end-user has access to given item.
| ||||||||||
void |
initializeElementsForRequiredSearch()
It initializes elements list if a required search was performed on given attribute.
| ||||||||||
boolean |
isDimensionAttributeFiltered(WebDimensionAttribute dimAttr)
Checks whether given dimension attribute has a filter in its definition.
| ||||||||||
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. | ||||||||||
void |
processAvailableItems()
Initializes the avaialble units display list.
| ||||||||||
void |
processHierarchicalSubFolders()
Parses hierarchy sub folder list and initialize collection for its rendering.
| ||||||||||
void |
processIncrementalFetch()
Initializes incremental fetching settings.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Image name for a transparent graphic.
Specifies a collection of CartElementFolders to be used for rendering folders pull-down menu.
Class variable that specifies the root folder ID.
Class variable that specifies a flag indicating whether or not to show hierarchical sub folders
in pull-down menu.
This field is deprecated.
Use searchAvailable
instead.
Specifies whether a search is required to display the elements of the selected attribute.
Hierarchical prompts specify in their definition whether a search is permitted on given attribute's element.
Displaying a search section is controlled by this flag.
This flag is used as a boolean value.
Specifies whether or not to show or hide the Attribute Selection dropdown for hierarchical prompts.
This flag is used as a boolean value.
Image to indicate the second step for hierarchical prompts (when disabled).
Image of the unselected pane of the attribute qualification.
Default no-args constructor, initialize all the formal parameters as Parent class has defined.
This function checks size of available selections. Returns false when selections are less or equal to zero.
Indicates whether or not Hierarchy pane can be displayed.
Hierarchical Cart prompt always has to display this pane when necessary.
Returns list of all elements defined in selected Attribute.
Returns an enumeraiton with the availalbe items.
Returns instance of cart helper object.
Returns WebDimensionAttribute
intance from given unit.
It checks whether or not given WebDisplayUnit
parameter (unit) is an
instance of WebAttribute
or WebDimensionAttribute
in order to
return instance of WebDimensionAttribute
.
This function encapsulates logic for avoinding code replication.
unit | WebDisplayUnit being parsed. |
---|
WebDimensionAttribute
if any.
Returns drill list.
Returns the first highlighted item found in collection.
units | WebDisplayUnits collection to be parsed. |
---|
Returns the first non-highlighted entry point found in collection.
units | WebDisplayUnits collection being parsed. |
---|
Returns the first non-highlighted item found in collection.
units | WebDisplayUnits collection to be parsed. |
---|
Returns instance of active hierarchy list of attributes.
Returns instance of active hierarchy list of attributes.
Initializes all Cart properties to default values.
Initializes the elements in the drill list.
It determines also whether or not 'Down' and 'Up'
WebObjectsException} | |
WebObjectsException |
Extends initializeImages by initialize the images for this transform.
Initializes prompt content to be displayed.
Extends the initializePromptContent() by reading from the request the current
attribute qualification type.
WebObjectsException} | |
WebObjectsException |
Determines whether given unit is locked up or not.
unit | WebDisplayUnit item to be checked. |
---|
Determines whether or not given unit is locked up.
If unit is an instance of WebDimensionAttribute
, then this function
verifies whether or not is locked DssXmlLockCustom
.
unit | WebDisplayUnit instance possbly locked. |
---|
Parses hierarchy list and creates all sub folder browsing in pull-down menu.
subFolders | WebDisplayUnits collection of subolfoder objects. |
---|---|
level | int indentation level. |
WebObjectsException | thrown when an error happens while parsing folder objects. |
---|
renderAdd, displays add arrow button.
out | where to write the output of the method. |
---|
Renders attribute HTML components for an attribute qualification.
out | where to write the output of the method. |
---|
Renders attribute HTML list pane.
out | where to write the output of the method. |
---|
Renders attribute pane content.
out | where to write the output of the method. |
---|---|
enabled | indicates whether to show 'qualify' and 'select' pane. |
This method is deprecated.
This method cannot be used in a layout-xml.
Instead, use renderAttributesPaneContent(MarkupOutput, boolean)
Renders attribute pane content.
enabled | indicates whether to show 'qualify' and 'select' pane. |
---|---|
out | where to write the output of the method. |
Renders attribute pane title.
out | where to write the output of the method. |
---|---|
enabled | indicates whether to show 'qualify' and 'select' pane. |
This method is deprecated.
This method cannot be used in a layout-xml.
Instead, use renderAttributesPaneTile(MarkupOutput, boolean)
.
Renders attribute pane title.
enabled | indicates whether to show 'qualify' and 'select' pane. |
---|---|
out | where to write the output of the method. |
Will display available list.
out | where to write the output of the method. |
---|
Rendes the cart of hierarchical prompts. It calls renderAvailable, renderSelected and
renderAdd/renderRemove methods.
out | where to write the output of the method. |
---|
Renders a list of attribute elements.
out | where to write the output of the method. |
---|
Renders HTML empty list of attributes.
out | where to write the output of the method. |
---|
Renders folder's pull-down area in current prompt question.
out | MarkupOutput where to write folder area. |
---|
Renders Hierarchies Pane Content.
out | where to write the output of the method. |
---|
Renders Hierarchies Pane Title.
out | where to write the output of the method. |
---|
Renders hierarchies HTML pane.
out | where to write the output of the method. |
---|
Renders Hierarchies Pane Content.
out | where to write the output of the method. |
---|
Renders Hierarchies Pane Title.
out | where to write the output of the method. |
---|
renderAdd, displays add arrow button.
out | where to write the output of the method. |
---|
Renders the hidden inputs of this prompt. The inputs
are retrieved from the answer event.
out | the transform output |
---|
Renders prompt's default answer defininiton.
It displays default answer without any promtp question form.
out | the transform output |
---|
renderRemove, displays remove arrow button.
out | where to write the output of the method. |
---|
renderSelected, will display selected list.
out | where to write the output of the method. |
---|
Filters out hierarchy list.
Removes instances in collection that aren't WebDimension instances.
Returns an argument name for the given id. Since the argument name depends on the PromptPosition, this method automatically returns the argument corresponding to the current Prompt
argumentId | the id |
---|
Returns formatted string to be passed as request parameter.
It parses attribute parameter in order to create a formatted text of its name.
attribute | to be parsed. |
---|
Returns an enumeration with the availalbe items.
Returns localized error message.
Error message is associated to promptError code.
promptError | instance of WebBeanError , most likely an validation error thrown in process prompt phase. |
---|
Indicates localized label to be displayed as first option in Subfolder's pull-down menu.
Determines whether or not end-user has access to given item.
dispUnit | WebDisplayUnit to be checked. |
---|
It initializes elements list if a required search was performed on given attribute.
WebObjectsException | |
WebObjectsException |
Checks whether given dimension attribute has a filter in its definition.
dimAttr | WebDimensionAttribute item being checked. |
---|
This method is deprecated.
This method has been deprecated since this is specific to expression prompts.
Use the method on AbstractPromptExpressionTransform.
Indicates if a single subexpression is Complex.
An expression is complex if it cannot be created using the Web interface.
This method overrides isNodeComplex(WebNode)
by supporting ListQual
expression (Element List expressions). It also checks if the styles supports
Attribute qualification, if it doesn't all other type of expressions are
also considered complex, if it does, then it calls super.isNodeComplex()
to check if the expression is normally supported by attribute qualification
node | the root node of the subexpression to check |
---|
Initializes the avaialble units display list.
WebObjectsException | thrown when an error occurs when highlighting objects. |
---|
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 | as result of highlighting unsuccessfully an WebObjectInfo. |
---|
Initializes incremental fetching settings.
Overrides super.processIncrementalFetch() by not setting
incremental fetch settings. Hierarchical prompts gets the available items in a different schema.
WebObjectsException} as thrown by PromptExpressionCartTransform .
|
|
WebObjectsException |