< prev index next >

src/java.desktop/share/classes/javax/print/event/PrintEvent.java

Print this page




  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javax.print.event;
  27 
  28 /**
  29  *
  30  * Class PrintEvent is the super class of all Print Service API events.
  31  */
  32 
  33 public class PrintEvent extends java.util.EventObject {
  34 
  35     private static final long serialVersionUID = 2286914924430763847L;
  36 
  37     /**
  38      * Constructs a PrintEvent object.
  39      * @param source is the source of the event
  40      * @throws IllegalArgumentException if <code>source</code> is
  41      *         <code>null</code>.
  42      */
  43     public PrintEvent (Object source) {
  44         super(source);
  45     }
  46 
  47     /**
  48      * @return a message describing the event
  49      */
  50     public String toString() {
  51         return ("PrintEvent on " + getSource().toString());
  52     }
  53 
  54 }


  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javax.print.event;
  27 
  28 /**
  29  *
  30  * Class PrintEvent is the super class of all Print Service API events.
  31  */
  32 
  33 public class PrintEvent extends java.util.EventObject {
  34 
  35     private static final long serialVersionUID = 2286914924430763847L;
  36 
  37     /**
  38      * Constructs a PrintEvent object.
  39      * @param source is the source of the event
  40      * @throws IllegalArgumentException if {@code source} is
  41      *         {@code null}.
  42      */
  43     public PrintEvent (Object source) {
  44         super(source);
  45     }
  46 
  47     /**
  48      * @return a message describing the event
  49      */
  50     public String toString() {
  51         return ("PrintEvent on " + getSource().toString());
  52     }
  53 
  54 }
< prev index next >