|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.0) E13403-08 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.ui.search.TextComponentSearchSupport
public final class TextComponentSearchSupport
Add the ability to do a find within a text component. The 'find' will search the text in a specified direction and highlight text as it finds it. The search can either be triggered manually via search(...), or by a bringing up a mini search dialog via showSearchPrompt()
Constructor Summary | |
---|---|
TextComponentSearchSupport(javax.swing.text.JTextComponent component)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextComponentSearchSupport(javax.swing.text.JTextComponent component)
Method Detail |
---|
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()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.0) E13403-08 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |