JIDE 3.5.15

com.jidesoft.filter
Class FilterUtils

java.lang.Object
  extended by com.jidesoft.filter.FilterUtils

public class FilterUtils
extends Object

The utility class dealing with filters.

Since:
3.4.5

Constructor Summary
FilterUtils()
           
 
Method Summary
static String getFilterPreference(Filter filter, Class<?> type, ConverterContext converterContext)
          Gets the filter preference string from the filter
static Filter setFilterPreference(String preference, Class<?> type, ConverterContext converterContext)
          Creates a filter from the filter preference string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterUtils

public FilterUtils()
Method Detail

setFilterPreference

public static Filter setFilterPreference(String preference,
                                         Class<?> type,
                                         ConverterContext converterContext)
Creates a filter from the filter preference string.

Parameters:
preference - the preference string
type - the class type the filter will work on
converterContext - the converter context to help converting the string back to the value
Returns:
the new Filter instance.

getFilterPreference

public static String getFilterPreference(Filter filter,
                                         Class<?> type,
                                         ConverterContext converterContext)
Gets the filter preference string from the filter

Parameters:
filter - the filter
type - the class type the filter works on
converterContext - the converter context to help converting the string back to the value
Returns:
the preference string.

JIDE 3.5.15