Interface ICompositeDisplay

    • Method Detail

      • getCompositeHtml

        java.lang.String getCompositeHtml​(javax.servlet.http.HttpServletRequest request,
                                          java.util.List<FormQuestionResponse> listFormQuestionResponse,
                                          java.util.Locale locale,
                                          DisplayType displayType)
        Builds the HTML of the composite
        Parameters:
        request - the request
        listFormQuestionResponse - the list of form question responses
        locale - The locale
        displayType - The display type
        Returns:
        the HTML
      • iterate

        void iterate​(int nIdFormDisplay)
        Iterates the specified form display
        Parameters:
        nIdFormDisplay - the id of the form display to iterate
      • removeIteration

        void removeIteration​(javax.servlet.http.HttpServletRequest request,
                             int nIdGroupParent,
                             int nIndexIterationToRemove,
                             FormResponse formResponse)
        Remove the specified iteration of group
        Parameters:
        request - the request
        nIdGroupParent - the id of the group
        nIndexIterationToRemove - the index of the iteration to remove in group
        formResponse - the form responses
      • getCompositeList

        java.util.List<ICompositeDisplay> getCompositeList()
        Return the full list of children ICompositeDisplay of an initialized CompositeDisplay
        Returns:
        the children composite list
      • getTitle

        java.lang.String getTitle()
        Returns:
        the title of the compositeDisplay
      • getType

        java.lang.String getType()
        Returns:
        the type of the compositeDisplay
      • getFormDisplay

        FormDisplay getFormDisplay()
        return the FormDisplay
        Returns:
        the FormDisplay
      • getIcon

        java.lang.String getIcon()
        Returns:
        the icon name
      • getAllDisplayControls

        java.util.List<Control> getAllDisplayControls()
        Returns:
        all the Display Controls in the child
      • addQuestions

        void addQuestions​(java.util.List<Question> listQuestion)
        Add the questions into the specified list
        Parameters:
        listQuestion - the list of question to complete
      • addModel

        void addModel​(java.util.Map<java.lang.String,​java.lang.Object> model)
        Adds the specified model in the model of this instance
        Parameters:
        model - the model to add
      • isVisible

        boolean isVisible()
        is the composite display visible.
        Returns:
      • filter

        ICompositeDisplay filter​(java.util.List<java.lang.Integer> listQuestionIds)
      • filterFromListQuestion

        ICompositeDisplay filterFromListQuestion​(java.util.List<Question> listQuestion)
        filter composiste listChildren with the listQuestion using iteration number
        Parameters:
        listQuestion - The listQuestion
        Returns:
        composite display
      • getIterationNumber

        java.lang.Integer getIterationNumber()
        Return the IterationNumber of the question
        Returns:
        IterationNumber