Package de.alpharogroup.swing.listener
Class RequestFocusListener
- java.lang.Object
-
- de.alpharogroup.swing.listener.RequestFocusListener
-
- All Implemented Interfaces:
java.awt.event.WindowFocusListener,java.util.EventListener
public class RequestFocusListener extends java.lang.Object implements java.awt.event.WindowFocusListenerThe classRequestFocusListenercan take aJComponentwhich will gain focus when the window/frame/dialog will show.
The listener interface for receiving requestFocus events. The class that is interested in processing a requestFocus event implements this interface, and the object created with that class is registered with a component using the component'saddRequestFocusListenermethod. When the requestFocus event occurs, that object's appropriate method is invoked.
-
-
Constructor Summary
Constructors Constructor Description RequestFocusListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwindowGainedFocus(java.awt.event.WindowEvent e)voidwindowLostFocus(java.awt.event.WindowEvent e)
-
-
-
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
-
-