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_attributeImageprotected java.lang.String_attributeLockedImageprotected java.lang.String_elementImageprotected java.lang.String_folderImageprotected java.lang.String_hierarchyImageprotected java.util.Vector_treeListFormalParameterattributeImageImage used to represent an attribute.FormalParameterattributeLockedImageImage used to represent a locked attribute.FormalParameterelementImageImage used to represent an attribute element.FormalParameterfolderImageImage used to represent a folder.FormalParameterfolderItemsInTreeSpecifies whether folder items should be displayed or not.FormalParameterhierarchiesInTreeSpecifies whether the hierarchies will be displayed inside the tree.FormalParameterhierarchyImageImage used to represent a hierarchy.FormalParametersearchSizeSpecifies the size of the search text box.FormalParametertreeStyleClass 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 TreeNodeaddTreeNodeToList(WebDisplayUnit item, int level)AddsWebDisplayUnititem to tree prompt.protected voidcleanHierarchyList()Clears anything other than hierarchies from the list, for example, folders.protected TreeCartExpressioncreateTreeCartExpression()Create a new CartExpression using the GUIElement Factoryprotected CartExpressiongetCartExpression()Returns an activeCartExpressioninstance.protected WebEventgetPromptEvent(int eventId)Obtains an instance ofWebEventaccording to the event identifier indicated.java.lang.StringgetResourcesFolder(java.lang.String folderType)Maps the AppContext'sgetResourceFoldermethod.voidinitializeCart()Initializes this transform'sCartExpressioninstance properties to default values.voidinitializeCss()Initializes CSS information to be used by this transform.voidinitializeImages()Function that initializes the images used in the transform.booleanisAttributeInformationVisible()Indicates if the attribute information will remain visible for this cart's display, depending if trees are supported or not.booleanisButtonTabControlVisible()Indicates if the tab control buttons (for allowing users to switch from Select to Qualify) will be visible for this cart's display.booleanisHierarchyInformationVisible()Indicates if the hiearchy information will remain visible for this cart's display.protected booleanisNodeComplex(WebNode node)Indicates if a single subexpression is complex.booleanisSearchVisible()Indicates if the search information and options will remain visible for this cart's display.booleanisTreeSupported()Utility method that determines if trees are supported or not for the prompt display.protected voidprocessAvailableItems()Initializes the available units list.protected voidprocessHierarchicalSubFolders()Parses hierarchy sub folder list and initialize collection for its rendering.voidrenderAdd(MarkupOutput out)Renders the add button information for the cart.voidrenderAvailable(MarkupOutput out)Renders the list of available objects on the cart.voidrenderCart(MarkupOutput out)Renders a hierarchical shopping cart output by calling different methods that will render the individual sections of the prompt layout.voidrenderHierarchyInformation(MarkupOutput out)Renders the hierarchy information of the prompt cart being displayed.voidrenderParentCart(MarkupOutput out)Wraps parent renderCart method.voidrenderParentContent(MarkupOutput out)Wraps parent renderCart method.voidrenderPromptContent(MarkupOutput out)Renders the prompt question layout content.voidrenderRemove(MarkupOutput out)Renders the remove button information for the cart.voidrenderTreeJavaScript(MarkupOutput out)Renders the JavaScript required for the tree control to behave correctly on user's browser.voidrenderTreeStyle(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:
initializeImagesin 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:
initializeCssin classPromptHierarchicalCartXHTMLTransform
-
initializeCart
public void initializeCart()
Initializes this transform'sCartExpressioninstance properties to default values.- Overrides:
initializeCartin classPromptHierarchicalCartXHTMLTransform
-
processAvailableItems
protected void processAvailableItems() throws WebObjectsExceptionInitializes the available units list.- Overrides:
processAvailableItemsin 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 theCartExpressioninstance for this transform.- Overrides:
isSearchVisiblein classPromptHierarchicalCartXHTMLTransform- Returns:
- boolean
Trueif 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:
isHierarchyInformationVisiblein classPromptHierarchicalCartXHTMLTransform- Returns:
- boolean
Trueif 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:
isButtonTabControlVisiblein classPromptHierarchicalCartXHTMLTransform- Returns:
- boolean
Trueif 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:
isAttributeInformationVisiblein classPromptHierarchicalCartXHTMLTransform- Returns:
- boolean
Trueif 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:
Trueif the output mode is DHTML and the browser used is of version 6.0 or greater. ReturnsFalseotherwise.
-
cleanHierarchyList
protected void cleanHierarchyList()
Clears anything other than hierarchies from the list, for example, folders.
Overwrites the parent method since it checks for thefolderItemsInTreeformal parameter to see if they should be allowed on the list or not.- Overrides:
cleanHierarchyListin classPromptHierarchicalCartXHTMLTransform
-
getPromptEvent
protected WebEvent getPromptEvent(int eventId)
Obtains an instance ofWebEventaccording to the event identifier indicated.- Parameters:
eventId-intvalue with the identifier of the event to obtain- Returns:
- WebEvent a
WebEventinstance for the event identifier specified.
-
addTreeNodeToList
protected TreeNode addTreeNodeToList(WebDisplayUnit item, int level)
AddsWebDisplayUnititem to tree prompt.- Parameters:
item-WebDisplayUnitto be added to treelevel- indicates tree node level- Returns:
TreeNodenew instance.
-
getResourcesFolder
public java.lang.String getResourcesFolder(java.lang.String folderType)
Maps the AppContext'sgetResourceFoldermethod.
It validates that thegetBeanContextis indeed anAppContextinstance.- Parameters:
folderType- the folder type to look for- Returns:
- AppContext's
getResourceFolderresult, or an empty string if it could not be obtained.
-
getCartExpression
protected CartExpression getCartExpression()
- Overrides:
getCartExpressionin classPromptExpressionCartXHTMLTransform- Returns:
CartExpressioninstance 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-MarkupOutputinstance 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-MarkupOutputinstance 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 ofDIVHTML tags created. It overwrites the parent'srenderCartmethod by adding therenderTreeStyle(MarkupOutput)andrenderTreeJavaScriptmethod calls.
The methods used for the cart output are listed below, whereoutis aMarkupOutputinstance where the HTML generated by these calls is saved.- Overrides:
renderCartin classPromptHierarchicalCartXHTMLTransform- Parameters:
out-MarkupOutputinstance 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-MarkupOutputwhere to write Prompt output.
-
processHierarchicalSubFolders
protected void processHierarchicalSubFolders() throws WebObjectsExceptionParses 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:
processHierarchicalSubFoldersin 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:
renderHierarchyInformationin classPromptHierarchicalCartXHTMLTransform- Parameters:
out-MarkupOutputinstance 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'srenderPromptContentmethod.- Overrides:
renderPromptContentin classPromptExpressionCartXHTMLTransform- Parameters:
out-MarkupOutputinstance 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-MarkupOutputwhere Parent prompt will write its ouput.
-
renderAvailable
public void renderAvailable(MarkupOutput out)
Renders the list of available objects on the cart.- Overrides:
renderAvailablein classPromptHierarchicalCartXHTMLTransform- Parameters:
out-MarkupOutputinstance 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 overridesisNodeComplexby 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.isNodeComplexto check if the expression is normally supported by attribute qualification- Overrides:
isNodeComplexin classPromptHierarchicalCartXHTMLTransform- Parameters:
node- the root node of the subexpression to check- Returns:
Trueif 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 parentrenderAddmethod by initializing specific JavaScript code associated with the button.- Overrides:
renderAddin classPromptHierarchicalCartXHTMLTransform- Parameters:
out-MarkupOutputinstance 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 parentrenderRemovemethod by initializing specific JavaScript code associated with the button.- Overrides:
renderRemovein classPromptHierarchicalCartXHTMLTransform- Parameters:
out-MarkupOutputinstance where the HTML content generated by this method will be saved
-
-