Package org.jcsp.awt
Class ItemEventHandler
java.lang.Object
org.jcsp.awt.ItemEventHandler
- All Implemented Interfaces:
ItemListener
,EventListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ChannelOutput
The Channel down which ItemEvent notifications are sent. -
Constructor Summary
ConstructorsConstructorDescriptionItemEventHandler
(ChannelOutput event) constructs a new ItemEventHandler with the specified event Channel. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Invoked when an item change occurs on the component the event handler is listening to.
-
Field Details
-
event
The Channel down which ItemEvent notifications are sent.
-
-
Constructor Details
-
ItemEventHandler
constructs a new ItemEventHandler with the specified event Channel.- Parameters:
event
- The Channel ItemEvent notifications are sent down.
-
-
Method Details
-
itemStateChanged
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 interfaceItemListener
- Parameters:
e
- The parameters associated with this event
-