public abstract class AbstractRecordFilterDisplay extends Object implements IRecordFilterDisplay
| 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 |
|---|
AbstractRecordFilterDisplay() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
buildTemplate(javax.servlet.http.HttpServletRequest request)
Build the Template of the RecordFilterDisplay
|
RecordParameters |
createRecordParameters(javax.servlet.http.HttpServletRequest request)
Create a RecordParameters 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
|
int |
getPosition()
Return the position of the element
|
IRecordFilter |
getRecordFilter()
Return the RecordFilter of the FilterDisplay
|
protected String |
getRecordFilterDisplayLabel()
Return the label of the RecordFilter from its configuration
|
String |
getTemplate()
Return the template of the RecordFilterDisplay
|
String |
getValue()
Return the value of the RecordFilterDisplay
|
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 |
setPosition(int nPosition)
Set the position of the element
|
void |
setRecordFilter(IRecordFilter recordFilter)
Set the RecordFilter associated to the FilterDisplay
|
protected void |
setTemplate(String strTemplate)
Set the template
|
protected void |
setValue(String strValue)
Set the value for the RecordFilterDisplay
|
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 IRecordFilterDisplayprotected void setValue(String strValue)
strValue - The value to set to the RecordFilterDisplaypublic int getPosition()
getPosition in interface IRecordListPositionpublic void setPosition(int nPosition)
setPosition in interface IRecordListPositionnPosition - The position to set to the elementpublic String getTemplate()
getTemplate in interface IRecordFilterDisplayprotected void setTemplate(String strTemplate)
strTemplate - The template to setto the filterpublic IRecordFilter getRecordFilter()
getRecordFilter in interface IFilterablepublic void setRecordFilter(IRecordFilter recordFilter)
setRecordFilter in interface IFilterablerecordFilter - The RecordFilter to associate to the RecordFilterDisplaypublic abstract void buildTemplate(javax.servlet.http.HttpServletRequest request)
buildTemplate in interface IRecordFilterDisplayrequest - 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 RecordParameters createRecordParameters(javax.servlet.http.HttpServletRequest request)
createRecordParameters 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 getRecordFilterDisplayLabel()
Copyright © 2018 City of Paris. All rights reserved.