Package org.gnome.webkit.wpe
Class HitTestResult.Builder<B extends HitTestResult.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.webkit.wpe.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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theHitTestResult
object.setContext
(int context) Bitmask ofWebKitHitTestResultContext
flags representing the context of theWebKitHitTestResult
.setImageUri
(String imageUri) The URI of the image if flagHitTestResultContext.IMAGE
is present inWebKitHitTestResult
:contextsetLinkLabel
(String linkLabel) The label of the link if flagHitTestResultContext.LINK
is present inWebKitHitTestResult
:contextsetLinkTitle
(String linkTitle) The title of the link if flagHitTestResultContext.LINK
is present inWebKitHitTestResult
:contextsetLinkUri
(String linkUri) The URI of the link if flagHitTestResultContext.LINK
is present inWebKitHitTestResult
:contextsetMediaUri
(String mediaUri) The URI of the media if flagHitTestResultContext.MEDIA
is present inWebKitHitTestResult
:contextMethods inherited from class org.gnome.gobject.GObject.Builder
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theHitTestResult
object. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])
to create a new GObject instance, which is then cast toHitTestResult
.- Overrides:
build
in classGObject.Builder<B extends HitTestResult.Builder<B>>
- Returns:
- a new instance of
HitTestResult
with the properties that were set in the Builder object. - Throws:
UnsupportedPlatformException
- when run on an unsupported platform
-
setContext
Bitmask ofWebKitHitTestResultContext
flags representing the context of theWebKitHitTestResult
.- Parameters:
context
- the value for thecontext
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setImageUri
The URI of the image if flagHitTestResultContext.IMAGE
is present inWebKitHitTestResult
:context- Parameters:
imageUri
- the value for theimage-uri
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setLinkLabel
The label of the link if flagHitTestResultContext.LINK
is present inWebKitHitTestResult
:context- Parameters:
linkLabel
- the value for thelink-label
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setLinkTitle
The title of the link if flagHitTestResultContext.LINK
is present inWebKitHitTestResult
:context- Parameters:
linkTitle
- the value for thelink-title
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setLinkUri
The URI of the link if flagHitTestResultContext.LINK
is present inWebKitHitTestResult
:context- Parameters:
linkUri
- the value for thelink-uri
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setMediaUri
The URI of the media if flagHitTestResultContext.MEDIA
is present inWebKitHitTestResult
:context- Parameters:
mediaUri
- the value for themedia-uri
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-