Package org.openstreetmap.josm.gui.util
Class WindowOnTopListener
- java.lang.Object
-
- org.openstreetmap.josm.gui.util.WindowOnTopListener
-
- All Implemented Interfaces:
java.awt.event.WindowFocusListener,java.util.EventListener,javax.swing.event.AncestorListener
public class WindowOnTopListener extends java.lang.Object implements javax.swing.event.AncestorListener, java.awt.event.WindowFocusListener
A listener for windows that block other inputs, to ensure they are always on top- Since:
- 18923
-
-
Field Summary
Fields Modifier and Type Field Description private booleanwasAlwaysOnToptrueindicates that the window was always on top prior to the change
-
Constructor Summary
Constructors Constructor Description WindowOnTopListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidancestorAdded(javax.swing.event.AncestorEvent event)voidancestorMoved(javax.swing.event.AncestorEvent event)voidancestorRemoved(javax.swing.event.AncestorEvent event)voidwindowGainedFocus(java.awt.event.WindowEvent e)voidwindowLostFocus(java.awt.event.WindowEvent e)
-
-
-
Field Detail
-
wasAlwaysOnTop
private boolean wasAlwaysOnTop
trueindicates that the window was always on top prior to the change
-
-
Constructor Detail
-
WindowOnTopListener
public WindowOnTopListener()
-
-
Method Detail
-
windowGainedFocus
public void windowGainedFocus(java.awt.event.WindowEvent e)
- Specified by:
windowGainedFocusin interfacejava.awt.event.WindowFocusListener
-
windowLostFocus
public void windowLostFocus(java.awt.event.WindowEvent e)
- Specified by:
windowLostFocusin interfacejava.awt.event.WindowFocusListener
-
ancestorAdded
public void ancestorAdded(javax.swing.event.AncestorEvent event)
- Specified by:
ancestorAddedin interfacejavax.swing.event.AncestorListener
-
ancestorRemoved
public void ancestorRemoved(javax.swing.event.AncestorEvent event)
- Specified by:
ancestorRemovedin interfacejavax.swing.event.AncestorListener
-
ancestorMoved
public void ancestorMoved(javax.swing.event.AncestorEvent event)
- Specified by:
ancestorMovedin interfacejavax.swing.event.AncestorListener
-
-