Package fr.paris.lutece.util.datatable
Class FilterPanel
- java.lang.Object
-
- fr.paris.lutece.util.datatable.FilterPanel
-
- All Implemented Interfaces:
java.io.Serializable
public class FilterPanel extends java.lang.Object implements java.io.SerializableClass to manage filter panel- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPARAM_FILTER_PANEL_PREFIXstatic java.lang.StringPARAM_RESET_FILTERSstatic java.lang.StringPARAM_UPDATE_FILTERS
-
Constructor Summary
Constructors Constructor Description FilterPanel(java.lang.String strFormUrl)Creates a new FilterPanel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDropDownListFilter(java.lang.String strParameterName, java.lang.String strFilterLabel, ReferenceList refList)Add a drop down list filter.voidaddFilter(DataTableFilterType filterType, java.lang.String strParameterName, java.lang.String strFilterLabel)Add a filter to this filter paneljava.lang.StringgetFormUrl()Get the url of the action of the formjava.util.List<DataTableFilter>getListFilter()Get the list of filters of the FilterPanelvoidsetFormUrl(java.lang.String strFormUrl)Set the url of the action of the form
-
-
-
Field Detail
-
PARAM_FILTER_PANEL_PREFIX
public static final java.lang.String PARAM_FILTER_PANEL_PREFIX
- See Also:
- Constant Field Values
-
PARAM_UPDATE_FILTERS
public static final java.lang.String PARAM_UPDATE_FILTERS
- See Also:
- Constant Field Values
-
PARAM_RESET_FILTERS
public static final java.lang.String PARAM_RESET_FILTERS
- See Also:
- Constant Field Values
-
-
Method Detail
-
addFilter
public void addFilter(DataTableFilterType filterType, java.lang.String strParameterName, java.lang.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(java.lang.String strParameterName, java.lang.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
public java.lang.String getFormUrl()
Get the url of the action of the form- Returns:
- The url of the action of the form
-
setFormUrl
public void setFormUrl(java.lang.String strFormUrl)
Set the url of the action of the form- Parameters:
strFormUrl- The url of the action of the form
-
getListFilter
public java.util.List<DataTableFilter> getListFilter()
Get the list of filters of the FilterPanel- Returns:
- The list of filters of the FilterPanel
-
-