Class GenericActionListener

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.util.EventListener

    public class GenericActionListener
    extends java.lang.Object
    implements java.awt.event.ActionListener
    A class that implements a generic action listener. This listener can be dynamically instantiated again and again any time where you need an action listener.

    Modified by: Joseph A. Huwaldt

    Version:
    September 14, 2012
    Author:
    Joseph A. Huwaldt Date: February 16, 2000
    • Constructor Summary

      Constructors 
      Constructor Description
      GenericActionListener​(java.lang.Object target, java.lang.reflect.Method targetMethod)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent event)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GenericActionListener

        public GenericActionListener​(java.lang.Object target,
                                     java.lang.reflect.Method targetMethod)
    • Method Detail

      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent event)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener