Package org.gnome.gtk
Class PrintDialog.Builder<B extends PrintDialog.Builder<B>>
java.lang.Object
org.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building thePrintDialogobject.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
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 thePrintDialogobject. 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:
buildin classGObject.Builder<B extends PrintDialog.Builder<B>>- Returns:
- a new instance of
PrintDialogwith 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-labelproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.14
-
setModal
Whether the print dialog is modal.- Parameters:
modal- the value for themodalproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.14
-
setPageSetup
-
setPrintSettings
The print settings to use.- Parameters:
printSettings- the value for theprint-settingsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.14
-
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 thetitleproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.14
-