Package org.jcsp.awt
Class ActionEventHandler
java.lang.Object
org.jcsp.awt.ActionEventHandler
- All Implemented Interfaces:
ActionListener,EventListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ChannelOutputThe Channel down which ActionEvent commands are sent. -
Constructor Summary
ConstructorsConstructorDescriptionActionEventHandler(ChannelOutput event) constructs a new ActionEventHandler with the specified output Channel. -
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked when an action occurs on the component.
-
Field Details
-
event
The Channel down which ActionEvent commands are sent.
-
-
Constructor Details
-
ActionEventHandler
constructs a new ActionEventHandler with the specified output Channel.- Parameters:
event- The Channel to send the event notification down
-
-
Method Details
-
actionPerformed
Invoked when an action occurs on the component. It assumes the event channel is being serviced (e.g. by an overwriting channel).- Specified by:
actionPerformedin interfaceActionListener- Parameters:
e- the parameter associated with this event
-