Class FormFilterDisplaySearchedText

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void buildTemplate​(javax.servlet.http.HttpServletRequest request, java.util.Locale locale)
      Build the Template of the FormFilterDisplay
      FormParameters createFormParameters​(javax.servlet.http.HttpServletRequest request)
      Create a FormParameters for the filter with the data in the given request
      java.lang.String getBaseTemplate()
      Return the base template of the FormFilterDisplay, before being filled
      FormFilter getFormFilter()
      Return the FormFilter of the FilterDisplay
      java.lang.String getParameterName()
      Return the name of the parameter associated to the FormFilterDisplay.
      int getPosition()
      Return the position of the element
      java.lang.String getTemplate()
      Return the template of the FormFilterDisplay
      java.lang.String getValue()
      Return the value of the the template of the FormFilterDisplay
      void setFormFilter​(FormFilter formFilter)
      Set the FormFilter associated to the FilterDisplay
      void setPosition​(int nPosition)
      Set the position of the element
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FormFilterDisplaySearchedText

        public FormFilterDisplaySearchedText​(IFormSearchEngine formSearchEngine)
    • Method Detail

      • getParameterName

        public java.lang.String getParameterName()
        Return the name of the parameter associated to the FormFilterDisplay. This name correspond to the name on which the filter used to retrieve the value which has been selected on the screen by the user. If the name returned by this method doesn't match the name used to retrieve the value selected by the user this value will be lost during the redirection between the page of the details of the form response and the page which list all the form responses.
        Returns:
        the name of the parameter associated to the FormFilterDisplay
      • buildTemplate

        public void buildTemplate​(javax.servlet.http.HttpServletRequest request,
                                  java.util.Locale locale)
        Build the Template of the FormFilterDisplay
        Parameters:
        request - The HttpServletRequest to use to build the template of the filter
        locale - The locale to use for i18n labels in the template
      • createFormParameters

        public FormParameters createFormParameters​(javax.servlet.http.HttpServletRequest request)
        Create a FormParameters for the filter with the data in the given request
        Specified by:
        createFormParameters in interface IFilterable
        Overrides:
        createFormParameters in class AbstractFormFilterDisplay
        Parameters:
        request - The request to retrieve the data of the filter
        Returns:
        the FormParameters for the given filter with the data of the request