Class PromptHierarchicalTreeXHTMLTransform
- 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.PromptCartXHTMLTransform
-
- com.microstrategy.web.app.transforms.PromptExpressionCartXHTMLTransform
-
- com.microstrategy.web.app.transforms.PromptHierarchicalCartXHTMLTransform
-
- com.microstrategy.web.app.transforms.PromptHierarchicalTreeXHTMLTransform
-
- All Implemented Interfaces:
EnumPromptsBeanEvents
,LayoutTransform
,Transform
public class PromptHierarchicalTreeXHTMLTransform extends PromptHierarchicalCartXHTMLTransform
Renders hierarchical prompt in "tree" style, with the attribute populated dynamically using javascript, as the user expands in nodes.
The output of this Transform generates well-formed XHTML, supports layout-xml, and it's designed to use external css files for all formatting.- Since:
- MicroStrategy Web 8.0.0
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
_attributeImage
protected java.lang.String
_attributeLockedImage
protected java.lang.String
_elementImage
protected java.lang.String
_folderImage
protected java.lang.String
_hierarchyImage
protected java.util.Vector
_treeList
FormalParameter
attributeImage
Image used to represent an attribute.FormalParameter
attributeLockedImage
Image used to represent a locked attribute.FormalParameter
elementImage
Image used to represent an attribute element.FormalParameter
folderImage
Image used to represent a folder.FormalParameter
folderItemsInTree
Specifies whether folder items should be displayed or not.FormalParameter
hierarchiesInTree
Specifies whether the hierarchies will be displayed inside the tree.FormalParameter
hierarchyImage
Image used to represent a hierarchy.FormalParameter
searchSize
Specifies the size of the search text box.FormalParameter
treeStyle
Class to indicate the style to use when displaying the tree.-
Fields inherited from class com.microstrategy.web.app.transforms.PromptHierarchicalCartXHTMLTransform
_answers, _attribute, _attributeList, _cartHelper, _drillList, _elementList, _hierarchy, _hierarchyList, _origin, _selectedPane, _showHierarchicalSubFolders, ARGUMENT_PANE_QUALIFY, ARGUMENT_PANE_SELECT, ARGUMENT_PANE_STATUS, ARGUMENT_ROOT_FOLDER_BROWSE_ID, attributeSearchRequired, isQualifyAvailable, NONE_VALUE, PANE_QUALIFY, PANE_SELECT, showAttributeSelection, showEntryPointSelectBox
-
Fields inherited from class com.microstrategy.web.app.transforms.PromptExpressionCartXHTMLTransform
loadFileSeparator, logicalOperatorAvailableUserDefined, logicalOperatorDefault, logicalOperatorSelectionMethod, truncateUploadedAnswersDisplay, truncateUploadedAnswersDisplaySize
-
Fields inherited from class com.microstrategy.web.app.transforms.PromptCartXHTMLTransform
_imgBlank, availableSize, matchCase, searchAvailable, selectedSize
-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractPromptExpressionTransform
attrFormTypeInAvailableList, defaultOperatorId, editMetricQualificationOutputLevel, inputFromTextFile
-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractPromptObjectTransform
_blockCount, _calendar, _cssPrefix, _dataTypeForCalendar, _globalCss, _imagesFolder, cssPrefix, imgBackToTop, imgCalendar, imgError, isDhtmlMode, levelFlag, showRequired
-
Fields inherited from interface com.microstrategy.web.beans.EnumPromptsBeanEvents
ANSWER_SEPARATOR, EXPRESSION_SEPARATOR, ITEM_SEPARATOR, ITEM_SPECIAL_SEPARATOR, PROMPTS_EVENT_ADD_UNITS, PROMPTS_EVENT_ANSWER_ALL_PROMPTS, PROMPTS_EVENT_ANSWER_ANY_PROMPTS, PROMPTS_EVENT_ANSWER_CONSTANT_PROMPT, PROMPTS_EVENT_ANSWER_DIMTY_PROMPT, PROMPTS_EVENT_ANSWER_ELEMENTS_PROMPT, PROMPTS_EVENT_ANSWER_EXPRESSION_PROMPT, PROMPTS_EVENT_ANSWER_OBJECTS_PROMPT, PROMPTS_EVENT_ANSWER_PROMPTS_IN_ADVANCE, PROMPTS_EVENT_ARGUMENT_ACTION_ADD_UNITS, PROMPTS_EVENT_ARGUMENT_ACTION_ANSWER_PROMPT, PROMPTS_EVENT_ARGUMENT_ACTION_BROWSE_CHILD_FOLDER, PROMPTS_EVENT_ARGUMENT_ACTION_BROWSE_ELEMENT, PROMPTS_EVENT_ARGUMENT_ACTION_BROWSE_PARENT_FOLDER, PROMPTS_EVENT_ARGUMENT_ACTION_CANCEL_PROMPT, PROMPTS_EVENT_ARGUMENT_ACTION_CLEAR_EXISTING_AND_ADD_UNITS, PROMPTS_EVENT_ARGUMENT_ACTION_DRILL_WITHIN_HIERARCHY, PROMPTS_EVENT_ARGUMENT_ACTION_HIGHLIGHT_DIMENSION, PROMPTS_EVENT_ARGUMENT_ACTION_HIGHLIGHT_DIMENSION_ATTRIBUTE, PROMPTS_EVENT_ARGUMENT_ACTION_INCREMENTAL_FETCH, PROMPTS_EVENT_ARGUMENT_ACTION_REMOVE_UNITS, PROMPTS_EVENT_ARGUMENT_ACTION_SEARCH_BY_NAME, PROMPTS_EVENT_ARGUMENT_ACTION_SHOW_SUMMARY, PROMPTS_EVENT_ARGUMENT_ANSWER, PROMPTS_EVENT_ARGUMENT_ANSWER_FORMAT, PROMPTS_EVENT_ARGUMENT_ANSWER_MODE_OPTION, PROMPTS_EVENT_ARGUMENT_ANSWER_OPTIONS, PROMPTS_EVENT_ARGUMENT_ATTRIBUTE_ID, PROMPTS_EVENT_ARGUMENT_ATTRIBUTE_ID_AND_FORM_ID, PROMPTS_EVENT_ARGUMENT_BLOCK_BEGIN, PROMPTS_EVENT_ARGUMENT_BLOCK_COUNT, PROMPTS_EVENT_ARGUMENT_BROWSE_PATH, PROMPTS_EVENT_ARGUMENT_CALENDAR_BUTTON, PROMPTS_EVENT_ARGUMENT_CHILD_FOLDER_ID, PROMPTS_EVENT_ARGUMENT_DIMENSION_ID, PROMPTS_EVENT_ARGUMENT_DO_NOT_AUTO_REPROMPT, PROMPTS_EVENT_ARGUMENT_DRILL_TO_ATTRIBUTE_ID, PROMPTS_EVENT_ARGUMENT_EXEC_FLAGS, PROMPTS_EVENT_ARGUMENT_FILTER_STRING, PROMPTS_EVENT_ARGUMENT_FUNCTION, PROMPTS_EVENT_ARGUMENT_HIDDEN_ATTRIBUTE_ID, PROMPTS_EVENT_ARGUMENT_HIDDEN_DIMENSION_ID, PROMPTS_EVENT_ARGUMENT_INCREMENTAL_FETCH_GOTO_PAGE, PROMPTS_EVENT_ARGUMENT_LINK_ANSWERS, PROMPTS_EVENT_ARGUMENT_MATCH_CASE, PROMPTS_EVENT_ARGUMENT_MESSAGE_ALIAS, PROMPTS_EVENT_ARGUMENT_METRIC_ID, PROMPTS_EVENT_ARGUMENT_NAVIGATION, PROMPTS_EVENT_ARGUMENT_OBJECT_TYPE, PROMPTS_EVENT_ARGUMENT_ORIGIN_MESSAGE_ID, PROMPTS_EVENT_ARGUMENT_ORIGIN_SHORT_ANSWER_XML, PROMPTS_EVENT_ARGUMENT_PARENT_FOLDER_ID, PROMPTS_EVENT_ARGUMENT_PLAIN_ELEMENT_PROMPT_ANSWER, PROMPTS_EVENT_ARGUMENT_PLAIN_OBJECT_PROMPT_ANSWER, PROMPTS_EVENT_ARGUMENT_PLAIN_VALUE_PROMPT_ANSWER, PROMPTS_EVENT_ARGUMENT_PROMPT_POSITION, PROMPTS_EVENT_ARGUMENT_REOPEN_PROMPT, PROMPTS_EVENT_ARGUMENT_SAP_VARIABLE_EXCLUDE, PROMPTS_EVENT_ARGUMENT_SEARCH_NAME, PROMPTS_EVENT_ARGUMENT_SEARCH_ROOT, PROMPTS_EVENT_ARGUMENT_SRC_ANSWERS, PROMPTS_EVENT_ARGUMENT_SUB_ROOT_OPERATOR, PROMPTS_EVENT_ARGUMENT_SUBMIT_ANSWER, PROMPTS_EVENT_ARGUMENT_UNITS_TO_ADD, PROMPTS_EVENT_ARGUMENT_UNITS_TO_REMOVE, PROMPTS_EVENT_ARGUMENT_USE_SET_ANSWERS, PROMPTS_EVENT_ARGUMENT_USER_SEPARATOR, PROMPTS_EVENT_BROWSE_DIMENSION_ATTRIBUTE_ELEMENTS, PROMPTS_EVENT_BROWSE_ELEMENTS, PROMPTS_EVENT_BROWSE_HIERARCHICAL_CHILD_FOLDER, PROMPTS_EVENT_BROWSE_HIERARCHICAL_PARENT_FOLDER, PROMPTS_EVENT_CANCEL_ALL_PROMPTS, PROMPTS_EVENT_CANCEL_ANY_PROMPTS, PROMPTS_EVENT_CLEAR_EXISTING_AND_ADD_UNITS, PROMPTS_EVENT_CLEAR_HIERARCHICAL_SEARCH_EXPRESSION, PROMPTS_EVENT_DRILL_WITHIN_HIERARCHY, PROMPTS_EVENT_HIGHLIGHT_DIMENSION, PROMPTS_EVENT_HIGHLIGHT_DIMENSION_ATTRIBUTE, PROMPTS_EVENT_INCREMENTAL_FETCH, PROMPTS_EVENT_NAVIGATE_PROMPTS_BEAN, PROMPTS_EVENT_PROCESS_ALL_PROMPTS, PROMPTS_EVENT_PROCESS_ANY_PROMPTS, PROMPTS_EVENT_REMOVE_UNITS, PROMPTS_EVENT_SEARCH_BY_NAME, PROMPTS_EVENT_SHOW_ALL_PROMPTS_SUMMARY, PROMPTS_EVENT_SHOW_ANY_PROMPTS_SUMMARY, SIMPLE_SEPARATOR_CARET, SIMPLE_SEPARATOR_COMMA, SIMPLE_SEPARATOR_SEMICOLON, UNIT_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description PromptHierarchicalTreeXHTMLTransform()
Default no-args constructor, initialize all the formal parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TreeNode
addTreeNodeToList(WebDisplayUnit item, int level)
AddsWebDisplayUnit
item to tree prompt.protected void
cleanHierarchyList()
Clears anything other than hierarchies from the list, for example, folders.protected TreeCartExpression
createTreeCartExpression()
Create a new CartExpression using the GUIElement Factoryprotected CartExpression
getCartExpression()
Returns an activeCartExpression
instance.protected WebEvent
getPromptEvent(int eventId)
Obtains an instance ofWebEvent
according to the event identifier indicated.java.lang.String
getResourcesFolder(java.lang.String folderType)
Maps the AppContext'sgetResourceFolder
method.void
initializeCart()
Initializes this transform'sCartExpression
instance properties to default values.void
initializeCss()
Initializes CSS information to be used by this transform.void
initializeImages()
Function that initializes the images used in the transform.boolean
isAttributeInformationVisible()
Indicates if the attribute information will remain visible for this cart's display, depending if trees are supported or not.boolean
isButtonTabControlVisible()
Indicates if the tab control buttons (for allowing users to switch from Select to Qualify) will be visible for this cart's display.boolean
isHierarchyInformationVisible()
Indicates if the hiearchy information will remain visible for this cart's display.protected boolean
isNodeComplex(WebNode node)
Indicates if a single subexpression is complex.boolean
isSearchVisible()
Indicates if the search information and options will remain visible for this cart's display.boolean
isTreeSupported()
Utility method that determines if trees are supported or not for the prompt display.protected void
processAvailableItems()
Initializes the available units list.protected void
processHierarchicalSubFolders()
Parses hierarchy sub folder list and initialize collection for its rendering.void
renderAdd(MarkupOutput out)
Renders the add button information for the cart.void
renderAvailable(MarkupOutput out)
Renders the list of available objects on the cart.void
renderCart(MarkupOutput out)
Renders a hierarchical shopping cart output by calling different methods that will render the individual sections of the prompt layout.void
renderHierarchyInformation(MarkupOutput out)
Renders the hierarchy information of the prompt cart being displayed.void
renderParentCart(MarkupOutput out)
Wraps parent renderCart method.void
renderParentContent(MarkupOutput out)
Wraps parent renderCart method.void
renderPromptContent(MarkupOutput out)
Renders the prompt question layout content.void
renderRemove(MarkupOutput out)
Renders the remove button information for the cart.void
renderTreeJavaScript(MarkupOutput out)
Renders the JavaScript required for the tree control to behave correctly on user's browser.void
renderTreeStyle(MarkupOutput out)
Renders HTML for adding the stylesheet required for the prompt display to show correctly on the client's browser.-
Methods inherited from class com.microstrategy.web.app.transforms.PromptHierarchicalCartXHTMLTransform
areThereAvailableSelections, filterAttributesList, getArgumentName, getAttributeElementList, getAttributeFormattedValue, getAvailableDisplayUnits, getAvailableItems, getCartHelper, getDrillList, getErrorMessage, getFirstHighlightedItem, getFirstNonHighlightedEntryPoint, getFirstNonHighlightedItem, getHierarchyAttributeList, getSelectedAttribute, hasAccessGranted, initializeDrillList, initializePromptContent, isAttributeElementSearchRequired, isDrillButtonEnabled, isDrillVisible, isExpressionVisible, isFolderInformationVisible, isQualifyAvailable, isSAPExpression, parserHierarchicalSubFolderCollection, processIncrementalFetch, rederSearch, renderAttributeInformation, renderAttributeInformationDisabled, renderAttributeInformationList, renderAvailableHeaderContent, renderButtonTabControl, renderDrillInformation, renderElementList, renderElementListDrillInformation, renderEmptyAttributeList, renderFolderInformation, renderIncrementalFetch, renderInputLabel, renderMatch, renderOperatorLabel, renderPromptHiddenInput, renderPromptHiddenInputs, renderPromptSummary, renderSearch, renderSelected, validateItemForDrillingList, validateItemsList
-
Methods inherited from class com.microstrategy.web.app.transforms.PromptExpressionCartXHTMLTransform
areUPandDownButtonsAvailable, canTransform, checkLogicalOperatorMethod, createCartExpression, getAnswer, getAttributeForms, getCart, getDescription, getSelectedItems, isAnswerComplex, isCalendarAvailable, isCart, isExpressionAFilter, isExpressionAMetric, isInputFromTextFile, isNextInputButtonAvailable, processSelectedItems, renderAvailableLabel, renderCalendarButton, renderInputTextFile, renderNextInputButton, renderOperators, renderQualificationInputBox
-
Methods inherited from class com.microstrategy.web.app.transforms.PromptCartXHTMLTransform
createCart, getSearchPattern, initializeFormalParameters, isIncrementalFetchAvailable, isSearchActive, isSearchAvailable, isSearchPossible, isUpDownArrowsAvailable, onBeforeApplyDefaultDisplaySettings, renderAddAll, renderDown, renderLabel, renderLabel, renderRemoveAll, renderUp, setExtraArguments, supports, supports, updateIncrementalFetchCartProperties
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractPromptExpressionTransform
getDimtyAsString, getDimtyAttributesAsString, getOutputLevel, isBrowserIE6, isMQLevelEditingSupported, isNodeDimtyEmpty, renderHiddenInputsForMQEditor, renderOutputLevelLabel, setMetricQualOutputLevelAndDimty
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractPromptObjectTransform
addFormalParameter, arePromptsLoadedFirstTime, checkLevel, getAnswerEvent, getAttrElemBlockCount, getCalendar, getContainerServices, getDescriptor, getDescriptor, getDescriptor, getDimensionAttribute, getDisplayHelper, getIntValue, getLocale, getMatchCaseSensitivity, getMultipleEvent, getMultipleEventArgumentString, getObjectsBlockCount, getPrompt, getPromptsAppContext, getPromptsBean, getPromptsList, getRequestKeys, getShowRequired, getStringValue, getSupportedBeanType, getTagsFactory, hasAnswer, initializePromptObject, isBackToTopAnchorEnabled, isDhtmlMode, isDimensionalPrompt, isForDefinition, isIFrameRequest, isItemKeptInCartAvailable, isLocked, isLockedForSearch, isPromptObjectInitialized, isPromptRequired, isPromptSummaryEnabled, isTrue, isXDA_CustomSQL_Report, isXDA_MDX_Report, isXDAReport, newHiddenInputBuilder, newNamespaceEncoder, renderLayout, renderMinMaxHiddenValues, renderPromptAnswerMeaning, renderPromptBackToTopAnchor, renderPromptDefaultAnswer, renderPromptErrorMessage, renderPromptIFrameRequest, renderPromptMeaning, renderPromptNoSelectionsAvailable, renderPromptNotAnswered, renderPromptQuestion, renderPromptRestrictions, renderPromptSummaryAnswer, renderPromptSummaryTitle, renderPromptTitle, setArgumentValue, setAttrElemBlockCount, setEnableBackToTopAnchor, setIsItemKeptInCartAvailable, setLevelFlag, setLocale, setMatchCaseSensitivity, setObjectsBlockCount, setPromptSummary, setShowRequired, transform
-
Methods inherited from class com.microstrategy.web.transform.AbstractLayoutTransform
getLayoutContext, getLayoutDefinition, setLayoutDefinition, transformUsingLayout
-
Methods inherited from class com.microstrategy.web.transform.AbstractTransform
addFormalParam, getEvents, getFormalParams, getID, getPreview, isPreviewAvailable, isResolved, removeFormalParam, setAnnotation, setDeprecated
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microstrategy.web.transform.LayoutTransform
getLayoutDefinition, setLayoutDefinition
-
Methods inherited from interface com.microstrategy.web.transform.Transform
getFormalParams, getID, getPreview, getSupportedBeanType, isPreviewAvailable, isResolved, transform
-
-
-
-
Field Detail
-
_treeList
protected java.util.Vector _treeList
-
hierarchyImage
public FormalParameter hierarchyImage
Image used to represent a hierarchy.
-
_hierarchyImage
protected java.lang.String _hierarchyImage
-
folderImage
public FormalParameter folderImage
Image used to represent a folder.
-
_folderImage
protected java.lang.String _folderImage
-
attributeImage
public FormalParameter attributeImage
Image used to represent an attribute.
-
_attributeImage
protected java.lang.String _attributeImage
-
elementImage
public FormalParameter elementImage
Image used to represent an attribute element.
-
_elementImage
protected java.lang.String _elementImage
-
attributeLockedImage
public FormalParameter attributeLockedImage
Image used to represent a locked attribute.
-
_attributeLockedImage
protected java.lang.String _attributeLockedImage
-
folderItemsInTree
public FormalParameter folderItemsInTree
Specifies whether folder items should be displayed or not.
-
hierarchiesInTree
public FormalParameter hierarchiesInTree
Specifies whether the hierarchies will be displayed inside the tree.
-
searchSize
public FormalParameter searchSize
Specifies the size of the search text box.
-
treeStyle
public FormalParameter treeStyle
Class to indicate the style to use when displaying the tree.
-
-
Method Detail
-
initializeImages
public void initializeImages()
Function that initializes the images used in the transform.- Overrides:
initializeImages
in classPromptCartXHTMLTransform
-
initializeCss
public void initializeCss()
Initializes CSS information to be used by this transform.
It invokes parent method so shared CSS get initialized as well.- Overrides:
initializeCss
in classPromptHierarchicalCartXHTMLTransform
-
initializeCart
public void initializeCart()
Initializes this transform'sCartExpression
instance properties to default values.- Overrides:
initializeCart
in classPromptHierarchicalCartXHTMLTransform
-
processAvailableItems
protected void processAvailableItems() throws WebObjectsException
Initializes the available units list.- Overrides:
processAvailableItems
in classPromptHierarchicalCartXHTMLTransform
- Throws:
WebObjectsException
- if an error happens while the prompt is initialized.
-
isSearchVisible
public boolean isSearchVisible()
Indicates if the search information and options will remain visible for this cart's display.
This is depending if the property has been assigned to theCartExpression
instance for this transform.- Overrides:
isSearchVisible
in classPromptHierarchicalCartXHTMLTransform
- Returns:
- boolean
True
if the search information should be included on the HTML output for the user.
-
isHierarchyInformationVisible
public boolean isHierarchyInformationVisible()
Indicates if the hiearchy information will remain visible for this cart's display.
It depends if there is information to render.- Overrides:
isHierarchyInformationVisible
in classPromptHierarchicalCartXHTMLTransform
- Returns:
- boolean
True
if the hierarchy information should be included on the HTML output for the user.
-
isButtonTabControlVisible
public boolean isButtonTabControlVisible()
Indicates if the tab control buttons (for allowing users to switch from Select to Qualify) will be visible for this cart's display.
It depends if trees are supported or not.- Overrides:
isButtonTabControlVisible
in classPromptHierarchicalCartXHTMLTransform
- Returns:
- boolean
True
if the button tab control information should be included on the HTML output for the user.
-
isAttributeInformationVisible
public boolean isAttributeInformationVisible()
Indicates if the attribute information will remain visible for this cart's display, depending if trees are supported or not.- Overrides:
isAttributeInformationVisible
in classPromptHierarchicalCartXHTMLTransform
- Returns:
- boolean
True
if the attribute information should be included on the HTML output for the user.
-
isTreeSupported
public boolean isTreeSupported()
Utility method that determines if trees are supported or not for the prompt display.- Returns:
True
if the output mode is DHTML and the browser used is of version 6.0 or greater. ReturnsFalse
otherwise.
-
cleanHierarchyList
protected void cleanHierarchyList()
Clears anything other than hierarchies from the list, for example, folders.
Overwrites the parent method since it checks for thefolderItemsInTree
formal parameter to see if they should be allowed on the list or not.- Overrides:
cleanHierarchyList
in classPromptHierarchicalCartXHTMLTransform
-
getPromptEvent
protected WebEvent getPromptEvent(int eventId)
Obtains an instance ofWebEvent
according to the event identifier indicated.- Parameters:
eventId
-int
value with the identifier of the event to obtain- Returns:
- WebEvent a
WebEvent
instance for the event identifier specified.
-
addTreeNodeToList
protected TreeNode addTreeNodeToList(WebDisplayUnit item, int level)
AddsWebDisplayUnit
item to tree prompt.- Parameters:
item
-WebDisplayUnit
to be added to treelevel
- indicates tree node level- Returns:
TreeNode
new instance.
-
getResourcesFolder
public java.lang.String getResourcesFolder(java.lang.String folderType)
Maps the AppContext'sgetResourceFolder
method.
It validates that thegetBeanContext
is indeed anAppContext
instance.- Parameters:
folderType
- the folder type to look for- Returns:
- AppContext's
getResourceFolder
result, or an empty string if it could not be obtained.
-
getCartExpression
protected CartExpression getCartExpression()
- Overrides:
getCartExpression
in classPromptExpressionCartXHTMLTransform
- Returns:
CartExpression
instance related to this transform.
-
createTreeCartExpression
protected TreeCartExpression createTreeCartExpression()
Create a new CartExpression using the GUIElement Factory- Returns:
- a new instance of the CartExpression
- Since:
- MicroStrategy Web 8.0.1
-
renderTreeJavaScript
public void renderTreeJavaScript(MarkupOutput out)
Renders the JavaScript required for the tree control to behave correctly on user's browser.- Parameters:
out
-MarkupOutput
instance where the output HTML will be stored.
-
renderTreeStyle
public void renderTreeStyle(MarkupOutput out)
Renders HTML for adding the stylesheet required for the prompt display to show correctly on the client's browser.- Parameters:
out
-MarkupOutput
instance where the output HTML will be stored.
-
renderCart
public void renderCart(MarkupOutput out)
Renders a hierarchical shopping cart output by calling different methods that will render the individual sections of the prompt layout.
The output is organized with a series ofDIV
HTML tags created. It overwrites the parent'srenderCart
method by adding therenderTreeStyle(MarkupOutput)
andrenderTreeJavaScript
method calls.
The methods used for the cart output are listed below, whereout
is aMarkupOutput
instance where the HTML generated by these calls is saved.- Overrides:
renderCart
in classPromptHierarchicalCartXHTMLTransform
- Parameters:
out
-MarkupOutput
instance where the output HTML will be stored.
-
renderParentCart
public void renderParentCart(MarkupOutput out)
Wraps parent renderCart method.
It only renders cart layout as defined in non-tree Hierarchical prompt. Function useful in Layouts infrastructure where parent behavior or layout can be displayed.- Parameters:
out
-MarkupOutput
where to write Prompt output.
-
processHierarchicalSubFolders
protected void processHierarchicalSubFolders() throws WebObjectsException
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.- Overrides:
processHierarchicalSubFolders
in classPromptHierarchicalCartXHTMLTransform
- Throws:
WebObjectsException
- thrown only if there's a problem when processing parent functionality.
-
renderHierarchyInformation
public void renderHierarchyInformation(MarkupOutput out)
Renders the hierarchy information of the prompt cart being displayed.
For tree style, this means to render pull-down menu consisted of hierarchies.- Overrides:
renderHierarchyInformation
in classPromptHierarchicalCartXHTMLTransform
- Parameters:
out
-MarkupOutput
instance where the output HTML will be stored.
-
renderPromptContent
public void renderPromptContent(MarkupOutput out)
Renders the prompt question layout content.
It callsrenderCart(MarkupOutput)
method. If trees are not supported, then it will call the parent'srenderPromptContent
method.- Overrides:
renderPromptContent
in classPromptExpressionCartXHTMLTransform
- Parameters:
out
-MarkupOutput
instance where the output HTML will be stored.
-
renderParentContent
public void renderParentContent(MarkupOutput out)
Wraps parent renderCart method.
Similar to renderParentCart method but FP hierarchiesInTree gets reset to False, indicating that the entire Tree prompt transform will adopt parent's layout to look and act as a non-tree hierarchical prompt.
Function useful in Layouts infrastructure where parent behavior or layout can be displayed.- Parameters:
out
-MarkupOutput
where Parent prompt will write its ouput.
-
renderAvailable
public void renderAvailable(MarkupOutput out)
Renders the list of available objects on the cart.- Overrides:
renderAvailable
in classPromptHierarchicalCartXHTMLTransform
- Parameters:
out
-MarkupOutput
instance where the output HTML will be stored.
-
isNodeComplex
protected boolean isNodeComplex(WebNode node)
Indicates if a single subexpression is complex.
An expression is complex if it cannot be created using the Web interface.
This method overridesisNodeComplex
by supporting expressions of typeEnumDSSXMLExpressionType.DssXmlFilterListQual
(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 callssuper.isNodeComplex
to check if the expression is normally supported by attribute qualification- Overrides:
isNodeComplex
in classPromptHierarchicalCartXHTMLTransform
- Parameters:
node
- the root node of the subexpression to check- Returns:
True
if the Node is complex, that is, it cannot be created using this transform.
-
renderAdd
public void renderAdd(MarkupOutput out)
Renders the add button information for the cart.
It overwrites the parentrenderAdd
method by initializing specific JavaScript code associated with the button.- Overrides:
renderAdd
in classPromptHierarchicalCartXHTMLTransform
- Parameters:
out
-MarkupOutput
instance where the HTML content generated by this method will be saved
-
renderRemove
public void renderRemove(MarkupOutput out)
Renders the remove button information for the cart.
It overwrites the parentrenderRemove
method by initializing specific JavaScript code associated with the button.- Overrides:
renderRemove
in classPromptHierarchicalCartXHTMLTransform
- Parameters:
out
-MarkupOutput
instance where the HTML content generated by this method will be saved
-
-