Class PrintCallback.Action

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

public static final class PrintCallback.Action extends AsyncCallbackAction<com.teamdev.jxbrowser.print.internal.rpc.Print.Response>
An action providing a response to the PrintCallback.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
    Notifies the browser that the printing should be canceled.
    void
    Notifies the browser to proceed with the printing.
    void
    Notifies the browser to display the print preview dialog.

    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.Print.Response> consumer)
  • Method Details

    • showPrintPreview

      public void showPrintPreview()
      Notifies the browser to display the print preview dialog.
    • print

      public void print()
      Notifies the browser to proceed with the printing. The PrintHtmlCallback or PrintPdfCallback will be invoked to configure the print settings.

      If none of these callbacks is registered, then the printing is canceled.

    • cancel

      public void cancel()
      Notifies the browser that the printing should be canceled.