Class PromptElementsWidgetTransform

    • Constructor Detail

      • PromptElementsWidgetTransform

        public PromptElementsWidgetTransform()
    • Method Detail

      • getAnswer

        public java.util.List getAnswer()
      • getSuggestedAnswers

        public WebElements getSuggestedAnswers()
      • getAvailableAnswers

        public java.util.List getAvailableAnswers()
      • getItemNoneWidget

        public void getItemNoneWidget​(BlockList blockList)
        The widget for -none- option.
        Parameters:
        blockList - list of widgets
      • getColumnListWidget

        public void getColumnListWidget​(BlockList list)
      • shouldRenderNoneOption

        public boolean shouldRenderNoneOption()
      • 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.
        Overrides:
        isAvailableFolderAvailable in class AbstractPromptWidgetTransform
      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: Transform
        Returns a textual description of the transform.
        Returns:
        The textual description of the transform.
      • getSearchResultSize

        public int getSearchResultSize()
      • getDefaultAnswerAsString

        public java.lang.String getDefaultAnswerAsString()
      • getAttForms

        public java.util.List getAttForms​(WebAttribute att)
      • showIncrementalFetch

        public boolean showIncrementalFetch()
      • isSearchRequired

        public boolean isSearchRequired()
        Returns whether a search is required for element browsing.
        Returns:
        Whether a search is required for element browsing.
      • isElementSearchDisabled

        public boolean isElementSearchDisabled()
      • isMatchCaseDisabled

        public boolean isMatchCaseDisabled()
        Returns whether Match Case of search filed is disabled.
        Returns:
        Whether Match Case of search filed is disabled.
      • isMatchCaseDefaultChecked

        public boolean isMatchCaseDefaultChecked()
        Match case should be checked only if it's enabled from both backend model and web preference
        Returns:
      • getSupportedBeanType

        public java.lang.Class getSupportedBeanType()
        Get the class of objects this transform is able to handle.
        Specified by:
        getSupportedBeanType in interface Transform
        Overrides:
        getSupportedBeanType in class AbstractAppTransform
        Returns:
        a Class instance with the information about the beans this transform is able to manipulate.
      • getLookupForm

        public java.lang.String getLookupForm()
        In Mobile, users can scan barcode when answer prompts, and barcode data would be used to match the data of lookup form.
        Returns:
        the form id of lookup form.