Package org.jcsp.awt

Class ActionEventHandler

java.lang.Object
org.jcsp.awt.ActionEventHandler
All Implemented Interfaces:
ActionListener, EventListener

class ActionEventHandler extends Object implements ActionListener
  • Field Details

    • event

      private ChannelOutput event
      The Channel down which ActionEvent commands are sent.
  • Constructor Details

    • 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 Details

    • actionPerformed

      public void actionPerformed(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 interface ActionListener
      Parameters:
      e - the parameter associated with this event