public interface NavigatorPanel
NavigatorPanel.Registration
Modifier and Type | Interface and Description |
---|---|
static interface |
NavigatorPanel.DynamicRegistration
Dynamically create panels for files.
|
static interface |
NavigatorPanel.Registration
Registers a navigator panel.
|
static interface |
NavigatorPanel.Registrations
Used in case multiple registrations are needed in one place.
|
Modifier and Type | Method and Description |
---|---|
JComponent |
getComponent()
JComponent representation of this view.
|
String |
getDisplayHint()
Description of the view, explaining main purpose of the view.
|
String |
getDisplayName()
Name of the view which will be shown in navigator UI.
|
Lookup |
getLookup()
Returns Lookup that will be integrated into Lookup of Navigator UI
TopComponent.
|
void |
panelActivated(Lookup context)
Called when this panel's component is about to being displayed.
|
void |
panelDeactivated()
Called when this panel's component is about to being hidden.
|
String getDisplayName()
String getDisplayHint()
JComponent getComponent()
This method is always called in event dispatch thread.
void panelActivated(Lookup context)
context
- Lookup instance representing current context to take
data fromvoid panelDeactivated()
Lookup getLookup()
1) Specify activated Node of Navigator UI TopComponent when this panel is active.
If returned lookup contains Nodes, they will act as activated nodes of
Navigator UI TopComponent (navigator window).
Method may return null, signalizing that default mechanism should be enabled.
Default mechanism chooses first Node from Utilities.actionsGlobalContext()
(current system-wide activated Node) as activated Node for Navigator's TopComponent.
2) Enable support for Toolbar or main menu global actions in NavigatorPanel.
ActionMap contained in this Lookup will be part of Utilities.actionsGlobalContext()
when Navigator UI TopComponent (navigator window) is active in the system.