Class OpenFileCallback.Action

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

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

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

    Modifier and Type
    Method
    Description
    void
    Notifies the browser that the file chooser dialog should be canceled.
    void
    open(Path filePath)
    Notifies the browser that the file was 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.OpenFile.Response> consumer)
  • Method Details

    • open

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

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