Package org.gnome.webkit
Class PrintOperation.Builder<B extends PrintOperation.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.webkit.PrintOperation.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
PrintOperation
public static class PrintOperation.Builder<B extends PrintOperation.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 thePrintOperation
object.onFailed
(PrintOperation.FailedCallback handler) Emitted when an error occurs while printing.Emitted when the print operation has finished doing everything required for printing.setPageSetup
(PageSetup pageSetup) The initialGtkPageSetup
for the print operation.setPrintSettings
(PrintSettings printSettings) The initialGtkPrintSettings
for the print operation.setWebView
(WebView webView) TheWebKitWebView
that will be printed.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 thePrintOperation
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 toPrintOperation
.- Overrides:
build
in classGObject.Builder<B extends PrintOperation.Builder<B>>
- Returns:
- a new instance of
PrintOperation
with the properties that were set in the Builder object. - Throws:
UnsupportedPlatformException
- when run on an unsupported platform
-
setPageSetup
-
setPrintSettings
The initialGtkPrintSettings
for the print operation.- Parameters:
printSettings
- the value for theprint-settings
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setWebView
-
onFailed
Emitted when an error occurs while printing. The givenerror
, of the domainWEBKIT_PRINT_ERROR
, contains further details of the failure. TheWebKitPrintOperation
::finished signal is emitted after this one.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onFinished
Emitted when the print operation has finished doing everything required for printing.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-