Package org.jcsp.awt
Class WindowEventHandler
java.lang.Object
org.jcsp.awt.WindowEventHandler
- All Implemented Interfaces:
WindowListener,EventListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ChannelOutputThe 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 TypeMethodDescriptionvoidInvoked when the Component the event handler is listening to has the window activated.voidInvoked when the Component the event handler is listening to has the window closed.voidInvoked when the Component the event handler is listening to has the window start to close.voidInvoked when the Component the event handler is listening to has the window deactivated.voidInvoked when the Component the event handler is listening to has the window deiconified.voidInvoked when the Component the event handler is listening to has the window iconified.voidInvoked 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:
windowOpenedin 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:
windowClosingin 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:
windowClosedin 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:
windowIconifiedin 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:
windowDeiconifiedin 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:
windowActivatedin 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:
windowDeactivatedin interfaceWindowListener- Parameters:
e- The parameters associated with this event
-