|
Bibi 19 Oct 2005 21:04 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ujap.bibi.Searcher
start using the search
method.
remember the result searcher object, and
get the resulting collection with its getResult()
method,
and find out the query
string (format: "Search: XYZ in fields: ABC") with its
getQuery()
method.
Nested Class Summary |
Nested classes inherited from class orbital.logic.functor.Predicate |
orbital.logic.functor.Predicate.Composite |
Nested classes inherited from class orbital.logic.functor.Functor |
orbital.logic.functor.Functor.Specification |
Field Summary | |
private boolean |
caseInsensitive
if search is case-sensitive or not |
private static boolean |
doSearch
set by the search dialog to indicate whether user cancelled search |
private String |
field
the name of the field to be searched |
private static String[] |
fieldNames
|
private static String |
filename
may never be null |
private String |
query
|
private static ResourceBundle |
resources
|
private Collection |
result
|
private boolean |
searchAllFields
whether all fields or only specific fields of the entry will be searched |
private String |
searchText
the text to be found |
Fields inherited from interface orbital.logic.functor.Predicate |
callTypeDeclaration |
Constructor Summary | |
Searcher()
|
Method Summary | |
boolean |
apply(Object o)
check whether the given object, an instance of Entry, fulfills the search criteria |
String |
getQuery()
|
Collection |
getResult()
|
private static void |
init()
|
static Searcher |
search(Collection c)
search through a collection of Entries and return a Collection of entries that fulfill the criteria. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface orbital.logic.functor.Predicate |
|
Methods inherited from interface orbital.logic.functor.Functor |
equals, hashCode, toString |
Field Detail |
private static final ResourceBundle resources
private boolean searchAllFields
private String field
private String searchText
private boolean caseInsensitive
private static boolean doSearch
private String query
private Collection result
private static String filename
private static String[] fieldNames
Constructor Detail |
public Searcher()
Method Detail |
public static Searcher search(Collection c)
public Collection getResult()
public String getQuery()
public boolean apply(Object o)
apply
in interface orbital.logic.functor.Predicate
private static void init()
|
Bibi 19 Oct 2005 21:04 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |