Class FilterPanel

  • All Implemented Interfaces:
    java.io.Serializable

    public class FilterPanel
    extends java.lang.Object
    implements java.io.Serializable
    Class to manage filter panel
    See Also:
    Serialized Form
    • 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
      void addDropDownListFilter​(java.lang.String strParameterName, java.lang.String strFilterLabel, ReferenceList refList)
      Add a drop down list filter.
      void addFilter​(DataTableFilterType filterType, java.lang.String strParameterName, java.lang.String strFilterLabel)
      Add a filter to this filter panel
      java.lang.String getFormUrl()
      Get the url of the action of the form
      java.util.List<DataTableFilter> getListFilter()
      Get the list of filters of the FilterPanel
      void setFormUrl​(java.lang.String strFormUrl)
      Set the url of the action of the form
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • FilterPanel

        public FilterPanel​(java.lang.String strFormUrl)
        Creates a new FilterPanel.
        Parameters:
        strFormUrl - The url to validate the form of filters
    • 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, 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​(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 filter
        refList - 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