public class SearchWindowController
extends java.lang.Object
Constructor and Description |
---|
SearchWindowController(SearchMode mode) |
Modifier and Type | Method and Description |
---|---|
void |
addWindowListener(java.awt.event.WindowListener listener) |
void |
displayErrorRB(java.lang.Throwable ex,
java.lang.String errorKey,
java.lang.Object... params)
Display message dialog with the error as message
|
void |
displaySearchResult(Searcher searcher)
Show search result for user
|
void |
dispose() |
void |
focusSearchField()
Focus the search field and select the current query text
|
SearchMode |
getMode() |
java.lang.String |
getViewerSelection()
Get the currently selected text in the search results pane
|
javax.swing.JFrame |
getWindow()
Get the search window frame
|
void |
insertIntoActiveField(java.lang.String text)
Insert the specified text into the currently active (focused) search field: either Search or Replace
|
void |
makeVisible(java.lang.String query)
Make Search window visible on screen, with optional initial query (may be
null).
|
void |
replaceCurrentFieldText(java.lang.String text)
Replace the text of the currently active (focused) search field: either Search or Replace
|
void |
resetOptions()
Reset search options to their default values.
|
void |
setSearchText(java.lang.String text)
Set the content of the search query
|
public SearchWindowController(SearchMode mode)
public SearchMode getMode()
public void resetOptions()
public void displaySearchResult(Searcher searcher)
public void dispose()
public void makeVisible(java.lang.String query)
query
- Initial query string (may be empty or null)public java.lang.String getViewerSelection()
null
if nonepublic void setSearchText(java.lang.String text)
text
- The query textpublic void focusSearchField()
public void insertIntoActiveField(java.lang.String text)
text
- The text to insertpublic void replaceCurrentFieldText(java.lang.String text)
text
- The text to setpublic javax.swing.JFrame getWindow()
public void addWindowListener(java.awt.event.WindowListener listener)
public void displayErrorRB(java.lang.Throwable ex, java.lang.String errorKey, java.lang.Object... params)
ex
- exception to showerrorKey
- error message key in resource bundleparams
- error text parameters