JIDE 3.5.15

com.jidesoft.grid
Class IFilterableTableModel.FilterItem

java.lang.Object
  extended by com.jidesoft.filter.AbstractFilter
      extended by com.jidesoft.grid.IFilterableTableModel.FilterItem
All Implemented Interfaces:
Filter, ObjectGrouperSupport, Serializable, Cloneable
Enclosing interface:
IFilterableTableModel

public static class IFilterableTableModel.FilterItem
extends AbstractFilter

FilterItem contains a column and a filter for that column. Internally all filter are added as FilterItem in IFilterableTableModel.

See Also:
Serialized Form

Field Summary
 int column
           
 Filter filter
           
 
Fields inherited from interface com.jidesoft.filter.Filter
ALL, CUSTOM, NULL, SEPARATOR
 
Constructor Summary
IFilterableTableModel.FilterItem()
           
IFilterableTableModel.FilterItem(Filter filter)
           
IFilterableTableModel.FilterItem(int column, Filter filter)
           
 
Method Summary
 Object clone()
          Creates and returns a copy of the filter.
 boolean equals(Object o)
           
 int getColumn()
           
 Filter getFilter()
           
 int hashCode()
           
 boolean isValueFiltered(Object value)
          Checks to see if the value should be filtered.
 void setColumn(int column)
           
 void setFilter(Filter filter)
           
 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.AbstractFilter
addFilterListener, 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, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

column

public int column

filter

public Filter filter
Constructor Detail

IFilterableTableModel.FilterItem

public IFilterableTableModel.FilterItem()

IFilterableTableModel.FilterItem

public IFilterableTableModel.FilterItem(Filter filter)

IFilterableTableModel.FilterItem

public IFilterableTableModel.FilterItem(int column,
                                        Filter filter)
Method Detail

getColumn

public int getColumn()

setColumn

public void setColumn(int column)

getFilter

public Filter getFilter()

setFilter

public void setFilter(Filter filter)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isValueFiltered

public boolean isValueFiltered(Object value)
Description copied from interface: Filter
Checks to see if the value should be filtered.

Parameters:
value - the value to filter
Returns:
true if the value should be filtered. Otherwise false.

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
Overrides:
stricterThan in class AbstractFilter
Parameters:
inputFilter - the input filter
Returns:
TRUE if the column of both filter are the same and this filter is stricter than the input filter. Otherwise false.

clone

public Object clone()
             throws CloneNotSupportedException
Description copied from class: AbstractFilter
Creates and returns a copy of the filter.

Specified by:
clone in interface Filter
Overrides:
clone in class AbstractFilter
Returns:
a cloned copy of the filter.
Throws:
CloneNotSupportedException - if the cloning of the filter is not supported.

JIDE 3.5.15