Package fr.paris.lutece.util.datatable
Class FilterPanel
java.lang.Object
fr.paris.lutece.util.datatable.FilterPanel
- All Implemented Interfaces:
Serializable
Class to manage filter panel
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDropDownListFilter(String strParameterName, String strFilterLabel, ReferenceList refList) Add a drop down list filter.voidaddFilter(DataTableFilterType filterType, String strParameterName, String strFilterLabel) Add a filter to this filter panelGet the url of the action of the formGet the list of filters of the FilterPanelvoidsetFormUrl(String strFormUrl) Set the url of the action of the form
-
Field Details
-
PARAM_FILTER_PANEL_PREFIX
- See Also:
-
PARAM_UPDATE_FILTERS
- See Also:
-
PARAM_RESET_FILTERS
- See Also:
-
-
Constructor Details
-
FilterPanel
Creates a new FilterPanel.- Parameters:
strFormUrl- The url to validate the form of filters
-
-
Method Details
-
addFilter
public void addFilter(DataTableFilterType filterType, String strParameterName, String strFilterLabel) Add a filter to this filter panel- Parameters:
filterType- data type of the filter. For drop down list, useaddDropDownListFilterinsteadstrParameterName- Name of the parameter of the object to filter.
For example, if this filter should be applied on the parameter "title" of a class named "Data", then the value of the parameter strParameterName should be "title".strFilterLabel- Label describing the filter
-
addDropDownListFilter
public void addDropDownListFilter(String strParameterName, String strFilterLabel, ReferenceList refList) Add a drop down list filter.- Parameters:
strParameterName- Name of the parameter of the object to filter.
For example, if this filter should be applied on the parameter "title" of a class named "Data", then the value of the parameter strParameterName should be "title".strFilterLabel- Label describing the filterrefList- Reference list containing data of the drop down list
-
getFormUrl
Get the url of the action of the form- Returns:
- The url of the action of the form
-
setFormUrl
Set the url of the action of the form- Parameters:
strFormUrl- The url of the action of the form
-
getListFilter
Get the list of filters of the FilterPanel- Returns:
- The list of filters of the FilterPanel
-