|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.icepdf.ri.util.SearchTextTask
public class 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(SearchPanel searchPanel,
SwingController controller,
java.lang.String pattern,
boolean wholeWord,
boolean caseSensitive,
boolean cumulative,
boolean showPages,
boolean r2L,
java.util.ResourceBundle messageBundle)
Creates a new instance of the SearchTextTask. |
|
| Method Summary | |
|---|---|
int |
getCurrent()
Gets the page that is currently being searched by this task. |
java.lang.String |
getFinalMessage()
Gets the message that should be displayed when the task has completed. |
int |
getLengthOfTask()
Number pages that search task has to iterate over. |
java.lang.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(SearchPanel searchPanel,
SwingController controller,
java.lang.String pattern,
boolean wholeWord,
boolean caseSensitive,
boolean cumulative,
boolean showPages,
boolean r2L,
java.util.ResourceBundle messageBundle)
searchPanel - parent search panel that start this task via an actioncontroller - root controller objectpattern - pattern to search forwholeWord - ture inticates whole word searchcaseSensitive - case sensitive indicates cases sensitive searchr2L - right left earch, not currently implemented.messageBundle - message bundle used for dialog text.| Method Detail |
|---|
public void go()
public int getLengthOfTask()
public int getCurrent()
public void stop()
public boolean isDone()
public boolean isCurrentlySearching()
public java.lang.String getMessage()
public java.lang.String getFinalMessage()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||