Class BeforeUnloadCallback.Action

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

public static final class BeforeUnloadCallback.Action extends AsyncCallbackAction<com.teamdev.jxbrowser.js.internal.rpc.BeforeUnload.Response>
A responder for the BeforeFormRepostCallback.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
    Notifies the browser that the user decided to leave the current page.
    void
    Notifies the browser that the user decided to stay on the current page.

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

    • stay

      public void stay()
      Notifies the browser that the user decided to stay on the current page.
    • leave

      public void leave()
      Notifies the browser that the user decided to leave the current page.