Class SaveAsPdfCallback.Action

java.lang.Object
com.teamdev.jxbrowser.callback.AsyncCallbackAction<com.teamdev.jxbrowser.internal.rpc.SaveAsPdf.Response>
com.teamdev.jxbrowser.browser.callback.SaveAsPdfCallback.Action
Enclosing interface:
SaveAsPdfCallback

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

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

    Modifier and Type
    Method
    Description
    void
    Notifies the browser that the save file dialog was cancelled.
    void
    save(Path filePath)
    Notifies the browser that the save file dialog was closed and the given file was selected.

    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.internal.rpc.SaveAsPdf.Response> consumer)
  • Method Details

    • save

      public void save(Path filePath)
      Notifies the browser that the save file dialog was closed and the given file was selected. The file might not exist, but the directory where the given file is located must have the write permissions for the process where the engine is running.
    • cancel

      public void cancel()
      Notifies the browser that the save file dialog was cancelled.