Package org.jcsp.awt
Class ComponentEventHandler
java.lang.Object
org.jcsp.awt.ComponentEventHandler
- All Implemented Interfaces:
ComponentListener,EventListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ChannelOutputThe Channel action event notifications are sent down. -
Constructor Summary
ConstructorsConstructorDescriptionconstructs a new ComponentEventHandler with the specified event output Channel. -
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked when the component the event handler is listening to is hidden.voidInvoked when the component the event handler is listening to is moved.voidInvoked when the component the event handler is listening to is resized.voidInvoked when the component the event handler is listening to is shown.
-
Field Details
-
event
The Channel action event notifications are sent down.
-
-
Constructor Details
-
ComponentEventHandler
constructs a new ComponentEventHandler with the specified event output Channel.- Parameters:
event- The Channel to send the event notification down
-
-
Method Details
-
componentResized
Invoked when the component the event handler is listening to is resized. Notifies the event process that an ComponentEvent has occurred by sending the ComponentEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.- Specified by:
componentResizedin interfaceComponentListener- Parameters:
e- The parameters associated with this event
-
componentMoved
Invoked when the component the event handler is listening to is moved. Notifies the event process that an ComponentEvent has occurred by sending the ComponentEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.- Specified by:
componentMovedin interfaceComponentListener- Parameters:
e- The parameters associated with this event
-
componentShown
Invoked when the component the event handler is listening to is shown. Notifies the event process that an ComponentEvent has occurred by sending the ComponentEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.- Specified by:
componentShownin interfaceComponentListener- Parameters:
e- The parameters associated with this event
-
componentHidden
Invoked when the component the event handler is listening to is hidden. Notifies the event process that an ComponentEvent has occurred by sending the ComponentEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.- Specified by:
componentHiddenin interfaceComponentListener- Parameters:
e- The parameters associated with this event
-