Package org.gnome.gtk
Class Assistant.Builder<B extends Assistant.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.Assistant.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
Accessible.Builder<B>,BuilderInterface
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theAssistantobject.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.This widget will be removed in GTK 5Methods 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 theAssistantobject. 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:
buildin classWindow.Builder<B extends Assistant.Builder<B>>- Returns:
- a new instance of
Assistantwith the properties that were set in the Builder object.
-
setUseHeaderBar
Deprecated.This widget will be removed in GTK 5trueif the assistant uses aGtkHeaderBarfor 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
trueorfalse.- Parameters:
useHeaderBar- the value for theuse-header-barproperty- Returns:
- the
Builderinstance 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
GtkAssistantis 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.PROGRESSafter the confirmation page and handle this operation within theGtk.Assistant::preparesignal of the progress page.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance 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
Builderinstance 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
Builderinstance 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
Builderinstance 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
Builderinstance is returned, to allow method chaining - See Also:
-