Package org.jcsp.awt
Class ActionEventHandler
- java.lang.Object
-
- org.jcsp.awt.ActionEventHandler
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.util.EventListener
class ActionEventHandler extends java.lang.Object implements java.awt.event.ActionListener
-
-
Field Summary
Fields Modifier and Type Field Description private ChannelOutput
event
The Channel down which ActionEvent commands are sent.
-
Constructor Summary
Constructors Constructor Description ActionEventHandler(ChannelOutput event)
constructs a new ActionEventHandler with the specified output Channel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
Invoked when an action occurs on the component.
-
-
-
Field Detail
-
event
private ChannelOutput event
The Channel down which ActionEvent commands are sent.
-
-
Constructor Detail
-
ActionEventHandler
public ActionEventHandler(ChannelOutput event)
constructs a new ActionEventHandler with the specified output Channel.- Parameters:
event
- The Channel to send the event notification down
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
Invoked when an action occurs on the component. It assumes the event channel is being serviced (e.g. by an overwriting channel).- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
- Parameters:
e
- the parameter associated with this event
-
-