Package org.gnome.adw
Class MessageDialog.Builder<B extends MessageDialog.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.adw.MessageDialog.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
Accessible.Builder<B>,BuilderInterface
- Enclosing class:
MessageDialog
public static class MessageDialog.Builder<B extends MessageDialog.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 theMessageDialogobject.onResponse(@Nullable String detail, MessageDialog.ResponseCallback handler) Deprecated.Deprecated.UseAlertDialog.setBodyUseMarkup(boolean bodyUseMarkup) Deprecated.UseAlertDialog.setCloseResponse(String closeResponse) Deprecated.UseAlertDialog.setDefaultResponse(String defaultResponse) Deprecated.UseAlertDialog.setExtraChild(Widget extraChild) Deprecated.UseAlertDialog.setHeading(String heading) Deprecated.UseAlertDialog.setHeadingUseMarkup(boolean headingUseMarkup) Deprecated.UseAlertDialog.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, 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 theMessageDialogobject. 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 toMessageDialog.- Overrides:
buildin classWindow.Builder<B extends MessageDialog.Builder<B>>- Returns:
- a new instance of
MessageDialogwith the properties that were set in the Builder object.
-
setBody
Deprecated.UseAlertDialog.The body text of the dialog.- Parameters:
body- the value for thebodyproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.2
-
setBodyUseMarkup
Deprecated.UseAlertDialog.Whether the body text includes Pango markup.- Parameters:
bodyUseMarkup- the value for thebody-use-markupproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.2
-
setCloseResponse
Deprecated.UseAlertDialog.The ID of the close response.It will be passed to
MessageDialog::responseif the window is closed by pressingEscapeor with a system action.It doesn't have to correspond to any of the responses in the dialog.
The default close response is
close.- Parameters:
closeResponse- the value for theclose-responseproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.2
-
setDefaultResponse
Deprecated.UseAlertDialog.The response ID of the default response.The button corresponding to this response will be set as the default widget of the dialog.
If not set, the default widget will not be set, and the last added response will be focused by default.
See
Gtk.Window:default-widget.- Parameters:
defaultResponse- the value for thedefault-responseproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.2
-
setExtraChild
Deprecated.UseAlertDialog.The child widget.Displayed below the heading and body.
- Parameters:
extraChild- the value for theextra-childproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.2
-
setHeading
Deprecated.UseAlertDialog.The heading of the dialog.- Parameters:
heading- the value for theheadingproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.2
-
setHeadingUseMarkup
Deprecated.UseAlertDialog.Whether the heading includes Pango markup.- Parameters:
headingUseMarkup- the value for theheading-use-markupproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.2
-
onResponse
Deprecated.UseAlertDialog.This signal is emitted when the dialog is closed.responsewill be set to the response ID of the button that had been activated.if the dialog was closed by pressing
Escapeor with a system action,responsewill be set to the value ofMessageDialog:close-response.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.2
- See Also:
-
AlertDialog.