JIDE 3.5.15

com.jidesoft.grid
Class QuickFilterField.FieldFilter

java.lang.Object
  extended by com.jidesoft.filter.AbstractFilter
      extended by com.jidesoft.grid.QuickFilterField.FieldFilter
All Implemented Interfaces:
Filter, ObjectGrouperSupport, Serializable, Cloneable
Enclosing class:
QuickFilterField

public class QuickFilterField.FieldFilter
extends AbstractFilter

This class is a subclass of Filter for QuickFilterField internal use.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.jidesoft.filter.Filter
ALL, CUSTOM, NULL, SEPARATOR
 
Constructor Summary
QuickFilterField.FieldFilter()
           
 
Method Summary
 String getSearchingText()
          Get current searching text.
 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)
          Set current searching text.
 boolean stricterThan(Filter inputFilter)
          Checks if this filter is stricter than the input filter.
 
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
 

Constructor Detail

QuickFilterField.FieldFilter

public QuickFilterField.FieldFilter()
Method Detail

getSearchingText

public String getSearchingText()
Get current searching text.

Returns:
the searching text in this filter.

setSearchingText

public void setSearchingText(String text)
Set current searching text.

Parameters:
text - the searching text in this filter

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.

JIDE 3.5.15