Package org.jcsp.awt
Class ContainerEventHandler
java.lang.Object
org.jcsp.awt.ContainerEventHandler
- All Implemented Interfaces:
ContainerListener,EventListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ChannelOutputThe Channel action event notifications are sent down. -
Constructor Summary
ConstructorsConstructorDescriptionconstructs a new ContainerEventHandler with the specified event output Channel. -
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked when the Container the event handler is listening to has a new Component added to it.voidInvoked 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:
componentAddedin 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:
componentRemovedin interfaceContainerListener- Parameters:
e- The parameters associated with this event
-