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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theHitTestResultobject.setContext(int context) Bitmask ofWebKitHitTestResultContextflags representing the context of theWebKitHitTestResult.setImageUri(String imageUri) The URI of the image if flagHitTestResultContext.IMAGEis present inWebKitHitTestResult:contextsetLinkLabel(String linkLabel) The label of the link if flagHitTestResultContext.LINKis present inWebKitHitTestResult:contextsetLinkTitle(String linkTitle) The title of the link if flagHitTestResultContext.LINKis present inWebKitHitTestResult:contextsetLinkUri(String linkUri) The URI of the link if flagHitTestResultContext.LINKis present inWebKitHitTestResult:contextsetMediaUri(String mediaUri) The URI of the media if flagHitTestResultContext.MEDIAis present inWebKitHitTestResult:contextMethods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theHitTestResultobject. 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:
buildin classGObject.Builder<B extends HitTestResult.Builder<B>>- Returns:
- a new instance of
HitTestResultwith the properties that were set in the Builder object.
-
setContext
Bitmask ofWebKitHitTestResultContextflags representing the context of theWebKitHitTestResult.- Parameters:
context- the value for thecontextproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setImageUri
The URI of the image if flagHitTestResultContext.IMAGEis present inWebKitHitTestResult:context- Parameters:
imageUri- the value for theimage-uriproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setLinkLabel
The label of the link if flagHitTestResultContext.LINKis present inWebKitHitTestResult:context- Parameters:
linkLabel- the value for thelink-labelproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setLinkTitle
The title of the link if flagHitTestResultContext.LINKis present inWebKitHitTestResult:context- Parameters:
linkTitle- the value for thelink-titleproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setLinkUri
The URI of the link if flagHitTestResultContext.LINKis present inWebKitHitTestResult:context- Parameters:
linkUri- the value for thelink-uriproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setMediaUri
The URI of the media if flagHitTestResultContext.MEDIAis present inWebKitHitTestResult:context- Parameters:
mediaUri- the value for themedia-uriproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-