Package org.jcsp.awt
Class ItemEventHandler
- java.lang.Object
-
- org.jcsp.awt.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.
-
-
-
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 interfacejava.awt.event.ItemListener
- Parameters:
e
- The parameters associated with this event
-
-