public final class NavigatorHandler extends Object
Modifier and Type | Method and Description |
---|---|
static void |
activateNavigator()
If there is a custom
NavigatorDisplayer implementation, it should call
this method just before its UI shows up (before the enclosing
TopComponent is opened) to actually initialize the navigator. |
static void |
activatePanel(NavigatorPanel panel)
Activates and shows given panel in navigator view.
|
public static void activatePanel(NavigatorPanel panel)
Typical use case is to set preferred navigator panel in a situation when multiple panels are registered for multiple data types.
This method must be called from EventQueue thread.
panel
- Navigator panel to be activatedIllegalArgumentException
- if given panel is not availablepublic static void activateNavigator()
NavigatorDisplayer
implementation, it should call
this method just before its UI shows up (before the enclosing
TopComponent is opened) to actually initialize the navigator. From this
point the navigator observes the TopComponent and once it is opened, it
starts collecting panels from the providers and passing them to the
displayer.
If there is no custom displayer registered, the navigator's own (default) TopComponent will be used and it also takes care of initializing the navigator automatically. No need to call this method then.