- All Implemented Interfaces:
- WindowFocusListener, WindowListener, WindowStateListener, EventListener
- Enclosing class:
- Main
protected static class Main.MasterWindowListener
extends WindowAdapter
WindowListener, that is registered on all Windows of the application.
Its purpose is to notify WindowSwitchListeners, that the user switches to
another application, e.g. a browser, or back to JOSM.
When changing from JOSM to another application and back (e.g. two times
alt+tab), the active Window within JOSM may be different.
Therefore, we need to register listeners to all (visible)
Windows in JOSM, and it does not suffice to monitor the one that was
deactivated last.
This class is only "active" on demand, i.e. when there is at least one
WindowSwitchListener registered.