Class DefaultPrintCallback

java.lang.Object
com.teamdev.jxbrowser.view.javafx.callback.DefaultPrintCallback
All Implemented Interfaces:
BrowserAsyncCallback<PrintCallback.Params,PrintCallback.Action>, BrowserCallback, PrintCallback, AsyncCallback<PrintCallback.Params,PrintCallback.Action>, Callback

public final class DefaultPrintCallback extends Object implements PrintCallback
The default PrintCallback implementation that allows the engine to show the print preview dialog.
  • Constructor Details

    • DefaultPrintCallback

      public DefaultPrintCallback()
  • Method Details

    • on

      public void on(PrintCallback.Params params, PrintCallback.Action tell)
      Description copied from interface: AsyncCallback
      Invoked when the callback needs a response for the given callback parameters. The response can be provided asynchronously from a different thread or before the method returns. The response can be provided only once.
      Specified by:
      on in interface AsyncCallback<PrintCallback.Params,PrintCallback.Action>
      Parameters:
      params - the object that represents the callback parameters
      tell - the object that can be used to provide the callback response. One of its methods must be invoked to provide the response. Once the response has been provided, any call to the object methods will result in the IllegalStateException