T - Type of result of file content matching.DefaultSearchResultsDisplayerpublic abstract class SearchResultsDisplayer<T>
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
SearchResultsDisplayer.NodeDisplayer<T> |
Helper class for transforming matching objects to nodes.
|
| Modifier | Constructor | Description |
|---|---|---|
protected |
SearchResultsDisplayer() |
Constructor for subclasses.
|
| Modifier and Type | Method | Description |
|---|---|---|
abstract void |
addMatchingObject(T object) |
This method is called when a new matching object is
found.
|
void |
closed() |
Called right after the displayer is closed.
|
static <U> DefaultSearchResultsDisplayer<U> |
createDefault(SearchResultsDisplayer.NodeDisplayer<U> helper,
SearchComposition<U> searchComposition,
SearchProvider.Presenter presenter,
java.lang.String title) |
Get default displayer that shows results as a tree of nodes.
|
abstract java.lang.String |
getTitle() |
Return title of this displayer.
|
abstract javax.swing.JComponent |
getVisualComponent() |
Get component that will be shown in the Search Results window.
|
void |
searchFinished() |
Called right after the search was finished.
|
void |
searchStarted() |
Called right after the search was started.
|
void |
setInfoNode(org.openide.nodes.Node infoNode) |
Set node that display information from the search listener.
|
protected SearchResultsDisplayer()
@NonNull public abstract javax.swing.JComponent getVisualComponent()
public abstract void addMatchingObject(@NonNull
T object)
public void searchStarted()
public void searchFinished()
public static <U> DefaultSearchResultsDisplayer<U> createDefault(@NonNull SearchResultsDisplayer.NodeDisplayer<U> helper, @NonNull SearchComposition<U> searchComposition, @NullAllowed SearchProvider.Presenter presenter, @NonNull java.lang.String title)
helper - Helper that returns nodes for matching objects.searchComposition - Search composition of the displayer is created
for.presenter - Presenter that can be shown to modify search criteria.title - Title that will be shown in the tab of search results
window.@NonNull public abstract java.lang.String getTitle()
public void setInfoNode(org.openide.nodes.Node infoNode)
getVisualComponent().
The default implementation does nothing. Override it if you want to add
the info node to your UI.public void closed()
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.