Package org.jcsp.awt
Class WindowEventHandler
- java.lang.Object
-
- org.jcsp.awt.WindowEventHandler
-
- All Implemented Interfaces:
java.awt.event.WindowListener
,java.util.EventListener
class WindowEventHandler extends java.lang.Object implements java.awt.event.WindowListener
-
-
Field Summary
Fields Modifier and Type Field Description protected ChannelOutput
event
The Channel action event notifications are sent down.
-
Constructor Summary
Constructors Constructor Description WindowEventHandler(ChannelOutput event)
constructs a new WindowEventHandler with the specified output Channel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
windowActivated(java.awt.event.WindowEvent e)
Invoked when the Component the event handler is listening to has the window activated.void
windowClosed(java.awt.event.WindowEvent e)
Invoked when the Component the event handler is listening to has the window closed.void
windowClosing(java.awt.event.WindowEvent e)
Invoked when the Component the event handler is listening to has the window start to close.void
windowDeactivated(java.awt.event.WindowEvent e)
Invoked when the Component the event handler is listening to has the window deactivated.void
windowDeiconified(java.awt.event.WindowEvent e)
Invoked when the Component the event handler is listening to has the window deiconified.void
windowIconified(java.awt.event.WindowEvent e)
Invoked when the Component the event handler is listening to has the window iconified.void
windowOpened(java.awt.event.WindowEvent e)
Invoked when the Component the event handler is listening to has the window opened.
-
-
-
Field Detail
-
event
protected ChannelOutput event
The Channel action event notifications are sent down.
-
-
Constructor Detail
-
WindowEventHandler
public WindowEventHandler(ChannelOutput event)
constructs a new WindowEventHandler with the specified output Channel.- Parameters:
event
- The Channel to send the event notification down
-
-
Method Detail
-
windowOpened
public void windowOpened(java.awt.event.WindowEvent e)
Invoked when the Component the event handler is listening to has the window opened. Notifies the event process that a WindowEvent has occurred by sending the WindowEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.- Specified by:
windowOpened
in interfacejava.awt.event.WindowListener
- Parameters:
e
- The parameters associated with this event
-
windowClosing
public void windowClosing(java.awt.event.WindowEvent e)
Invoked when the Component the event handler is listening to has the window start to close. Notifies the event process that a WindowEvent has occurred by sending the WindowEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.- Specified by:
windowClosing
in interfacejava.awt.event.WindowListener
- Parameters:
e
- The parameters associated with this event
-
windowClosed
public void windowClosed(java.awt.event.WindowEvent e)
Invoked when the Component the event handler is listening to has the window closed. Notifies the event process that a WindowEvent has occurred by sending the WindowEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.- Specified by:
windowClosed
in interfacejava.awt.event.WindowListener
- Parameters:
e
- The parameters associated with this event
-
windowIconified
public void windowIconified(java.awt.event.WindowEvent e)
Invoked when the Component the event handler is listening to has the window iconified. Notifies the event process that a WindowEvent has occurred by sending the WindowEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.- Specified by:
windowIconified
in interfacejava.awt.event.WindowListener
- Parameters:
e
- The parameters associated with this event
-
windowDeiconified
public void windowDeiconified(java.awt.event.WindowEvent e)
Invoked when the Component the event handler is listening to has the window deiconified. Notifies the event process that a WindowEvent has occurred by sending the WindowEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.- Specified by:
windowDeiconified
in interfacejava.awt.event.WindowListener
- Parameters:
e
- The parameters associated with this event
-
windowActivated
public void windowActivated(java.awt.event.WindowEvent e)
Invoked when the Component the event handler is listening to has the window activated. Notifies the event process that a WindowEvent has occurred by sending the WindowEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.- Specified by:
windowActivated
in interfacejava.awt.event.WindowListener
- Parameters:
e
- The parameters associated with this event
-
windowDeactivated
public void windowDeactivated(java.awt.event.WindowEvent e)
Invoked when the Component the event handler is listening to has the window deactivated. Notifies the event process that a WindowEvent has occurred by sending the WindowEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.- Specified by:
windowDeactivated
in interfacejava.awt.event.WindowListener
- Parameters:
e
- The parameters associated with this event
-
-