public class RangeSearch extends java.lang.Object implements RangeSearchTask.Callback
Modifier and Type | Field and Description |
---|---|
static Key<RangeSearch> |
KEY |
Constructor and Description |
---|
RangeSearch(VirtualFile virtualFile,
Project project,
RangeSearchCallback rangeSearchCallback) |
Modifier and Type | Method and Description |
---|---|
void |
addSearchResultsIntoBeginning(java.util.List<SearchResult> searchResults) |
void |
addSearchResultsIntoEnd(java.util.List<SearchResult> searchResults) |
void |
callScheduledUpdate() |
void |
dispose() |
protected void |
fireSearchStopped() |
int |
getAmountOfStoredSearchResults() |
javax.swing.JComponent |
getComponent() |
RangeSearchTask |
getLastExecutedRangeSearchTask() |
Project |
getProject() |
java.util.List<SearchResult> |
getSearchResultsList() |
VirtualFile |
getVirtualFile() |
boolean |
isButtonFindFurtherEnabled(boolean directionForward) |
void |
onClickSearchFurther(boolean directionForward) |
protected void |
onFrameSearchResultsFound(RangeSearchTask caller,
long curPageNumber,
java.util.ArrayList<SearchResult> allMatchesAtFrame) |
protected void |
onSearchCatchedException(RangeSearchTask caller,
java.io.IOException e) |
protected void |
onSearchIsFinished(RangeSearchTask caller,
long lastScannedPageNumber) |
void |
runNewSearch(SearchTaskOptions options,
FileDataProviderForSearch fileDataProviderForSearch) |
void |
runNewSearch(SearchTaskOptions options,
FileDataProviderForSearch fileDataProviderForSearch,
boolean inBackground) |
void |
setAdditionalStatusText(java.lang.String statusText) |
void |
setContent(Content content) |
void |
setLeftBorderPageNumber(long leftBorderPageNumber) |
void |
setRightBorderPageNumber(long rightBorderPageNumber) |
void |
tellFrameSearchResultsFound(RangeSearchTask caller,
long curPageNumber,
java.util.ArrayList<SearchResult> allMatchesAtFrame) |
void |
tellSearchCatchedException(RangeSearchTask caller,
java.io.IOException e) |
void |
tellSearchIsFinished(RangeSearchTask caller,
long lastScannedPageNumber) |
void |
tellSearchIsStopped(long curPageNumber) |
void |
updateTabName() |
public static final Key<RangeSearch> KEY
public RangeSearch(VirtualFile virtualFile, Project project, RangeSearchCallback rangeSearchCallback)
public boolean isButtonFindFurtherEnabled(boolean directionForward)
public void onClickSearchFurther(boolean directionForward)
public void setContent(Content content)
public VirtualFile getVirtualFile()
public Project getProject()
public int getAmountOfStoredSearchResults()
public void setLeftBorderPageNumber(long leftBorderPageNumber)
public void setRightBorderPageNumber(long rightBorderPageNumber)
public void setAdditionalStatusText(java.lang.String statusText)
public void addSearchResultsIntoBeginning(java.util.List<SearchResult> searchResults)
public void addSearchResultsIntoEnd(java.util.List<SearchResult> searchResults)
public void updateTabName()
public void callScheduledUpdate()
public javax.swing.JComponent getComponent()
public void runNewSearch(SearchTaskOptions options, FileDataProviderForSearch fileDataProviderForSearch)
public void runNewSearch(SearchTaskOptions options, FileDataProviderForSearch fileDataProviderForSearch, boolean inBackground)
public void tellSearchIsFinished(RangeSearchTask caller, long lastScannedPageNumber)
tellSearchIsFinished
in interface RangeSearchTask.Callback
protected void onSearchIsFinished(RangeSearchTask caller, long lastScannedPageNumber)
public void tellFrameSearchResultsFound(RangeSearchTask caller, long curPageNumber, java.util.ArrayList<SearchResult> allMatchesAtFrame)
tellFrameSearchResultsFound
in interface RangeSearchTask.Callback
protected void onFrameSearchResultsFound(RangeSearchTask caller, long curPageNumber, java.util.ArrayList<SearchResult> allMatchesAtFrame)
public void tellSearchIsStopped(long curPageNumber)
tellSearchIsStopped
in interface RangeSearchTask.Callback
protected void fireSearchStopped()
public void tellSearchCatchedException(RangeSearchTask caller, java.io.IOException e)
tellSearchCatchedException
in interface RangeSearchTask.Callback
protected void onSearchCatchedException(RangeSearchTask caller, java.io.IOException e)
public RangeSearchTask getLastExecutedRangeSearchTask()
public void dispose()
public java.util.List<SearchResult> getSearchResultsList()