Package org.jcsp.awt

Class ContainerEventHandler

  • All Implemented Interfaces:
    java.awt.event.ContainerListener, java.util.EventListener

    class ContainerEventHandler
    extends java.lang.Object
    implements java.awt.event.ContainerListener
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private ChannelOutput event
      The Channel action event notifications are sent down.
    • Constructor Summary

      Constructors 
      Constructor Description
      ContainerEventHandler​(ChannelOutput event)
      constructs a new ContainerEventHandler with the specified event output Channel.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void componentAdded​(java.awt.event.ContainerEvent e)
      Invoked when the Container the event handler is listening to has a new Component added to it.
      void componentRemoved​(java.awt.event.ContainerEvent e)
      Invoked when the Container the event handler is listening to has a new Component removed from it.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • event

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

      • 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 Detail

      • componentAdded

        public void componentAdded​(java.awt.event.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 java.awt.event.ContainerListener
        Parameters:
        e - The parameters associated with this event
      • componentRemoved

        public void componentRemoved​(java.awt.event.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 java.awt.event.ContainerListener
        Parameters:
        e - The parameters associated with this event