Package org.webkitgtk
Class AutomationSession.Builder<B extends AutomationSession.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.webkitgtk.AutomationSession.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
AutomationSession
public static class AutomationSession.Builder<B extends AutomationSession.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 theAutomationSessionobject.onCreateWebView(@Nullable String detail, AutomationSession.CreateWebViewCallback handler) This signal is emitted when the automation client requests a new browsing context to interact with it.This signal is emitted when the given automation session is about to finish.The session unique identifier.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 theAutomationSessionobject. 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 toAutomationSession.- Overrides:
buildin classGObject.Builder<B extends AutomationSession.Builder<B>>- Returns:
- a new instance of
AutomationSessionwith the properties that were set in the Builder object.
-
setId
-
onCreateWebView
This signal is emitted when the automation client requests a new browsing context to interact with it. The callback handler should return aWebKitWebViewcreated withWebKitWebView:is-controlled-by-automation construct property enabled andWebKitWebView:automation-presentation-type construct property set if needed.If the signal is emitted with "tab" detail, the returned
WebKitWebViewshould be a new web view added to a new tab of the current browsing context window. If the signal is emitted with "window" detail, the returnedWebKitWebViewshould be a new web view added to a new window. When creating a new web view and there's an active browsing context, the new window or tab shouldn't be focused.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.18
- See Also:
-
onWillClose
This signal is emitted when the given automation session is about to finish. It allows clients to perform any cleanup tasks before the session is destroyed.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.46
- See Also:
-