|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SearchDefaults
A supplier of word search criteria defaults.
In the find dialog
,
users can construct search criteria. The default
values for the criteria added by the user are derived from the object
that was "focused" when the user opened the dialog.
For example, suppose a word is selected in a work panel, and the the user brings up the find dialog. The default values for the search criteria in the dialog are supplied by the word. If the user adds a spelling criterion, the initial value of the spelling text field is the spelling of the word. If the user adds a lemma criterion, the initial value of the lemma field is the lemma of the first part of the word. If the user adds a work criterion, the initally selected work is the work containing the word. And so on.
In this example, the
Word
class implements the SearchDefaults
interface. getSearchDefault(Spelling.class) returns the spelling of
the word. getSearchDefault(Lemma.class) returns the lemma of the
first part of the word. getSearchDefault(Work.class) returns the
work containing the word. And so on.
Method Summary | |
---|---|
SearchCriterion |
getSearchDefault(java.lang.Class cls)
Gets a search criterion default value. |
Method Detail |
---|
SearchCriterion getSearchDefault(java.lang.Class cls)
cls
- Model class of search criterion.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |