Package org.webkitgtk
Class Notification.Builder<B extends Notification.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.webkitgtk.Notification.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
Notification
public static class Notification.Builder<B extends Notification.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 theNotificationobject.onClicked(Notification.ClickedCallback handler) Emitted when a notification has been clicked.onClosed(Notification.ClosedCallback handler) Emitted when a notification has been withdrawn.Methods 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 theNotificationobject. 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 toNotification.- Overrides:
buildin classGObject.Builder<B extends Notification.Builder<B>>- Returns:
- a new instance of
Notificationwith the properties that were set in the Builder object.
-
onClicked
Emitted when a notification has been clicked. See webkit_notification_clicked().- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.12
- See Also:
-
onClosed
Emitted when a notification has been withdrawn.The default handler will close the notification using libnotify, if built with support for it.
- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.8
- See Also:
-