public interface ApplicationChangeListener
The first is for DockableWindow instances that are hosted in the Application Navigator itself. The easiest approach is for the DockableWindow subclass itself to implement ApplicationChangeListener. The Application Navigator detects this and will call the listener method back whenever the selected application changes.
The second way is to register a separate class with the Application
Navigator to get called back. This approach is less common and
should be used with care, because it tends to raise higher level
usability issues when more distant parts of the UI are responsive to
changes in the navigator's selected application. There are many
edge cases to consider. Once those are accounted for, use this sample
code to register your listener with the Application Navigator:
NavigatorManager navMgr = NavigatorManager.getApplicationNavigatorManager();
NavigatorWindow navWin = navMgr.getNavigatorWindow();
if (navWin instanceof ApplicationChangeNotifier)
ApplicationChangeNotifier notifier = (ApplicationChangeNotifier) navWin;
void applicationChanged(ApplicationChangeEvent e)
e- the event object containing information about the change.