Class OpenFolderCallback.Action

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

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

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

    Modifier and Type
    Method
    Description
    void
    Notifies the browser that the folder chooser dialog should be canceled.
    void
    open(Path folderPath)
    Notifies the browser that the folder was selected in the 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.internal.rpc.OpenFolder.Response> consumer)
  • Method Details

    • open

      public void open(Path folderPath)
      Notifies the browser that the folder was selected in the dialog.
      Parameters:
      folderPath - the selected folder
    • cancel

      public void cancel()
      Notifies the browser that the folder chooser dialog should be canceled.