Package org.jcsp.awt

Class ItemEventHandler

java.lang.Object
org.jcsp.awt.ItemEventHandler
All Implemented Interfaces:
ItemListener, EventListener

class ItemEventHandler extends Object implements ItemListener
  • Field Details

    • event

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

    • ItemEventHandler

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

    • itemStateChanged

      public void itemStateChanged(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 ItemListener
      Parameters:
      e - The parameters associated with this event