Package org.gnome.gtk
Class PrintJob.Builder<B extends PrintJob.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.PrintJob.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
PrintJob
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building thePrintJobobject.Emitted when the status of a job changes.setPageSetup(PageSetup pageSetup) Page setup.setPrinter(Printer printer) The printer to send the job to.setSettings(PrintSettings settings) Printer settings.The title of the print job.setTrackPrintStatus(boolean trackPrintStatus) trueif the print job will continue to emit status-changed signals after the print data has been setn to the printer.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 thePrintJobobject. 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 toPrintJob.- Overrides:
buildin classGObject.Builder<B extends PrintJob.Builder<B>>- Returns:
- a new instance of
PrintJobwith the properties that were set in the Builder object.
-
setPageSetup
-
setPrinter
-
setSettings
Printer settings.- Parameters:
settings- the value for thesettingsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setTitle
-
setTrackPrintStatus
trueif the print job will continue to emit status-changed signals after the print data has been setn to the printer.- Parameters:
trackPrintStatus- the value for thetrack-print-statusproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
onStatusChanged
Emitted when the status of a job changes.The signal handler can use
PrintJob.getStatus()to obtain the new status.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-