|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--SearchTool
This class is an ancilla to the ArborPanel; it takes care of search operations. Once upon a time, everything was monolithic, but I'm taking care to refactor more sensibly. Arboreal (unlike some others!) is a project with a future.
| Inner Class Summary | |
static class |
SearchTool.JComboBoxPlus
A JComboBox that stores some state information. |
| Constructor Summary | |
SearchTool(ArborPanel panel)
|
|
| Method Summary | |
void |
displayNextHit()
Selects the node containing the next hit and makes it visible. |
void |
findDialog()
Pops up a "Find" dialog. |
java.lang.String |
getFindString()
Returns the search string. |
java.lang.String |
getLangID()
Returns the language ID for the current search. |
Language |
getLanguage()
Returns the language for the current search. |
int |
getType()
Returns the current search type. |
boolean |
isAccentless()
Returns true if the search is "accentless," i.e., if diacritics are to be ignored. |
boolean |
isGlobal()
Returns true if the find is global (all results displayed in a new ContentRenderFrame. |
boolean |
isLemmatized()
Returns true if the search is for lemmatized words (lexemes). |
boolean |
isOrthNormal()
Returns true if the orthography should be normalized for the search. |
boolean |
isRegexSearch()
Returns true if the current search is for a regular expression. |
void |
magicFind(java.lang.String findString,
java.lang.String lang,
ContentOwner owner)
This method provides an automatic, non-interactive front-end to the find facility; it allows methods in other classes to initiate a search. |
boolean |
testLangID(java.lang.String lang)
Tests a given language ID against the identifier and aliases for the current search. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SearchTool(ArborPanel panel)
| Method Detail |
public void findDialog()
public void magicFind(java.lang.String findString,
java.lang.String lang,
ContentOwner owner)
findString - string supplied elsewherelang - language for search stringowner - the owner of the text text to be searchedpublic int getType()
public java.lang.String getLangID()
public boolean testLangID(java.lang.String lang)
lang - language identifier to testpublic Language getLanguage()
public boolean isRegexSearch()
public boolean isOrthNormal()
public boolean isLemmatized()
public boolean isAccentless()
public boolean isGlobal()
ContentRenderFrame.public void displayNextHit()
public java.lang.String getFindString()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||