Class OpenFilesCallback.Action

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

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

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

    Modifier and Type
    Method
    Description
    void
    Notifies the browser that the file chooser dialog should be canceled.
    void
    open(Path... filePaths)
    Notifies the browser that the files were selected in the file chooser 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.OpenFiles.Response> consumer)
  • Method Details

    • open

      public void open(Path... filePaths)
      Notifies the browser that the files were selected in the file chooser dialog.
      Parameters:
      filePaths - the list of the selected file paths
    • cancel

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