public interface NavigatorDisplayer
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
Modifier and Type | Field and Description |
---|---|
static String |
PROP_PANEL_SELECTION
Property name to be fired when the selected panel changes in the UI.
|
Modifier and Type | Method and Description |
---|---|
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.
|
static final String PROP_PANEL_SELECTION
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 listenerBuilt on June 4 2024. | Copyright © 2017-2024 Apache Software Foundation. All Rights Reserved.