|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.mms.browser.JEditorPaneFinderHandler
Handles a find operation on a JEditorPane
.
Constructor Summary | |
JEditorPaneFinderHandler(JEditorPane editor_pane)
Constructor. |
Method Summary | |
void |
cancel()
Indicates the find operation has been cancelled on the gui. |
boolean |
doFind()
Look for the next occurrence of the search phrase either as whole word or as part of a word, depending on the current dialog setting. |
void |
find()
Initiate a find or find next operation, whatever applies. |
void |
init()
Initialize a find operation by reading all relevant settings and locking the dialog window. |
void |
setDialog(FindDialog find_dialog)
Sets the JDialog for the handler. |
void |
setEditor(JEditorPane editor)
Set the JEditorPane holding the document to be searched |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JEditorPaneFinderHandler(JEditorPane editor_pane)
editor_pane
- JEditorPane
Method Detail |
public void setDialog(FindDialog find_dialog)
JDialog
for the handler.
setDialog
in interface FinderHandler
find_dialog
- JDialog
public void setEditor(JEditorPane editor)
editor
- the JEditorPane holding the document to be searchedpublic void cancel()
cancel
in interface FinderHandler
public void init() throws Exception
init
in interface FinderHandler
Exception
public void find() throws Exception
find
in interface FinderHandler
Exception
public boolean doFind()
If the phrase is found (again), its position is 'remembered' for a
possible findNext and its postion is highlighted in the underlying
JEditorPane
.
JEditorPane
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |