com.jidesoft.filter
Class DateOrCalendarFilter<T>
java.lang.Object
com.jidesoft.filter.AbstractFilter<T>
com.jidesoft.filter.DateOrCalendarFilter<T>
- All Implemented Interfaces:
- Filter<T>, ObjectGrouperSupport, Serializable, Cloneable
- Direct Known Subclasses:
- LastMonthFilter, LastQuarterFilter, LastWeekFilter, LastYearFilter, MonthFilter, NextMonthFilter, NextQuarterFilter, NextWeekFilter, NextYearFilter, QuarterFilter, ThisMonthFilter, ThisQuarterFilter, ThisWeekFilter, ThisYearFilter, TodayFilter, TomorrowFilter, YearFilter, YesterdayFilter
public abstract class DateOrCalendarFilter<T>
- extends AbstractFilter<T>
A Filter
returns false in isValueFiltered(Object)
only if the input value is the same date as
today's date.
- See Also:
- Serialized Form
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 |
DateOrCalendarFilter
public DateOrCalendarFilter()
isValueFiltered
public boolean isValueFiltered(T value)
- Checks if the value is allowed.
- Parameters:
value
- the value to check.
- Returns:
- true if the value is not empty and false if empty.
isDateFiltered
protected boolean isDateFiltered(Date date)
getExpectedDataTypes
public Class[] getExpectedDataTypes()
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 AbstractFilter<T>
- Parameters:
inputFilter
- the input filter
- Returns:
- true if the class of the two filters are same. Otherwise false.