|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jidesoft.filter.AbstractFilter<T>
com.jidesoft.filter.EqualFilter<T>
public class EqualFilter<T>
A Filter returns false in isValueFiltered(Object) only if the input value equals the specified
value.
| Field Summary | |
|---|---|
protected T |
_value
|
| Fields inherited from interface com.jidesoft.filter.Filter |
|---|
ALL, CUSTOM, NULL, SEPARATOR |
| Constructor Summary | |
|---|---|
EqualFilter()
Creates an EqualFilter. |
|
EqualFilter(String name,
T value)
Creates an EqualFilter. |
|
EqualFilter(T value)
Creates an EqualFilter. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getName()
Gets the name of the filter. |
String |
getOperator()
|
String |
getPreference(Class<?> clazz,
ConverterContext converterContext)
Gets the preference while persisting this filter. |
T |
getValue()
Sets the only allowed value. |
boolean |
isValueFiltered(T value)
Checks if the value is allowed. |
Object[] |
setPreference(String prefString,
Class<?> clazz,
ConverterContext converterContext)
Sets the preference to load the preference string back to this filter. |
void |
setValue(T value)
Sets the value. |
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 java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected T _value
| Constructor Detail |
|---|
public EqualFilter()
public EqualFilter(T value)
value - the value that will not be filtered
public EqualFilter(String name,
T value)
name - name of the filtervalue - the value that will not be filtered| Method Detail |
|---|
public boolean isValueFiltered(T value)
isValueFiltered in interface Filter<T>value - the value to check.
public void setValue(T value)
value - the new value.public T getValue()
public String getOperator()
getOperator in interface SqlFilterSupportpublic String getName()
Filter
getName in interface Filter<T>getName in class AbstractFilter<T>public boolean stricterThan(Filter inputFilter)
stricterThan in interface Filter<T>stricterThan in class AbstractFilter<T>inputFilter - the input filter
public boolean equals(Object obj)
equals in class Object
public String getPreference(Class<?> clazz,
ConverterContext converterContext)
Filter
getPreference in interface Filter<T>getPreference in class AbstractFilter<T>clazz - the class type to convert the values inside the filter to stringconverterContext - the converter context to convert the values inside the filter to string
public Object[] setPreference(String prefString,
Class<?> clazz,
ConverterContext converterContext)
Filter
setPreference in interface Filter<T>setPreference in class AbstractFilter<T>prefString - the preference stringclazz - the class type to convert the values inside the filter to stringconverterContext - the converter context to convert the values inside the filter to string
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||