Class AboutDialog.Builder<B extends AboutDialog.Builder<B>>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
Accessible.Builder<B>,BuilderInterface
- Enclosing class:
AboutDialog
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theAboutDialogobject.Emitted when a URL is activated.setApplicationIcon(String applicationIcon) The name of the application icon.setApplicationName(String applicationName) The name of the application.setArtists(String[] artists) The list of artists of the application.setComments(String comments) The comments about the application.setCopyright(String copyright) The copyright information.setDebugInfo(String debugInfo) The debug information.setDebugInfoFilename(String debugInfoFilename) The debug information filename.setDesigners(String[] designers) The list of designers of the application.setDeveloperName(String developerName) The developer name.setDevelopers(String[] developers) The list of developers of the application.setDocumenters(String[] documenters) The list of documenters of the application.setIssueUrl(String issueUrl) The URL for the application's issue tracker.setLicense(String license) The license text.setLicenseType(License licenseType) The license type.setReleaseNotes(String releaseNotes) The release notes of the application.setReleaseNotesVersion(String releaseNotesVersion) The version described by the application's release notes.setSupportUrl(String supportUrl) The URL of the application's support page.setTranslatorCredits(String translatorCredits) The translator credits string.setVersion(String version) The version of the application.setWebsite(String website) The URL of the application's website.Methods inherited from class org.gnome.adw.Dialog.Builder
onCloseAttempt, onClosed, setCanClose, setChild, setContentHeight, setContentWidth, setDefaultWidget, setFocusWidget, setFollowsContentSize, setPresentationMode, setTitleMethods 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 theAboutDialogobject. 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 toAboutDialog.- Overrides:
buildin classDialog.Builder<B extends AboutDialog.Builder<B>>- Returns:
- a new instance of
AboutDialogwith the properties that were set in the Builder object.
-
setApplicationIcon
-
setApplicationName
-
setArtists
The list of artists of the application.It will be displayed on the Credits page.
Each name may contain email addresses and URLs, see the introduction for more details.
See also:
AboutDialog:developersAboutDialog:designersAboutDialog:documentersAboutDialog:translator-creditsAboutDialog.addCreditSection(java.lang.String, java.lang.String[])AboutDialog.addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
artists- the value for theartistsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.5
-
setComments
The comments about the application.Comments will be shown on the Details page, above links.
Unlike
Gtk.AboutDialog:comments, this string can be long and detailed. It can also contain links and Pango markup.- Parameters:
comments- the value for thecommentsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.5
-
setCopyright
The copyright information.This should be a short string of one or two lines, for example:
© 2022 Example.The copyright information will be displayed on the Legal page, above the application license.
AboutDialog.addLegalSection(java.lang.String, java.lang.String, org.gnome.gtk.License, java.lang.String)can be used to add copyright information for the application dependencies or other components.- Parameters:
copyright- the value for thecopyrightproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.5
-
setDebugInfo
The debug information.Debug information will be shown on the Troubleshooting page. It's intended to be attached to issue reports when reporting issues against the application.
AdwAboutDialogprovides a quick way to save debug information to a file. When saving,AboutDialog:debug-info-filenamewould be used as the suggested filename.Debug information cannot contain markup or links.
- Parameters:
debugInfo- the value for thedebug-infoproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.5
-
setDebugInfoFilename
The debug information filename.It will be used as the suggested filename when saving debug information to a file.
See
AboutDialog:debug-info.- Parameters:
debugInfoFilename- the value for thedebug-info-filenameproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.5
-
setDesigners
The list of designers of the application.It will be displayed on the Credits page.
Each name may contain email addresses and URLs, see the introduction for more details.
See also:
AboutDialog:developersAboutDialog:artistsAboutDialog:documentersAboutDialog:translator-creditsAboutDialog.addCreditSection(java.lang.String, java.lang.String[])AboutDialog.addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
designers- the value for thedesignersproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.5
-
setDeveloperName
The developer name.The developer name is displayed on the main page, under the application name.
If the application is developed by multiple people, the developer name can be set to values like "AppName team", "AppName developers" or "The AppName project", and the individual contributors can be listed on the Credits page, with
AboutDialog:developersand related properties.- Parameters:
developerName- the value for thedeveloper-nameproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.5
-
setDevelopers
The list of developers of the application.It will be displayed on the Credits page.
Each name may contain email addresses and URLs, see the introduction for more details.
See also:
AboutDialog:designersAboutDialog:artistsAboutDialog:documentersAboutDialog:translator-creditsAboutDialog.addCreditSection(java.lang.String, java.lang.String[])AboutDialog.addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
developers- the value for thedevelopersproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.5
-
setDocumenters
The list of documenters of the application.It will be displayed on the Credits page.
Each name may contain email addresses and URLs, see the introduction for more details.
See also:
AboutDialog:developersAboutDialog:designersAboutDialog:artistsAboutDialog:translator-creditsAboutDialog.addCreditSection(java.lang.String, java.lang.String[])AboutDialog.addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
documenters- the value for thedocumentersproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.5
-
setIssueUrl
-
setLicense
The license text.This can be used to set a custom text for the license if it can't be set via
AboutDialog:license-type.When set,
AboutDialog:license-typewill be set toGTK_LICENSE_CUSTOM.The license text will be displayed on the Legal page, below the copyright information.
License text can contain Pango markup and links.
AboutDialog.addLegalSection(java.lang.String, java.lang.String, org.gnome.gtk.License, java.lang.String)can be used to add license information for the application dependencies or other components.- Parameters:
license- the value for thelicenseproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.5
-
setLicenseType
The license type.Allows to set the application's license froma list of known licenses.
If the application's license is not in the list,
AboutDialog:licensecan be used instead. The license type will be automatically set toGTK_LICENSE_CUSTOMin that case.If set to
GTK_LICENSE_UNKNOWN, no information will be displayed.If the license type is different from
GTK_LICENSE_CUSTOM.AboutDialog:licensewill be cleared out.The license description will be displayed on the Legal page, below the copyright information.
AboutDialog.addLegalSection(java.lang.String, java.lang.String, org.gnome.gtk.License, java.lang.String)can be used to add license information for the application dependencies or other components.- Parameters:
licenseType- the value for thelicense-typeproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.5
-
setReleaseNotes
The release notes of the application.Release notes are displayed on the the What's New page.
Release notes are formatted the same way as AppStream descriptions.
The supported formatting options are:
- Paragraph (
<p>) - Ordered list (
<ol>), with list items (<li>) - Unordered list (
<ul>), with list items (<li>)
Within paragraphs and list items, emphasis (
<em>) and inline code (<code>) text styles are supported. The emphasis is rendered in italic, while inline code is shown in a monospaced font.Any text outside paragraphs or list items is ignored.
Nested lists are not supported.
AdwAboutDialogdisplays the version above the release notes. If set, theAboutDialog:release-notes-versionof the property will be used as the version; otherwise,AboutDialog:versionis used.- Parameters:
releaseNotes- the value for therelease-notesproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.5
- Paragraph (
-
setReleaseNotesVersion
The version described by the application's release notes.The release notes version is displayed on the What's New page, above the release notes.
If not set,
AboutDialog:versionwill be used instead.For example, an application with the current version 2.0.2 might want to keep the release notes from 2.0.0, and set the release notes version accordingly.
See
AboutDialog:release-notes.- Parameters:
releaseNotesVersion- the value for therelease-notes-versionproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.5
-
setSupportUrl
-
setTranslatorCredits
The translator credits string.It will be displayed on the Credits page.
This string should be
"translator-credits"or"translator_credits"and should be marked as translatable.The string may contain email addresses and URLs, see the introduction for more details.
See also:
AboutDialog:developersAboutDialog:designersAboutDialog:artistsAboutDialog:documentersAboutDialog.addCreditSection(java.lang.String, java.lang.String[])AboutDialog.addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
translatorCredits- the value for thetranslator-creditsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.5
-
setVersion
The version of the application.The version is displayed on the main page.
If
AboutDialog:release-notes-versionis not set, the version will also be displayed above the release notes on the What's New page.- Parameters:
version- the value for theversionproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.5
-
setWebsite
The URL of the application's website.Website is displayed on the Details page, below comments, or on the main page if the Details page doesn't have any other content.
Applications can add other links below, see
AboutDialog.addLink(java.lang.String, java.lang.String).- Parameters:
website- the value for thewebsiteproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.5
-
onActivateLink
Emitted when a URL is activated.Applications may connect to it to override the default behavior, which is to call
Gtk.showUri(org.gnome.gtk.Window, java.lang.String, int).- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.5
- See Also:
-