Interface PromptDefinitionBean

    • Method Detail

      • getPromptType

        int getPromptType()
        Returns the current prompt type, from EnumWebPromptType.
        Returns:
        The current prompt type of the WebPrompt object, a value from EnumWebPromptType.
      • setPromptType

        void setPromptType​(int promptType)
        Sets the type of prompt that the bean refers to. If the prompt type changes, generally whatever state has been built up so far will be discarded, similar to calling setObjectID. After calling this method, you should generally call collectData to update the bean.
        Parameters:
        promptType - The type of prompt that this bean will represent, from EnumWebPromptType.
      • setConstantPromptDataType

        void setConstantPromptDataType​(int dataType)
        Sets the datatype for a constant prompt.
        Parameters:
        dataType - A value from EnumDSSXMLDataType, representing the datatype of the prompt.
      • getConstantPromptDataType

        int getConstantPromptDataType()
        Returns the datatype for a constant prompt.
        Returns:
        The currently set datatype for the constant prompt, from EnumDSSXMLDataType.
      • getExpressionPromptExpressionType

        int getExpressionPromptExpressionType()
        Returns the expression type for the expression prompt.
        Returns:
        The currently set expression type for the expression prompt, from EnumDSSXMLExpressionType.
      • getDefaultAnswerPromptBean

        PromptBean getDefaultAnswerPromptBean()
                                       throws WebBeanException
        Returns a PromptBean that can be used to display and modify the default answer of prompt. This PromptBean will expose the default answer on its getAnswer method, so that the bean can be used by any code which normally deals with regular answers to provide default answers as well.
        Returns:
        A PromptBean tied to the default answer.
        Throws:
        WebBeanException
      • getAvailableListPromptBean

        PromptBean getAvailableListPromptBean()
                                       throws WebBeanException
        Returns a PromptBean that can be used to display and modify the available list of a prompt. Note that this will only work for certain types of prompts - in particular, elements prompt is currently the only type supported, since the other types are fairly different in their semantics from the standard answer case. This PromptBean will expose the available list as the "answer" of the bean, and will modify the available list exposed by the bean appropriately in order to ensure that code which renders the regular answer can also render the available list with minimal changes.
        Returns:
        A PromptBean tied to the available list.
        Throws:
        WebBeanException