Class FormFilterDisplaySearchedText
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.web.form.filter.display.impl.AbstractFormFilterDisplay
-
- fr.paris.lutece.plugins.forms.web.form.filter.display.impl.FormFilterDisplaySearchedText
-
- All Implemented Interfaces:
IFormFilterDisplay,IFilterable,IFormListPosition
public class FormFilterDisplaySearchedText extends AbstractFormFilterDisplay
Implementation of the IFormFilterDisplay interface for the filter on workflow state
-
-
Constructor Summary
Constructors Constructor Description FormFilterDisplaySearchedText(IFormSearchEngine formSearchEngine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildTemplate(javax.servlet.http.HttpServletRequest request, java.util.Locale locale)Build the Template of the FormFilterDisplayFormParameterscreateFormParameters(javax.servlet.http.HttpServletRequest request)Create a FormParameters for the filter with the data in the given requestjava.lang.StringgetBaseTemplate()Return the base template of the FormFilterDisplay, before being filledFormFiltergetFormFilter()Return the FormFilter of the FilterDisplayjava.lang.StringgetParameterName()Return the name of the parameter associated to the FormFilterDisplay.intgetPosition()Return the position of the elementjava.lang.StringgetTemplate()Return the template of the FormFilterDisplayjava.lang.StringgetValue()Return the value of the the template of the FormFilterDisplayvoidsetFormFilter(FormFilter formFilter)Set the FormFilter associated to the FilterDisplayvoidsetPosition(int nPosition)Set the position of the element
-
-
-
Constructor Detail
-
FormFilterDisplaySearchedText
public FormFilterDisplaySearchedText(IFormSearchEngine formSearchEngine)
-
-
Method Detail
-
getBaseTemplate
public java.lang.String getBaseTemplate()
Return the base template of the FormFilterDisplay, before being filled- Specified by:
getBaseTemplatein interfaceIFormFilterDisplay- Overrides:
getBaseTemplatein classAbstractFormFilterDisplay- Returns:
- the base template of the FormFilterDisplay
-
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 filterlocale- The locale to use for i18n labels in the template
-
getValue
public java.lang.String getValue()
Return the value of the the template of the FormFilterDisplay- Specified by:
getValuein interfaceIFormFilterDisplay- Overrides:
getValuein classAbstractFormFilterDisplay- Returns:
- the value of the FormFilterDisplay
-
getTemplate
public java.lang.String getTemplate()
Return the template of the FormFilterDisplay- Specified by:
getTemplatein interfaceIFormFilterDisplay- Overrides:
getTemplatein classAbstractFormFilterDisplay- Returns:
- the template of the FormFilterDisplay
-
createFormParameters
public FormParameters createFormParameters(javax.servlet.http.HttpServletRequest request)
Create a FormParameters for the filter with the data in the given request- Specified by:
createFormParametersin interfaceIFilterable- Overrides:
createFormParametersin classAbstractFormFilterDisplay- Parameters:
request- The request to retrieve the data of the filter- Returns:
- the FormParameters for the given filter with the data of the request
-
setFormFilter
public void setFormFilter(FormFilter formFilter)
Set the FormFilter associated to the FilterDisplay- Specified by:
setFormFilterin interfaceIFilterable- Overrides:
setFormFilterin classAbstractFormFilterDisplay- Parameters:
formFilter- The FormFilter to associate to the FormFilterDisplay
-
getFormFilter
public FormFilter getFormFilter()
Return the FormFilter of the FilterDisplay- Specified by:
getFormFilterin interfaceIFilterable- Overrides:
getFormFilterin classAbstractFormFilterDisplay- Returns:
- the FormFilter of the FilterDisplay
-
getPosition
public int getPosition()
Return the position of the element- Specified by:
getPositionin interfaceIFormListPosition- Overrides:
getPositionin classAbstractFormFilterDisplay- Returns:
- the position of the element
-
setPosition
public void setPosition(int nPosition)
Set the position of the element- Specified by:
setPositionin interfaceIFormListPosition- Overrides:
setPositionin classAbstractFormFilterDisplay- Parameters:
nPosition- The position to set to the element
-
-