public final class DefaultSearchResultsDisplayer<U> extends SearchResultsDisplayer<U>
Modifier and Type | Class | 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 | 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.
|
org.openide.explorer.view.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(org.openide.nodes.Node infoNode) |
Set node that display information from the search listener.
|
void |
setResultNodeShiftSupport(DefaultSearchResultsDisplayer.ResultNodeShiftSupport resultNodeShiftSupport) |
Set a custom
DefaultSearchResultsDisplayer.ResultNodeShiftSupport for this displayer. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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 org.openide.explorer.view.OutlineView getOutlineView()
public void setInfoNode(org.openide.nodes.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.Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.