Class AbstractPromptWidgetTransform

    • Constructor Detail

      • AbstractPromptWidgetTransform

        public AbstractPromptWidgetTransform()
    • Method Detail

      • getPromptTitle

        public java.lang.String getPromptTitle()
      • getPromptMeaning

        public java.lang.String getPromptMeaning()
      • getAnswerFormat

        public java.lang.String getAnswerFormat()
      • getAnswerOption

        public java.lang.String getAnswerOption()
      • hasError

        public boolean hasError()
      • getErrorMessage

        public java.lang.String getErrorMessage()
      • getRestriction

        public java.lang.String getRestriction()
      • isTextboxStyle

        public boolean isTextboxStyle()
      • isRadioStyle

        public boolean isRadioStyle()
      • isCheckboxStyle

        public boolean isCheckboxStyle()
      • isListStyle

        public boolean isListStyle()
      • isSingleListStyle

        public boolean isSingleListStyle()
      • isMultiListStyle

        public boolean isMultiListStyle()
      • isPulldownStyle

        public boolean isPulldownStyle()
      • isCartStyle

        public boolean isCartStyle()
      • isHICartStyle

        public boolean isHICartStyle()
      • isTreeStyle

        public boolean isTreeStyle()
      • getDisplayStyleName

        public java.lang.String getDisplayStyleName()
      • isPropertyWidthFixed

        public boolean isPropertyWidthFixed()
      • isUseFolderStructure

        public boolean isUseFolderStructure()
      • getPropertyValue

        public java.lang.String getPropertyValue​(java.lang.String pName)
      • getDisplayProperty

        public WebProperty getDisplayProperty​(java.lang.String pName)
      • getPropertyWidthValue

        public java.lang.String getPropertyWidthValue()
      • getPropertyDefaultSelection

        public int getPropertyDefaultSelection()
      • getPropertyHeightValue

        public java.lang.String getPropertyHeightValue()
      • getChildWidget

        public Block getChildWidget​(WebBean bean,
                                    java.lang.String styleName,
                                    java.lang.String[] fpNames,
                                    java.lang.Object[] fpValues)
      • showSearchBox

        public boolean showSearchBox()
      • isDisplaySearchPropOn

        protected boolean isDisplaySearchPropOn()
      • getElementsAsList

        public java.util.ArrayList getElementsAsList​(WebElements elems)
      • getSearchObject

        public WebSearch getSearchObject()
        subclass can override this method to return its search object associated with the avialable part.
      • isAvailableFolderAvailable

        public boolean isAvailableFolderAvailable()
        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.
      • showObjectDescription

        public java.lang.String showObjectDescription()
        The return value will control how the description of individual object should be shown: No, Yes or ToolTip.
      • getSearchTypes

        public java.lang.String getSearchTypes()
      • isOneByOneDisplayMode

        public boolean isOneByOneDisplayMode()
      • isDisplayingModel

        public boolean isDisplayingModel()
      • getPromptIndex

        public int getPromptIndex()
      • showSearchBoxOrTreeStyle

        public boolean showSearchBoxOrTreeStyle()
      • isHICart_or_TreeStyle

        public boolean isHICart_or_TreeStyle()
      • hasSavedAnswers

        public boolean hasSavedAnswers()
      • getSavedAnswers

        public java.util.List getSavedAnswers()
      • getDefaultAnswer

        public WebPromptAnswer getDefaultAnswer()
        Return the default user answer.
      • isAutoCloseAnswer

        public boolean isAutoCloseAnswer​(WebPromptAnswer ans)
      • isReprompting

        public boolean isReprompting()
        Returns whether current is in reprompting process.
      • usingDefaultAnswer

        public boolean usingDefaultAnswer()
        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.
      • allowMultipleUserAnswer

        public boolean allowMultipleUserAnswer()
      • getAnswerRestriction

        public java.lang.String getAnswerRestriction()
      • allowSingleUserAnswer

        public boolean allowSingleUserAnswer()
      • getNamePrefixForSingleSavedAnswer

        public java.lang.String getNamePrefixForSingleSavedAnswer()
      • getPromptName

        public java.lang.String getPromptName()
      • getDefaultSavingAnswer

        public 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.
      • isTrimmedTree

        public boolean isTrimmedTree()
        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.
        Returns:
      • isNonCartStyle

        public boolean isNonCartStyle()