- java.lang.Object
-
- javax.swing.SwingWorker<Void,SearchTextTask.SearchResult>
-
- org.icepdf.ri.common.utility.search.SearchTextTask
-
- All Implemented Interfaces:
Runnable,Future<Void>,RunnableFuture<Void>
public class SearchTextTask extends SwingWorker<Void,SearchTextTask.SearchResult>
This class is a utility for searching text in a PDF document. This is only a reference implementation.- Since:
- 1.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSearchTextTask.Builderstatic classSearchTextTask.CommentsResultstatic classSearchTextTask.DestinationsResultstatic classSearchTextTask.FormsResultstatic classSearchTextTask.OutlineResultstatic classSearchTextTask.SearchResultstatic classSearchTextTask.TextResult-
Nested classes/interfaces inherited from class javax.swing.SwingWorker
SwingWorker.StateValue
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected VoiddoInBackground()protected voiddone()intgetCurrent()Gets the page that is currently being searched by this task.StringgetPattern()PatterngetSearchPattern()booleanisCaseSensitive()booleanisComments()booleanisCumulative()booleanisDestinations()booleanisForms()booleanisOutlines()booleanisRegex()booleanisShowPages()booleanisText()booleanisWholeWord()protected voidprocess(List<SearchTextTask.SearchResult> chunks)-
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, publish, removePropertyChangeListener, run, setProgress
-
-
-
-
Method Detail
-
getCurrent
public int getCurrent()
Gets the page that is currently being searched by this task.- Returns:
- current page being processed.
-
doInBackground
protected Void doInBackground()
- Specified by:
doInBackgroundin classSwingWorker<Void,SearchTextTask.SearchResult>
-
process
protected void process(List<SearchTextTask.SearchResult> chunks)
- Overrides:
processin classSwingWorker<Void,SearchTextTask.SearchResult>
-
done
protected void done()
- Overrides:
donein classSwingWorker<Void,SearchTextTask.SearchResult>
-
getPattern
public String getPattern()
-
getSearchPattern
public Pattern getSearchPattern()
-
isWholeWord
public boolean isWholeWord()
-
isCaseSensitive
public boolean isCaseSensitive()
-
isCumulative
public boolean isCumulative()
-
isShowPages
public boolean isShowPages()
-
isRegex
public boolean isRegex()
-
isText
public boolean isText()
-
isForms
public boolean isForms()
-
isComments
public boolean isComments()
-
isOutlines
public boolean isOutlines()
-
isDestinations
public boolean isDestinations()
-
-