Class ConfirmCallback.Action

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

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

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

    Modifier and Type
    Method
    Description
    void
    Notifies the browser that the JavaScript confirmation dialog should be canceled.
    void
    ok()
    Notifies the browser that the JavaScript confirmation dialog should be closed with the "OK" action.

    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.ShowConfirm.Response> consumer)
  • Method Details

    • ok

      public void ok()
      Notifies the browser that the JavaScript confirmation dialog should be closed with the "OK" action.
    • cancel

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