JIDE 3.5.15

com.jidesoft.filter
Class QuarterFilter<T>

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

public class QuarterFilter<T>
extends DateOrCalendarFilter<T>

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.jidesoft.filter.Filter
ALL, CUSTOM, NULL, SEPARATOR
 
Constructor Summary
QuarterFilter()
          Creates a QuarterFilter.
QuarterFilter(int quarter)
          Creates a QuarterFilter for a particular quarter.
 
Method Summary
 boolean equals(Object obj)
           
 int getQuarter()
           
 void setQuarter(int quarter)
           
 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

QuarterFilter

public QuarterFilter()
Creates a QuarterFilter. The quarter will be set later using setQuarter method.


QuarterFilter

public QuarterFilter(int quarter)
Creates a QuarterFilter for a particular quarter.

Parameters:
quarter - the quarter, starting from 1 for the first quarter (including January, February, and March).
Method Detail

getQuarter

public int getQuarter()

setQuarter

public void setQuarter(int quarter)

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 quarter of the two filters are same. Otherwise false.

equals

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

JIDE 3.5.15