Package org.gnome.gtk
Class PrintDialog.Builder<B extends PrintDialog.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.PrintDialog.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
PrintDialog
public static class PrintDialog.Builder<B extends PrintDialog.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 thePrintDialog
object.setAcceptLabel
(String acceptLabel) A label that may be shown on the accept button of a print dialog that is presented byPrintDialog.setup(org.gnome.gtk.Window, org.gnome.gio.Cancellable, org.gnome.gio.AsyncReadyCallback)
.setModal
(boolean modal) Whether the print dialog is modal.setPageSetup
(PageSetup pageSetup) The page setup to use.setPrintSettings
(PrintSettings printSettings) The print settings to use.A title that may be shown on the print dialog that is presented byPrintDialog.setup(org.gnome.gtk.Window, org.gnome.gio.Cancellable, org.gnome.gio.AsyncReadyCallback)
.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 thePrintDialog
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 toPrintDialog
.- Overrides:
build
in classGObject.Builder<B extends PrintDialog.Builder<B>>
- Returns:
- a new instance of
PrintDialog
with the properties that were set in the Builder object.
-
setAcceptLabel
A label that may be shown on the accept button of a print dialog that is presented byPrintDialog.setup(org.gnome.gtk.Window, org.gnome.gio.Cancellable, org.gnome.gio.AsyncReadyCallback)
.- Parameters:
acceptLabel
- the value for theaccept-label
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setModal
Whether the print dialog is modal.- Parameters:
modal
- the value for themodal
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setPageSetup
-
setPrintSettings
The print settings to use.- Parameters:
printSettings
- the value for theprint-settings
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setTitle
A title that may be shown on the print dialog that is presented byPrintDialog.setup(org.gnome.gtk.Window, org.gnome.gio.Cancellable, org.gnome.gio.AsyncReadyCallback)
.- Parameters:
title
- the value for thetitle
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-