Interface SyncCallback<P,R>

Type Parameters:
P - the type of callback parameters
R - the type of callback response
All Superinterfaces:
Callback
All Known Subinterfaces:
AllowPluginCallback, BeforeSendUploadDataCallback, BeforeStartTransactionCallback, BeforeUrlRequestCallback, BrowserSyncCallback<P,R>, CanAccessFileCallback, CanGetCookiesCallback, CanSetCookieCallback, CreatePopupCallback, EnterMouseCallback, ExitMouseCallback, InjectCssCallback, InjectJsCallback, InterceptUrlRequestCallback, com.teamdev.jxbrowser.media.callback.MediaSyncCallback<P,R>, MoveMouseCallback, MoveMouseWheelCallback, NavigationSyncCallback<P,R>, NetworkSyncCallback<P,R>, OpenPopupCallback, PluginsSyncCallback<P,R>, PressKeyCallback, PressMouseCallback, ReceiveHeadersCallback, ReleaseKeyCallback, ReleaseMouseCallback, SelectMediaDeviceCallback, ShowHttpErrorPageCallback, ShowNetErrorPageCallback, StartNavigationCallback, TypeKeyCallback, VerifyCertificateCallback
All Known Implementing Classes:
DefaultOpenPopupCallback, DefaultOpenPopupCallback, DefaultOpenPopupCallback
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SyncCallback<P,R> extends Callback
A common interface that all synchronous callbacks must extend.
  • Method Summary

    Modifier and Type
    Method
    Description
    on(P params)
    Invoked when the callback needs a response of type R that may be determined based on the provided callback parameters.
  • Method Details

    • on

      @CheckForNull R on(P params)
      Invoked when the callback needs a response of type R that may be determined based on the provided callback parameters.
      Parameters:
      params - the object that represents the callback parameters
      Returns:
      an object of type R that represents the callback response that should be determined based on the provided parameters
      Implementation Note:
      It is strongly recommended that implementers of this method do not return null. If this method returns null, then the code that calls this method decides how to handle this situation