com.icesoft.pdf.ri.common
Class PrinterTask

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.icesoft.pdf.ri.common.PrinterTask
All Implemented Interfaces:
Runnable

public class PrinterTask
extends Thread

The PrinterTask class is responsible for starting a PrinterJob's print function in a new thread. This class assumes that the PrinterJob is pre-configured and ready for its print() method to be called.

Since:
2.0

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
PrinterTask(PrinterJob printerJob)
          Create a new instance of a PrinterTask.
 
Method Summary
 void cancel()
          Cancel the PrinterTask by calling the PrinterJob's cancel() method.
 void run()
          Threads Runnable method.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PrinterTask

public PrinterTask(PrinterJob printerJob)
Create a new instance of a PrinterTask.

Parameters:
printerJob -
Method Detail

run

public void run()
Threads Runnable method.


cancel

public void cancel()
Cancel the PrinterTask by calling the PrinterJob's cancel() method.