Package org.jcsp.awt

Class ContainerEventHandler

java.lang.Object
org.jcsp.awt.ContainerEventHandler
All Implemented Interfaces:
ContainerListener, EventListener

class ContainerEventHandler extends Object implements ContainerListener
  • Field Details

    • event

      private ChannelOutput event
      The Channel action event notifications are sent down.
  • Constructor Details

    • ContainerEventHandler

      public ContainerEventHandler(ChannelOutput event)
      constructs a new ContainerEventHandler with the specified event output Channel.
      Parameters:
      event - The Channel to send the event notification down
  • Method Details

    • componentAdded

      public void componentAdded(ContainerEvent e)
      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 interface ContainerListener
      Parameters:
      e - The parameters associated with this event
    • componentRemoved

      public void componentRemoved(ContainerEvent e)
      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 interface ContainerListener
      Parameters:
      e - The parameters associated with this event