| java.lang.Object | |||||
| ↳ | com.microstrategy.web.transform.AbstractTransform | ||||
| ↳ | com.microstrategy.web.transform.AbstractLayoutTransform | ||||
| ↳ | com.microstrategy.web.app.transforms.AbstractAppTransform | ||||
| ↳ | com.microstrategy.web.app.transforms.AbstractAppWidgetTransform | ||||
| ↳ | com.microstrategy.web.app.transforms.AbstractPromptWidgetTransform | ||||
Known Direct Subclasses
|
Known Indirect Subclasses
|
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.microstrategy.web.app.transforms.AbstractAppTransform
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| protected PromptBean | _prompt | ||||||||||
| protected PromptAppBean | _promptAppBean | ||||||||||
| protected int | _promptPosition | ||||||||||
| public FormalParameter | displayModel | ||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.microstrategy.web.app.transforms.AbstractAppTransform
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| AbstractPromptWidgetTransform() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| boolean | allowMultipleUserAnswer() | ||||||||||
| boolean | allowSingleUserAnswer() | ||||||||||
| String | getAnswerFormat() | ||||||||||
| String | getAnswerOption() | ||||||||||
| String | getAnswerRestriction() | ||||||||||
| Block | getChildWidget(WebBean bean, String styleName) | ||||||||||
| Block | getChildWidget(WebBean bean, String styleName, String[] fpNames, Object[] fpValues) | ||||||||||
| Block | getDataFormsWidget(WebAttributeForms forms) | ||||||||||
| WebPromptAnswer |
getDefaultAnswer()
Return the default user answer.
| ||||||||||
| boolean |
getDefaultSavingAnswer()
When only one answer allowed and there is default answer (both prompt and re-prompt cases),
we would like the saving box be checked.
| ||||||||||
| WebProperty | getDisplayProperty(String pName) | ||||||||||
| String | getDisplayStyleName() | ||||||||||
| ArrayList | getElementsAsList(WebElements elems) | ||||||||||
| String | getErrorMessage() | ||||||||||
| void | getItemWidget(BlockList blockList, WebElement elem, WebAttributeForms forms) | ||||||||||
| String | getNamePrefixForSingleSavedAnswer() | ||||||||||
| int | getPromptIndex() | ||||||||||
| String | getPromptMeaning() | ||||||||||
| String | getPromptName() | ||||||||||
| String | getPromptTitle() | ||||||||||
| int | getPropertyDefaultSelection() | ||||||||||
| String | getPropertyHeightValue() | ||||||||||
| String | getPropertyValue(String pName) | ||||||||||
| String | getPropertyWidthValue() | ||||||||||
| String | getRestriction() | ||||||||||
| List | getSavedAnswers() | ||||||||||
| WebSearch |
getSearchObject()
subclass can override this method to return its search object associated with the avialable part.
| ||||||||||
| String | getSearchTypes() | ||||||||||
| boolean | hasError() | ||||||||||
| boolean | hasSavedAnswers() | ||||||||||
| void |
initializeWebComponent(Transformable data)
Initialize the web component to be used by the transform.
| ||||||||||
| boolean | isAutoCloseAnswer(WebPromptAnswer ans) | ||||||||||
| boolean |
isAvailableFolderAvailable()
In "Each on a separate page" mode, we only collected the first page's search result, if there is a search defined.
| ||||||||||
| boolean | isCartStyle() | ||||||||||
| boolean | isCheckboxStyle() | ||||||||||
| boolean |
isDefaultAnswer(WebPromptAnswer ans)
Returns whether the input argument is a default answer.
| ||||||||||
| boolean | isDisplayingModel() | ||||||||||
| boolean | isHICartStyle() | ||||||||||
| boolean | isHICart_or_TreeStyle() | ||||||||||
| boolean | isListStyle() | ||||||||||
| boolean | isMultiListStyle() | ||||||||||
| boolean | isNonCartStyle() | ||||||||||
| boolean | isOneByOneDisplayMode() | ||||||||||
| boolean | isPropertyWidthFixed() | ||||||||||
| boolean | isPulldownStyle() | ||||||||||
| boolean | isRadioStyle() | ||||||||||
| boolean |
isReprompting()
Returns whether current is in reprompting process.
| ||||||||||
| boolean | isSingleListStyle() | ||||||||||
| boolean | isTextboxStyle() | ||||||||||
| boolean | isTreeStyle() | ||||||||||
| boolean |
isTrimmedTree()
Doug's spec
1) We will add a new property to object prompts that meet all of the following criteria:
a.
| ||||||||||
| boolean | isUseFolderStructure() | ||||||||||
| String |
showObjectDescription()
The return value will control how the description of individual object should be shown:
No, Yes or ToolTip.
| ||||||||||
| boolean | showSearchBox() | ||||||||||
| boolean | showSearchBoxOrTreeStyle() | ||||||||||
| boolean |
usingDefaultAnswer()
Returns whether current answer is using the default answer.
| ||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| boolean | isDisplaySearchPropOn() | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.microstrategy.web.app.transforms.AbstractAppWidgetTransform
| |||||||||||
From class
com.microstrategy.web.app.transforms.AbstractAppTransform
| |||||||||||
From class
com.microstrategy.web.transform.AbstractLayoutTransform
| |||||||||||
From class
com.microstrategy.web.transform.AbstractTransform
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.microstrategy.web.app.transforms.AppTransform
| |||||||||||
From interface
com.microstrategy.web.transform.LayoutTransform
| |||||||||||
From interface
com.microstrategy.web.transform.Transform
| |||||||||||
When only one answer allowed and there is default answer (both prompt and re-prompt cases), we would like the saving box be checked.
subclass can override this method to return its search object associated with the avialable part.
Initialize the web component to be used by the transform.
| data | the bean to transform. |
|---|
In "Each on a separate page" mode, we only collected the first page's search result, if there is a search defined. The suggested answer for other prompts are valid, but we have not collect the search results for other prompts, if there is any. And we do not want to collect those search data, since avoiding them is the purpose of the "Each on a separate page" mode. So, in layout file, we should first check whether available folder is available before rendering it out.
Returns whether the input argument is a default answer.
Answer is a default answer when its reuse property is DssXmlPromptAnswerReuseDefault
or DssXmlPromptAnswerReuseDefaultAndClose.
| ans | The answer object to check |
|---|
true if the input answer object is a default answer, otherwise false.
Returns whether current is in reprompting process.
Doug's spec 1) We will add a new property to object prompts that meet all of the following criteria: a. use a search that is defined to search within subfolders, b. use the Tree style, and c. the Use folder structure property is True (which is must be if Tree style is selected). 2) When this new property is enabled, the Web server code will retrieve from backend all objects that match the search criteria, including their complete paths. 3) Web will send these objects to the client, where they will be presented in a tree. a. The tree will start at the folder specified as the root of the search. b. The tree will be fully populated from the beginning. c. All nodes of the tree except those on a direct path to the folder specified as the root of the search will start out fully collapsed. The folder specified as the root of the search will itself be collapsed. d. Below the folder specified as the root of the search, only folders that contain a matching object somewhere within them will be shown. (In other words, only folders that are on the path of some matching object will be shown in the tree). e. If the prompt is defined to Allow navigation above search root, navigation above/outside the search root folder will behave as it does today (folder contents will be retrieved from the server only on-demand, and folders that might not contain matching objects will be shown anyway.) In other words, this new property and behaviour will only apply to the folder specified as the root of the search and its subfolders.
The return value will control how the description of individual object should be shown: No, Yes or ToolTip.
Returns whether current answer is using the default answer. When we are not in reprompting and there is default answer existing and project level answer restriction is not NONE, then we are using default answer. When project level answer restriction is set to NONE, Iserver side will disable the user answers feature.