Class AboutDialog.Builder<B extends AboutDialog.Builder<B>>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
,Accessible.Builder<B>
- Enclosing class:
AboutDialog
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theAboutDialog
object.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, setTitle
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 theAboutDialog
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 toAboutDialog
.- Overrides:
build
in classDialog.Builder<B extends AboutDialog.Builder<B>>
- Returns:
- a new instance of
AboutDialog
with 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:developers
AboutDialog:designers
AboutDialog:documenters
AboutDialog:translator-credits
AboutDialog.addCreditSection(java.lang.String, java.lang.String[])
AboutDialog.addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
artists
- the value for theartists
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
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 thecomments
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
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 thecopyright
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
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.
AdwAboutDialog
provides a quick way to save debug information to a file. When saving,AboutDialog:debug-info-filename
would be used as the suggested filename.Debug information cannot contain markup or links.
- Parameters:
debugInfo
- the value for thedebug-info
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
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-filename
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
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:developers
AboutDialog:artists
AboutDialog:documenters
AboutDialog:translator-credits
AboutDialog.addCreditSection(java.lang.String, java.lang.String[])
AboutDialog.addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
designers
- the value for thedesigners
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
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:developers
and related properties.- Parameters:
developerName
- the value for thedeveloper-name
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
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:designers
AboutDialog:artists
AboutDialog:documenters
AboutDialog:translator-credits
AboutDialog.addCreditSection(java.lang.String, java.lang.String[])
AboutDialog.addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
developers
- the value for thedevelopers
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
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:developers
AboutDialog:designers
AboutDialog:artists
AboutDialog:translator-credits
AboutDialog.addCreditSection(java.lang.String, java.lang.String[])
AboutDialog.addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
documenters
- the value for thedocumenters
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
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-type
will 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 thelicense
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
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:license
can be used instead. The license type will be automatically set toGTK_LICENSE_CUSTOM
in that case.If set to
GTK_LICENSE_UNKNOWN
, no information will be displayed.If the license type is different from
GTK_LICENSE_CUSTOM
.AboutDialog:license
will 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-type
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
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.
AdwAboutDialog
displays the version above the release notes. If set, theAboutDialog:release-notes-version
of the property will be used as the version; otherwise,AboutDialog:version
is used.- Parameters:
releaseNotes
- the value for therelease-notes
property- Returns:
- the
Builder
instance is returned, to allow method chaining
- 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:version
will 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-version
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
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:developers
AboutDialog:designers
AboutDialog:artists
AboutDialog:documenters
AboutDialog.addCreditSection(java.lang.String, java.lang.String[])
AboutDialog.addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
translatorCredits
- the value for thetranslator-credits
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setVersion
The version of the application.The version is displayed on the main page.
If
AboutDialog:release-notes-version
is not set, the version will also be displayed above the release notes on the What's New page.- Parameters:
version
- the value for theversion
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
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 thewebsite
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
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
Builder
instance is returned, to allow method chaining - See Also:
-