Package org.jcsp.awt
Class ContainerEventHandler
java.lang.Object
org.jcsp.awt.ContainerEventHandler
- All Implemented Interfaces:
ContainerListener
,EventListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ChannelOutput
The Channel action event notifications are sent down. -
Constructor Summary
ConstructorsConstructorDescriptionconstructs a new ContainerEventHandler with the specified event output Channel. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Invoked when the Container the event handler is listening to has a new Component added to it.void
Invoked when the Container the event handler is listening to has a new Component removed from it.
-
Field Details
-
event
The Channel action event notifications are sent down.
-
-
Constructor Details
-
ContainerEventHandler
constructs a new ContainerEventHandler with the specified event output Channel.- Parameters:
event
- The Channel to send the event notification down
-
-
Method Details
-
componentAdded
Invoked when the Container the event handler is listening to has a new Component added to it. Notifies the event process that a ContainerEvent has occurred by sending the ContainerEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.- Specified by:
componentAdded
in interfaceContainerListener
- Parameters:
e
- The parameters associated with this event
-
componentRemoved
Invoked when the Container the event handler is listening to has a new Component removed from it. Notifies the event process that a ContainerEvent has occurred by sending the ContainerEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.- Specified by:
componentRemoved
in interfaceContainerListener
- Parameters:
e
- The parameters associated with this event
-