1. /*
  2. * @(#)PrintEvent.java 1.6 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.print.event;
  8. /**
  9. *
  10. * Class PrintEvent is the super class of all Print Service API events.
  11. */
  12. public class PrintEvent extends java.util.EventObject {
  13. private static final long serialVersionUID = 2286914924430763847L;
  14. /**
  15. * Constructs a PrintEvent object.
  16. * @param source is the source of the event
  17. * @throws IllegalArgumentException if <code>source</code> is
  18. * <code>null</code>.
  19. */
  20. public PrintEvent (Object source) {
  21. super(source);
  22. }
  23. /**
  24. * @return a message describing the event
  25. */
  26. public String toString() {
  27. return ("PrintEvent on " + getSource().toString());
  28. }
  29. }