Class PrintHtmlCallback.Action

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

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

    Constructors
    Constructor
    Description
    Action(Consumer<com.teamdev.jxbrowser.print.internal.rpc.PrintHtml.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.PrintHtml.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.