Package org.gnome.gtk
Class PrintUnixDialog.Builder<B extends PrintUnixDialog.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gobject.InitiallyUnowned.Builder<B>
org.gnome.gtk.Widget.Builder<B>
org.gnome.gtk.Window.Builder<B>
org.gnome.gtk.Dialog.Builder<B>
org.gnome.gtk.PrintUnixDialog.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
Accessible.Builder<B>,BuilderInterface
- Enclosing class:
PrintUnixDialog
public static class PrintUnixDialog.Builder<B extends PrintUnixDialog.Builder<B>>
extends Dialog.Builder<B>
implements Accessible.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building thePrintUnixDialogobject.setCurrentPage(int currentPage) The current page in the document.setEmbedPageSetup(boolean embedPageSetup) trueif the page setup controls are embedded.setHasSelection(boolean hasSelection) Whether the application has a selection.setManualCapabilities(Set<PrintCapabilities> manualCapabilities) Capabilities the application can handle.setManualCapabilities(PrintCapabilities... manualCapabilities) Capabilities the application can handle.setPageSetup(PageSetup pageSetup) TheGtkPageSetupobject to use.setPrintSettings(PrintSettings printSettings) TheGtkPrintSettingsobject used for this dialog.setSupportSelection(boolean supportSelection) Whether the dialog supports selection.Methods inherited from class org.gnome.gtk.Dialog.Builder
onClose, onResponse, setUseHeaderBarMethods inherited from class org.gnome.gtk.Window.Builder
onActivateDefault, onActivateFocus, onCloseRequest, onEnableDebugging, onKeysChanged, setApplication, setChild, setDecorated, setDefaultHeight, setDefaultWidget, setDefaultWidth, setDeletable, setDestroyWithParent, setDisplay, setFocusVisible, setFocusWidget, setFullscreened, setGravity, setHandleMenubarAccel, setHideOnClose, setIconName, setMaximized, setMnemonicsVisible, setModal, setResizable, setStartupId, setTitle, setTitlebar, setTransientForMethods inherited from class org.gnome.gtk.Widget.Builder
onDestroy, onDirectionChanged, onHide, onKeynavFailed, onMap, onMnemonicActivate, onMoveFocus, onQueryTooltip, onRealize, onShow, onStateFlagsChanged, onUnmap, onUnrealize, setCanFocus, setCanTarget, setCssClasses, setCssName, setCursor, setFocusable, setFocusOnClick, setHalign, setHasTooltip, setHeightRequest, setHexpand, setHexpandSet, setLayoutManager, setLimitEvents, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setReceivesDefault, setSensitive, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, setWidthRequestMethods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gnome.gtk.Accessible.Builder
setAccessibleRoleMethods inherited from interface org.javagi.gobject.BuilderInterface
addBuilderProperty, connect, connect, getArena
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building thePrintUnixDialogobject. 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 toPrintUnixDialog.- Overrides:
buildin classDialog.Builder<B extends PrintUnixDialog.Builder<B>>- Returns:
- a new instance of
PrintUnixDialogwith the properties that were set in the Builder object.
-
setCurrentPage
The current page in the document.- Parameters:
currentPage- the value for thecurrent-pageproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setEmbedPageSetup
trueif the page setup controls are embedded.- Parameters:
embedPageSetup- the value for theembed-page-setupproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setHasSelection
Whether the application has a selection.- Parameters:
hasSelection- the value for thehas-selectionproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setManualCapabilities
Capabilities the application can handle.- Parameters:
manualCapabilities- the value for themanual-capabilitiesproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setPageSetup
-
setPrintSettings
TheGtkPrintSettingsobject used for this dialog.- Parameters:
printSettings- the value for theprint-settingsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setSupportSelection
Whether the dialog supports selection.- Parameters:
supportSelection- the value for thesupport-selectionproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setManualCapabilities
Capabilities the application can handle.- Parameters:
manualCapabilities- the value for themanual-capabilitiesproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-