JIDE 3.5.15

com.jidesoft.filter
Class MonthFilter<T>

java.lang.Object
  extended by com.jidesoft.filter.AbstractFilter<T>
      extended by com.jidesoft.filter.DateOrCalendarFilter<T>
          extended by com.jidesoft.filter.MonthFilter<T>
All Implemented Interfaces:
Filter<T>, ObjectGrouperSupport, Serializable, Cloneable

public class MonthFilter<T>
extends DateOrCalendarFilter<T>

A Filter returns false in DateOrCalendarFilter.isValueFiltered(Object) only if the input value is within in the month as specified. It will return false if the Calendar or the Date in that month, regardless the year.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.jidesoft.filter.Filter
ALL, CUSTOM, NULL, SEPARATOR
 
Constructor Summary
MonthFilter()
          Creates a MonthFilter.
MonthFilter(int month)
          Creates a MonthFilter for a particular month.
 
Method Summary
 boolean equals(Object obj)
           
 int getMonth()
           
 void setMonth(int month)
           
 boolean stricterThan(Filter inputFilter)
          Check if this filter is stricter than the input filter while the two filters are with the same class.
 
Methods inherited from class com.jidesoft.filter.DateOrCalendarFilter
getExpectedDataTypes, isDateFiltered, isValueFiltered
 
Methods inherited from class com.jidesoft.filter.AbstractFilter
addFilterListener, clone, fireFilterChanged, fireFilterContentChanged, fireFilterDisabled, fireFilterEnabled, fireFilterNameChanged, getConditionString, getFilterFactory, getFilterFactoryName, getFilterListeners, getName, getObjectGrouper, getObjectGrouperName, getPreference, isEnabled, isFilterValid, removeFilterListener, setEnabled, setFilterFactory, setFilterFactoryName, setName, setObjectGrouper, setObjectGrouperName, setPreference
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonthFilter

public MonthFilter()
Creates a MonthFilter. The actual month will be set later using setMonth method.


MonthFilter

public MonthFilter(int month)
Creates a MonthFilter for a particular month.

Parameters:
month - the month, starting from 0 for January. You can use the value defined in Calendar such as Calendar.JANUARY, Calendar.FEBRUARY, etc.
Method Detail

getMonth

public int getMonth()

setMonth

public void setMonth(int month)

stricterThan

public boolean stricterThan(Filter inputFilter)
Check if this filter is stricter than the input filter while the two filters are with the same class.

Specified by:
stricterThan in interface Filter<T>
Overrides:
stricterThan in class DateOrCalendarFilter<T>
Parameters:
inputFilter - the input filter
Returns:
true if the month of the two filters are same. Otherwise false.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

JIDE 3.5.15