Class PromptCallback.Action

java.lang.Object
com.teamdev.jxbrowser.callback.AsyncCallbackAction<com.teamdev.jxbrowser.js.internal.rpc.ShowPrompt.Response>
com.teamdev.jxbrowser.browser.callback.PromptCallback.Action
Enclosing interface:
PromptCallback

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

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

    Modifier and Type
    Method
    Description
    void
    Notifies the browser that the JavaScript prompt dialog should be canceled.
    void
    ok(String text)
    Notifies the browser that the JavaScript prompt dialog should be closed with the given text as a response.

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

    • ok

      public void ok(String text)
      Notifies the browser that the JavaScript prompt dialog should be closed with the given text as a response.
    • cancel

      public void cancel()
      Notifies the browser that the JavaScript prompt dialog should be canceled.