public class FilterPanel extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_FILTER_PANEL_PREFIX |
static String |
PARAM_RESET_FILTERS |
static String |
PARAM_UPDATE_FILTERS |
Constructor and Description |
---|
FilterPanel(String strFormUrl)
Creates a new FilterPanel.
|
Modifier and Type | Method and Description |
---|---|
void |
addDropDownListFilter(String strParameterName,
String strFilterLabel,
ReferenceList refList)
Add a drop down list filter.
|
void |
addFilter(DataTableFilterType filterType,
String strParameterName,
String strFilterLabel)
Add a filter to this filter panel
|
String |
getFormUrl()
Get the url of the action of the form
|
List<DataTableFilter> |
getListFilter()
Get the list of filters of the FilterPanel
|
void |
setFormUrl(String strFormUrl)
Set the url of the action of the form
|
public static final String PARAM_FILTER_PANEL_PREFIX
public static final String PARAM_UPDATE_FILTERS
public static final String PARAM_RESET_FILTERS
public FilterPanel(String strFormUrl)
strFormUrl
- The url to validate the form of filterspublic void addFilter(DataTableFilterType filterType, String strParameterName, String strFilterLabel)
filterType
- data type of the filter. For drop down list, use addDropDownListFilter
insteadstrParameterName
- Name of the parameter of the object to filter.strFilterLabel
- Label describing the filterpublic void addDropDownListFilter(String strParameterName, String strFilterLabel, ReferenceList refList)
strParameterName
- Name of the parameter of the object to filter.strFilterLabel
- Label describing the filterrefList
- Reference list containing data of the drop down listpublic String getFormUrl()
public void setFormUrl(String strFormUrl)
strFormUrl
- The url of the action of the formpublic List<DataTableFilter> getListFilter()
Copyright © 2020 City of Paris. All rights reserved.