Class FilterPanel

java.lang.Object
fr.paris.lutece.util.datatable.FilterPanel
All Implemented Interfaces:
Serializable

public class FilterPanel extends Object implements Serializable
Class to manage filter panel
See Also:
  • Field Details

  • Constructor Details

    • FilterPanel

      public FilterPanel(String strFormUrl)
      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, use addDropDownListFilter instead
      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 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 filter
      refList - Reference list containing data of the drop down list
    • getFormUrl

      public String getFormUrl()
      Get the url of the action of the form
      Returns:
      The url of the action of the form
    • setFormUrl

      public void setFormUrl(String strFormUrl)
      Set the url of the action of the form
      Parameters:
      strFormUrl - The url of the action of the form
    • getListFilter

      public List<DataTableFilter> getListFilter()
      Get the list of filters of the FilterPanel
      Returns:
      The list of filters of the FilterPanel