Package org.gnome.gtk
Class Assistant.Builder<B extends Assistant.Builder<B>>
java.lang.Object
io.github.jwharm.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.Assistant.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
,Accessible.Builder<B>
- Enclosing class:
Assistant
public static class Assistant.Builder<B extends Assistant.Builder<B>>
extends Window.Builder<B>
implements Accessible.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theAssistant
object.onApply
(Assistant.ApplyCallback handler) Deprecated.This widget will be removed in GTK 5onCancel
(Assistant.CancelCallback handler) Deprecated.This widget will be removed in GTK 5onClose
(Assistant.CloseCallback handler) Deprecated.This widget will be removed in GTK 5onEscape
(Assistant.EscapeCallback handler) Deprecated.This widget will be removed in GTK 5onPrepare
(Assistant.PrepareCallback handler) Deprecated.This widget will be removed in GTK 5setUseHeaderBar
(int useHeaderBar) Deprecated.Methods 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, setHandleMenubarAccel, setHideOnClose, setIconName, setMaximized, setMnemonicsVisible, setModal, setResizable, setStartupId, setTitle, setTitlebar, setTransientFor
Methods 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, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setReceivesDefault, setSensitive, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, setWidthRequest
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.gnome.gtk.Accessible.Builder
setAccessibleRole
Methods inherited from interface io.github.jwharm.javagi.gobject.BuilderInterface
addBuilderProperty, connect, connect, getArena
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theAssistant
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 toAssistant
.- Overrides:
build
in classWindow.Builder<B extends Assistant.Builder<B>>
- Returns:
- a new instance of
Assistant
with the properties that were set in the Builder object.
-
setUseHeaderBar
Deprecated.true
if the assistant uses aGtkHeaderBar
for action buttons instead of the action-area.For technical reasons, this property is declared as an integer property, but you should only set it to
true
orfalse
.- Parameters:
useHeaderBar
- the value for theuse-header-bar
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
onApply
Deprecated.This widget will be removed in GTK 5Emitted when the apply button is clicked.The default behavior of the
GtkAssistant
is to switch to the page after the current page, unless the current page is the last one.A handler for the ::apply signal should carry out the actions for which the wizard has collected data. If the action takes a long time to complete, you might consider putting a page of type
AssistantPageType.PROGRESS
after the confirmation page and handle this operation within theGtk.Assistant::prepare
signal of the progress page.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onCancel
Deprecated.This widget will be removed in GTK 5Emitted when then the cancel button is clicked.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onClose
Deprecated.This widget will be removed in GTK 5Emitted either when the close button of a summary page is clicked, or when the apply button in the last page in the flow (of typeAssistantPageType.CONFIRM
) is clicked.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onEscape
Deprecated.This widget will be removed in GTK 5The action signal for the Escape binding.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onPrepare
Deprecated.This widget will be removed in GTK 5Emitted when a new page is set as the assistant's current page, before making the new page visible.A handler for this signal can do any preparations which are necessary before showing
page
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-