Package org.jcsp.awt
Class WindowEventHandler
java.lang.Object
org.jcsp.awt.WindowEventHandler
- All Implemented Interfaces:
WindowListener
,EventListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ChannelOutput
The Channel action event notifications are sent down. -
Constructor Summary
ConstructorsConstructorDescriptionWindowEventHandler
(ChannelOutput event) constructs a new WindowEventHandler with the specified output Channel. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Invoked when the Component the event handler is listening to has the window activated.void
Invoked when the Component the event handler is listening to has the window closed.void
Invoked when the Component the event handler is listening to has the window start to close.void
Invoked when the Component the event handler is listening to has the window deactivated.void
Invoked when the Component the event handler is listening to has the window deiconified.void
Invoked when the Component the event handler is listening to has the window iconified.void
Invoked when the Component the event handler is listening to has the window opened.
-
Field Details
-
event
The Channel action event notifications are sent down.
-
-
Constructor Details
-
WindowEventHandler
constructs a new WindowEventHandler with the specified output Channel.- Parameters:
event
- The Channel to send the event notification down
-
-
Method Details
-
windowOpened
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 interfaceWindowListener
- Parameters:
e
- The parameters associated with this event
-
windowClosing
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 interfaceWindowListener
- Parameters:
e
- The parameters associated with this event
-
windowClosed
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 interfaceWindowListener
- Parameters:
e
- The parameters associated with this event
-
windowIconified
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 interfaceWindowListener
- Parameters:
e
- The parameters associated with this event
-
windowDeiconified
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 interfaceWindowListener
- Parameters:
e
- The parameters associated with this event
-
windowActivated
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 interfaceWindowListener
- Parameters:
e
- The parameters associated with this event
-
windowDeactivated
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 interfaceWindowListener
- Parameters:
e
- The parameters associated with this event
-