Package org.gnome.webkit
Class FaviconDatabase.Builder<B extends FaviconDatabase.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.webkit.FaviconDatabase.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
FaviconDatabase
public static class FaviconDatabase.Builder<B extends FaviconDatabase.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 theFaviconDatabase
object.This signal is emitted when the favicon URI ofpageUri
has been changed tofaviconUri
in the database.Methods 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 theFaviconDatabase
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 toFaviconDatabase
.- Overrides:
build
in classGObject.Builder<B extends FaviconDatabase.Builder<B>>
- Returns:
- a new instance of
FaviconDatabase
with the properties that were set in the Builder object. - Throws:
UnsupportedPlatformException
- when run on an unsupported platform
-
onFaviconChanged
This signal is emitted when the favicon URI ofpageUri
has been changed tofaviconUri
in the database. You can connect to this signal and call webkit_favicon_database_get_favicon() to get the favicon. If you are interested in the favicon of aWebKitWebView
it's easier to use theWebKitWebView
:favicon property. See webkit_web_view_get_favicon() for more details.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-