Class HitTestResult.Builder<B extends HitTestResult.Builder<B>>

java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.webkitgtk.webprocessextension.HitTestResult.Builder<B>
Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
HitTestResult

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

      public B setContext(int context)
      Bitmask of WebKitHitTestResultContext flags representing the context of the WebKitHitTestResult.
      Parameters:
      context - the value for the context property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setImageUri

      public B setImageUri(String imageUri)
      The URI of the image if flag HitTestResultContext.IMAGE is present in WebKitHitTestResult:context
      Parameters:
      imageUri - the value for the image-uri property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setLinkLabel

      public B setLinkLabel(String linkLabel)
      The label of the link if flag HitTestResultContext.LINK is present in WebKitHitTestResult:context
      Parameters:
      linkLabel - the value for the link-label property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setLinkTitle

      public B setLinkTitle(String linkTitle)
      The title of the link if flag HitTestResultContext.LINK is present in WebKitHitTestResult:context
      Parameters:
      linkTitle - the value for the link-title property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setLinkUri

      public B setLinkUri(String linkUri)
      The URI of the link if flag HitTestResultContext.LINK is present in WebKitHitTestResult:context
      Parameters:
      linkUri - the value for the link-uri property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setMediaUri

      public B setMediaUri(String mediaUri)
      The URI of the media if flag HitTestResultContext.MEDIA is present in WebKitHitTestResult:context
      Parameters:
      mediaUri - the value for the media-uri property
      Returns:
      the Builder instance is returned, to allow method chaining