Package org.jcsp.awt

Class ItemEventHandler

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

    class ItemEventHandler
    extends java.lang.Object
    implements java.awt.event.ItemListener
    • Field Summary

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void itemStateChanged​(java.awt.event.ItemEvent e)
      Invoked when an item change occurs on the component the event handler is listening to.
      • 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 down which ItemEvent notifications are sent.
    • Constructor Detail

      • ItemEventHandler

        public ItemEventHandler​(ChannelOutput event)
        constructs a new ItemEventHandler with the specified event Channel.
        Parameters:
        event - The Channel ItemEvent notifications are sent down.
    • Method Detail

      • itemStateChanged

        public void itemStateChanged​(java.awt.event.ItemEvent e)
        Invoked when an item change occurs on the component the event handler is listening to. Notifies the event process that an ItemEvent has occurred. Some notifications will be lost so there are no guarantees that all events generated will be processed.
        Specified by:
        itemStateChanged in interface java.awt.event.ItemListener
        Parameters:
        e - The parameters associated with this event