|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.icesoft.pdf.ri.util.SearchTextTask
This class is a utility for searching text in a PDF document. This is only a reference implementation; there is currently no support for regular expression and other advanced search features.
| Constructor Summary | |
SearchTextTask(Document document,
SearchPanel searchPanel,
String pattern,
ResourceBundle messageBundle)
Creates a new instance of the SearchTextTask. |
|
| Method Summary | |
int |
getCurrent()
Find out how much has been done. |
String |
getFinalMessage()
Gets the message that should be displayed when the task has completed. |
int |
getLengthOfTask()
Find out how much work needs to be done. |
String |
getMessage()
Returns the most recent dialog message, or null if there is no current dialog message. |
void |
go()
Start the task, start searching the document for the pattern. |
boolean |
isCurrentlySearching()
|
boolean |
isDone()
Find out if the task has completed. |
void |
stop()
Stop the task. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SearchTextTask(Document document,
SearchPanel searchPanel,
String pattern,
ResourceBundle messageBundle)
document - document that will be searchedsearchPanel - GUI that shows search tools and resultspattern - string to search for in the document| Method Detail |
public void go()
public int getLengthOfTask()
public int getCurrent()
public void stop()
public boolean isDone()
public boolean isCurrentlySearching()
public String getMessage()
public String getFinalMessage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||