dirk_krause.wstools
Class DkPrintClient

java.lang.Object
  extended by dirk_krause.wstools.DkPrintClient

public class DkPrintClient
extends java.lang.Object

Objects of this class can be used to send print jobs to the print system. The job can be either a Printable or a String or a byte array containing PostScript. The webstart variant can handle Printable objects only.


Field Summary
static java.lang.String[] def_t
          Default strings to show if not string file is found.
protected  DkTool dkt
          General tool.
protected  javax.jnlp.PrintService ps
          Print services to used, filled by constructor.
static java.lang.String[] t
          Strings to show, either from file or the default strings.
 
Constructor Summary
DkPrintClient(DkTool d)
          Constructor.
 
Method Summary
 DkPrintResult handleJob(javax.swing.JFrame w, java.lang.String psData, java.awt.print.Printable pr)
          Submit one print job.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

def_t

public static final java.lang.String[] def_t
Default strings to show if not string file is found.


t

public static java.lang.String[] t
Strings to show, either from file or the default strings.


dkt

protected DkTool dkt
General tool.


ps

protected javax.jnlp.PrintService ps
Print services to used, filled by constructor.

Constructor Detail

DkPrintClient

public DkPrintClient(DkTool d)
Constructor.

Parameters:
d - General tool.
Method Detail

handleJob

public DkPrintResult handleJob(javax.swing.JFrame w,
                               java.lang.String psData,
                               java.awt.print.Printable pr)
Submit one print job.

Parameters:
w - The window originating the request.
psData - PS data to print.
pr - Printable to print.
Returns:
Result object to indicate success/error and detailed information.