public final class TextComponentSearchSupport
extends java.lang.Object
Constructor and Description |
---|
TextComponentSearchSupport(javax.swing.text.JTextComponent component) |
Modifier and Type | Method and Description |
---|---|
void |
clearHighlighting()
remove any highlighting previously added to the editor via a find
|
MiniSearchDialog |
getMiniSearchDialog()
This is provided as a way to set a help topic id on the
MiniSearchDialog
The way this can be coded is as follows:
HelpSystem.getHelpSystem().registerTopic(searchSupport.getMiniSearchDialog().getBasePanel(),
"f1_idedsearchmessages_html"); //NOTRANS
Ideally we'd have a call like MiniSearchDialog.setHelpID(String helpId)
but that would mean uic module would have a dependency on ide module which would be a
circular dependency. |
void |
removeSearchSupport()
Remove the search ability for a text component
|
void |
search(SearchEvent.Direction direction,
java.lang.String text)
Search for the given text in the given direction
|
void |
setEndOfBufferMessage(java.lang.String endOfBufferMessage) |
void |
setNotFoundMessage(java.lang.String notFoundMessage) |
void |
setSearchBackwardsTitle(java.lang.String title) |
void |
setSearchForwardsTitle(java.lang.String title) |
void |
setStartOfBufferMessage(java.lang.String startOfBufferMessage) |
void |
setWrappedMessage(java.lang.String wrappedMessage) |
void |
showSearchPrompt() |
public TextComponentSearchSupport(javax.swing.text.JTextComponent component)
public void removeSearchSupport()
public void setSearchForwardsTitle(java.lang.String title)
public void setSearchBackwardsTitle(java.lang.String title)
public void setNotFoundMessage(java.lang.String notFoundMessage)
public void setWrappedMessage(java.lang.String wrappedMessage)
public void setStartOfBufferMessage(java.lang.String startOfBufferMessage)
public void setEndOfBufferMessage(java.lang.String endOfBufferMessage)
public MiniSearchDialog getMiniSearchDialog()
MiniSearchDialog
The way this can be coded is as follows:
HelpSystem.getHelpSystem().registerTopic(searchSupport.getMiniSearchDialog().getBasePanel(),
"f1_idedsearchmessages_html"); //NOTRANS
Ideally we'd have a call like MiniSearchDialog.setHelpID(String helpId)
but that would mean uic module would have a dependency on ide module which would be a
circular dependency.public void showSearchPrompt()
public void search(SearchEvent.Direction direction, java.lang.String text)
direction
- text
- public void clearHighlighting()