Class PrintPdfCallback.Action

java.lang.Object
com.teamdev.jxbrowser.callback.AsyncCallbackAction<com.teamdev.jxbrowser.print.internal.rpc.PrintPdf.Response>
com.teamdev.jxbrowser.browser.callback.PrintPdfCallback.Action
Enclosing interface:
PrintPdfCallback

public static final class PrintPdfCallback.Action extends AsyncCallbackAction<com.teamdev.jxbrowser.print.internal.rpc.PrintPdf.Response>
An action providing a response to the PrintPdfCallback.
Since:
7.13
  • Constructor Summary

    Constructors
    Constructor
    Description
    Action(Consumer<com.teamdev.jxbrowser.print.internal.rpc.PrintPdf.Response> consumer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Notifies the browser to cancel the printing.
    void
    proceed(Printer<?> printer)
    Applies the configured print settings and notifies the browser to proceed with printing.

    Methods inherited from class com.teamdev.jxbrowser.callback.AsyncCallbackAction

    isClosed

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Action

      public Action(Consumer<com.teamdev.jxbrowser.print.internal.rpc.PrintPdf.Response> consumer)
  • Method Details

    • proceed

      public void proceed(Printer<?> printer)
      Applies the configured print settings and notifies the browser to proceed with printing.
      Throws:
      IllegalStateException - when printing on the PDF printer and the path to the destination PDF file is not configured
    • cancel

      public void cancel()
      Notifies the browser to cancel the printing.