fist.beans.FISTbeanCustomPrint

  SubClasses: YOU MAY SUBCLASS

This class allows the developer to print documents without the standard Bean Print Dialog. It is used in conjunction with beans like the DocviewSwingFISTbean.


CLASS CONSTANTS
PUBLIC METHODS
public void setSpec(FISTbeanPrintSpec spec);
  Sets the Print Spec which will be used to control printing for future Print Jobs. If none is set (or it is set to null) then the default spec from the DocviewSwingFISTbean will be used.
public void setPrintDocNotes(boolean print_doc_notes);
  Sets a flag for future Print Jobs to print Doc Notes (if any).
public void setMaxCopies(int max_copies);
  Sets a maximum number of copies for future Print Jobs. If < 0 then there will be no limit. This feature may or may not actually be supported depending on the printing system in use.
public void printCurrent(DocviewSwingFISTbean docview_bean);
  Creates and runs a Print Job to print the Current page in the given Docview Bean. Note that while a System Dialog will likely be shown, the standard dialog from the PrintSwingFISTbean won't be used.
public void printAll(DocviewSwingFISTbean docview_bean);
  Creates and runs a Print Job to print All pages in the given Docview Bean. Note that while a System Dialog will likely be shown, the standard dialog from the PrintSwingFISTbean won't be used.
public void cancelPrint();
  May cause the current Print Job to cancel i.e. finish before all pages have been printed. NB since the printCurrent and printAll methods run synchronously this method will have to be called from another thread. Typically a UI thread (i.e. in response to a "Cancel" button) will be used.
CLASS METHODS MAY BE OVERRIDDEN
protected void printStarting();
  Notifies you that the Print Job is starting.
protected void printEnableCancel();
  Notifies you that you may be able to cancel the Print Job via the cancelPrint method.
protected void printStatus(String status);
  • status - status text which may be displayed to your user. Typically of the form "Printing Page i of N.".
  Notifies you of the Print Job's progress.
protected void printError(String error);
  • error - error text which may be displayed to your user.
  Notifies you that the Print Job has encountered and error.
protected void printFinishing();
  Notifies you that the Print Job is finishing.
Resource Usage
public void releaseResources();
  Releases your hold on the resources of the proxy doc. NB the doc may still be used by any DocviewSwingFISTbean which is using it.