public class SearchTextTask
extends java.lang.Object
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.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()