Class SaveFileCallback.Action

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

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

    • Action

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

    • save

      public void save(Path filePath)
      Saves the file was selected in the file chooser dialog.
      Parameters:
      filePath - the selected file
    • cancel

      public void cancel()
      Cancels saving the file.