com.jidesoft.filter
Class MonthFilter<T>
java.lang.Object
com.jidesoft.filter.AbstractFilter<T>
com.jidesoft.filter.DateOrCalendarFilter<T>
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
Constructor Summary |
MonthFilter()
Creates a MonthFilter. |
MonthFilter(int month)
Creates a MonthFilter for a particular month. |
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 |
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.
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