public abstract class AbstractFormFilterDisplay extends Object implements IFormFilterDisplay
| Modifier and Type | Field and Description |
|---|---|
protected static String |
FILTER_TEMPLATE_NAME |
protected static String |
MARK_FILTER_LIST |
protected static String |
MARK_FILTER_LIST_VALUE |
protected static String |
MARK_FILTER_NAME |
| Constructor and Description |
|---|
AbstractFormFilterDisplay() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
buildTemplate(javax.servlet.http.HttpServletRequest request)
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
|
protected abstract Map<String,Object> |
getFilterDisplayMapValues(javax.servlet.http.HttpServletRequest request)
Get the map of all parameter names and values used by the filter
|
IFormFilter |
getFormFilter()
Return the FormFilter of the FilterDisplay
|
protected String |
getFormFilterDisplayLabel()
Return the label of the FormFilter from its configuration
|
int |
getPosition()
Return the position of the element
|
String |
getTemplate()
Return the template of the FormFilterDisplay
|
String |
getValue()
Return the value of the the template of the FormFilterDisplay
|
protected void |
manageFilterTemplate(javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.util.ReferenceList referenceList,
String strParameterName)
Build the filter template with the given list for the specified parameter and set it to the filter
|
void |
setFormFilter(IFormFilter formFilter)
Set the FormFilter associated to the FilterDisplay
|
void |
setPosition(int nPosition)
Set the position of the element
|
protected void |
setTemplate(String strTemplate)
Set the template
|
protected void |
setValue(String strValue)
Set the value for the FormFilterDisplay
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParameterNameprotected static final String FILTER_TEMPLATE_NAME
protected static final String MARK_FILTER_LIST
protected static final String MARK_FILTER_NAME
protected static final String MARK_FILTER_LIST_VALUE
public String getValue()
getValue in interface IFormFilterDisplayprotected void setValue(String strValue)
strValue - The value to set to the FormFilterDisplaypublic int getPosition()
getPosition in interface IFormListPositionpublic void setPosition(int nPosition)
setPosition in interface IFormListPositionnPosition - The position to set to the elementpublic String getTemplate()
getTemplate in interface IFormFilterDisplayprotected void setTemplate(String strTemplate)
strTemplate - The template to set to the filterpublic IFormFilter getFormFilter()
getFormFilter in interface IFilterablepublic void setFormFilter(IFormFilter formFilter)
setFormFilter in interface IFilterableformFilter - The FormFilter to associate to the FormFilterDisplaypublic abstract void buildTemplate(javax.servlet.http.HttpServletRequest request)
buildTemplate in interface IFormFilterDisplayrequest - The HttpServletRequest to use to build the template of the filterprotected abstract Map<String,Object> getFilterDisplayMapValues(javax.servlet.http.HttpServletRequest request)
request - The request used to retrieve the informations of the filterpublic FormParameters createFormParameters(javax.servlet.http.HttpServletRequest request)
createFormParameters in interface IFilterablerequest - The request to retrieve the data of the filterprotected void manageFilterTemplate(javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.util.ReferenceList referenceList,
String strParameterName)
request - The HttpServletRequest to use for building the templatereferenceList - The ReferenceList to use to populate the filter templatestrParameterName - The name of the parameter to attached the value of the ReferenceListprotected String getFormFilterDisplayLabel()
Copyright © 2018 City of Paris. All rights reserved.