JIDE 3.5.15

com.jidesoft.grid
Class QuickTableFilterField.FieldTableFilter

java.lang.Object
  extended by com.jidesoft.filter.AbstractFilter<T>
      extended by com.jidesoft.grid.AbstractFilter<T>
          extended by com.jidesoft.grid.AbstractTableFilter
              extended by com.jidesoft.grid.QuickTableFilterField.FieldTableFilter
All Implemented Interfaces:
Filter, ObjectGrouperSupport, TableFilter, Serializable, Cloneable
Enclosing class:
QuickTableFilterField

protected class QuickTableFilterField.FieldTableFilter
extends AbstractTableFilter

This is a filter used by QuickTableFilterField.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.jidesoft.filter.Filter
ALL, CUSTOM, NULL, SEPARATOR
 
Constructor Summary
protected QuickTableFilterField.FieldTableFilter()
           
 
Method Summary
 Set<Integer> getActualSearchingColumnIndices()
           
 String getSearchingText()
           
 boolean isConfigureChanged()
          Get the flag indicating if the configure like case sensitive of the QuickFilterField is changed.
 boolean isValueFiltered(Object value)
          Checks to see if the value should be filtered.
 void setConfigureChanged(boolean configureChanged)
          Set the flag indicating if the configure like case sensitive of the QuickFilterField is changed.
 void setSearchingText(String text)
           
 boolean stricterThan(Filter inputFilter)
          Checks if this filter is stricter than the input filter.
 
Methods inherited from class com.jidesoft.grid.AbstractTableFilter
getColumnIndex, getRowIndex, setColumnIndex, setRowIndex
 
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
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jidesoft.filter.Filter
addFilterListener, clone, getFilterFactory, getFilterFactoryName, getName, getPreference, isEnabled, removeFilterListener, setEnabled, setFilterFactory, setFilterFactoryName, setName, setPreference
 

Constructor Detail

QuickTableFilterField.FieldTableFilter

protected QuickTableFilterField.FieldTableFilter()
Method Detail

getSearchingText

public String getSearchingText()

setSearchingText

public void setSearchingText(String text)

isConfigureChanged

public boolean isConfigureChanged()
Get the flag indicating if the configure like case sensitive of the QuickFilterField is changed.

This flag will be set to true automatically every time the customer change the settings by UI then switch it back to false right after QuickFilterField.applyFilter() is invoked.

Returns:
the flag

setConfigureChanged

public void setConfigureChanged(boolean configureChanged)
Set the flag indicating if the configure like case sensitive of the QuickFilterField is changed.

Parameters:
configureChanged - the flag

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)
Description copied from class: AbstractFilter
Checks if this filter is stricter than the input filter.

This is a default method that return false. The reason is that if you forgot to override this method, the filter will apply to all datum so it is safe for you although the performance will a little bit slower. To improve the performance of your filter, you can override this method to return true if the input filter is less stricter than this filter to avoid unnecessary filtering.

Specified by:
stricterThan in interface Filter
Overrides:
stricterThan in class AbstractFilter
Parameters:
inputFilter - the input filter
Returns:
true if this filter stricter than the input filter. Otherwise false.

getActualSearchingColumnIndices

public Set<Integer> getActualSearchingColumnIndices()

JIDE 3.5.15