public final class DefaultSearchResultsDisplayer<U> extends SearchResultsDisplayer<U>
Modifier and Type | Class and Description |
---|---|
static class |
DefaultSearchResultsDisplayer.ResultNodeShiftSupport
Class definining which nodes should be selected when Previous or Next
button is pressed and what action should be performed.
|
SearchResultsDisplayer.NodeDisplayer<T>
Modifier and Type | Method and Description |
---|---|
void |
addButton(AbstractButton button)
Add a button to the results displayer toolbar.
|
void |
addMatchingObject(U object)
This method is called when a new matching object is
found.
|
OutlineView |
getOutlineView()
Get outline view.
|
String |
getTitle()
Return title of this displayer.
|
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(Node infoNode)
Set node that display information from the search listener.
|
void |
setResultNodeShiftSupport(DefaultSearchResultsDisplayer.ResultNodeShiftSupport resultNodeShiftSupport)
Set a custom
DefaultSearchResultsDisplayer.ResultNodeShiftSupport for this displayer. |
closed, createDefault
public JComponent getVisualComponent()
getVisualComponent
in class SearchResultsDisplayer<U>
public void addMatchingObject(U object)
addMatchingObject
in class SearchResultsDisplayer<U>
public String getTitle()
getTitle
in class SearchResultsDisplayer<U>
public void searchStarted()
searchStarted
in class SearchResultsDisplayer<U>
public void searchFinished()
searchFinished
in class SearchResultsDisplayer<U>
@NonNull public OutlineView getOutlineView()
public void setInfoNode(Node infoNode)
SearchResultsDisplayer.getVisualComponent()
.
The default implementation does nothing. Override it if you want to add
the info node to your UI.setInfoNode
in class SearchResultsDisplayer<U>
public void setResultNodeShiftSupport(DefaultSearchResultsDisplayer.ResultNodeShiftSupport resultNodeShiftSupport)
DefaultSearchResultsDisplayer.ResultNodeShiftSupport
for this displayer.public void addButton(@NonNull AbstractButton button)
button
- Button to add.