Class FindController.Builder<B extends FindController.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
FindController

public static class FindController.Builder<B extends FindController.Builder<B>> extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public FindController build()
      Finish building the FindController object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to FindController.
      Overrides:
      build in class GObject.Builder<B extends FindController.Builder<B>>
      Returns:
      a new instance of FindController with the properties that were set in the Builder object.
    • setWebView

      public B setWebView(WebView webView)
      The WebKitWebView this controller is associated to.
      Parameters:
      webView - the value for the web-view property
      Returns:
      the Builder instance is returned, to allow method chaining
    • onCountedMatches

      public B onCountedMatches(FindController.CountedMatchesCallback handler)
      This signal is emitted when the WebKitFindController has counted the number of matches for a given text after a call to webkit_find_controller_count_matches().
      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also:
    • onFailedToFindText

      public B onFailedToFindText(FindController.FailedToFindTextCallback handler)
      This signal is emitted when a search operation does not find any result for the given text. It will be issued if the text is not found asynchronously after a call to webkit_find_controller_search(), webkit_find_controller_search_next() or webkit_find_controller_search_previous().
      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also:
    • onFoundText

      public B onFoundText(FindController.FoundTextCallback handler)
      This signal is emitted when a given text is found in the web page text. It will be issued if the text is found asynchronously after a call to webkit_find_controller_search(), webkit_find_controller_search_next() or webkit_find_controller_search_previous().
      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also: