Class OpenExternalAppCallback.Action

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

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

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

    Modifier and Type
    Method
    Description
    void
    Notifies the browser that the link should not be opened in the external application.
    void
    Notifies the browser that the link should be opened in the associated external application.

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

    • open

      public void open()
      Notifies the browser that the link should be opened in the associated external application.

      If the application is not running, the operating system should launch the application and open the link in it.

    • cancel

      public void cancel()
      Notifies the browser that the link should not be opened in the external application.