1. /*
  2. * @(#)ActionListener.java 1.11 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.awt.event;
  8. import java.util.EventListener;
  9. /**
  10. * The listener interface for receiving action events.
  11. * The class that is interested in processing an action event
  12. * implements this interface, and the object created with that
  13. * class is registered with a component, using the component's
  14. * <code>addActionListener</code> method. When the action event
  15. * occurs, that object's <code>actionPerformed</code> method is
  16. * invoked.
  17. *
  18. * @see ActionEvent
  19. * @see <a href="http://java.sun.com/docs/books/tutorial/post1.0/ui/eventmodel.html">Tutorial: Java 1.1 Event Model</a>
  20. * @see <a href="http://www.awl.com/cp/javaseries/jcl1_2.html">Reference: The Java Class Libraries (update file)</a>
  21. *
  22. * @version 1.11 11/29/01
  23. * @author Carl Quinn
  24. */
  25. public interface ActionListener extends EventListener {
  26. /**
  27. * Invoked when an action occurs.
  28. */
  29. public void actionPerformed(ActionEvent e);
  30. }