|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FilterFactory
FilterFactory
is an interface responsible for creating filters through user interface. It can describe a
filter using string through getConditionString(java.util.Locale)
method. It can also describe the data it
expected using getExpectedDataTypes()
. Both methods make it possible for a user interface to present some
appropriate input controls to users. Once the data needed by the filter is completed, then createFilter(Object...)
can be used to create the filter.
Method Summary | |
---|---|
Filter |
createFilter(Object... objects)
Creates the filter. |
String |
getConditionString(Locale locale)
Gets the filter condition string. |
Class[] |
getExpectedDataTypes()
Gets the expected data types in order to create the filter. |
String |
getName()
Gets the FilterFactory name. |
Method Detail |
---|
Filter createFilter(Object... objects)
objects
- the data needed by the filter in order to create it. For example, EqualFilter will need a value to
compare the equality. BetweenFilter will need two values to form a range so that it can tell if
the input value is falls into the range.
String getConditionString(Locale locale)
locale
- the Locale
String getName()
FilterFactory
name. This name is used in FilterFactoryManager.findFilterFactoryByName(Class,
String)
method.
FilterFactory
name.Class[] getExpectedDataTypes()
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |