1. /*
  2. * @(#)ActionListener.java 1.15 03/01/23
  3. *
  4. * Copyright 2003 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. * @author Carl Quinn
  23. * @version 1.15 01/23/03
  24. * @since 1.1
  25. */
  26. public interface ActionListener extends EventListener {
  27. /**
  28. * Invoked when an action occurs.
  29. */
  30. public void actionPerformed(ActionEvent e);
  31. }