KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > print > event > PrintEvent


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
8 package javax.print.event;
9
10 /**
11  *
12  * Class PrintEvent is the super class of all Print Service API events.
13  */

14
15 public class PrintEvent extends java.util.EventObject JavaDoc {
16     
17     private static final long serialVersionUID = 2286914924430763847L;
18
19     /**
20      * Constructs a PrintEvent object.
21      * @param source is the source of the event
22      * @throws IllegalArgumentException if <code>source</code> is
23      * <code>null</code>.
24      */

25     public PrintEvent (Object JavaDoc source) {
26         super(source);
27     }
28
29     /**
30      * @return a message describing the event
31      */

32     public String JavaDoc toString() {
33     return ("PrintEvent on " + getSource().toString());
34     }
35     
36 }
37
Popular Tags