|
org.netbeans.spi.navigator/1 1.23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NavigatorDisplayer
An abstraction for displaying the Navigator UI. Implement only if you need to display the navigator differently from the standard Navigator window.
By default the standard Navigator TopComponent is provided which manages the navigator panels. An alternative visualization/placement can be specified by implementing this interface and registering it is a service. The methods of the interface get call by the navigator module based on what it needs at the moment.
If an implementation is provided then the navigator needs to be explicitly
initialized by calling NavigatorHandler.activateNavigator() when the UI is shown.
ServiceProvider| Field Summary | |
|---|---|
static String |
PROP_PANEL_SELECTION
Property name to be fired when the selected panel changes in the UI. |
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Add a listener for PROP_PANEL_SELECTION property change. |
boolean |
allowAsyncUpdate()
Tells the navigator whether it can postpone reaction to context changes (possibly coalesce frequent changes) when computing the panels. |
NavigatorPanel |
getSelectedPanel()
|
TopComponent |
getTopComponent()
|
void |
removePropertyChangeListener(PropertyChangeListener l)
Remove a listener for PROP_PANEL_SELECTION property change. |
void |
setDisplayName(String name)
Called with the display name of currently selected objects (nodes). |
void |
setPanels(List<? extends NavigatorPanel> panels,
NavigatorPanel select)
Called to set all the panels to display, plus which one should be selected. |
void |
setSelectedPanel(NavigatorPanel panel)
Called to select given panel in the UI. |
| Field Detail |
|---|
static final String PROP_PANEL_SELECTION
| Method Detail |
|---|
void setDisplayName(String name)
name - The name of selected object(s)
void setPanels(List<? extends NavigatorPanel> panels,
NavigatorPanel select)
panels - The panels to displayselect - The panel to select (can be null)void setSelectedPanel(NavigatorPanel panel)
panel - The panel to selectNavigatorPanel getSelectedPanel()
boolean allowAsyncUpdate()
TopComponent getTopComponent()
void addPropertyChangeListener(PropertyChangeListener l)
l - the listenervoid removePropertyChangeListener(PropertyChangeListener l)
l - the listener
|
org.netbeans.spi.navigator/1 1.23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||