Class AboutWindow.Builder<B extends AboutWindow.Builder<B>>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
,Accessible.Builder<B>
- Enclosing class:
AboutWindow
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theAboutWindow
object.Deprecated.setApplicationIcon
(String applicationIcon) Deprecated.setApplicationName
(String applicationName) Deprecated.setArtists
(String[] artists) Deprecated.setComments
(String comments) Deprecated.setCopyright
(String copyright) Deprecated.setDebugInfo
(String debugInfo) Deprecated.setDebugInfoFilename
(String debugInfoFilename) Deprecated.setDesigners
(String[] designers) Deprecated.setDeveloperName
(String developerName) Deprecated.setDevelopers
(String[] developers) Deprecated.setDocumenters
(String[] documenters) Deprecated.setIssueUrl
(String issueUrl) Deprecated.setLicense
(String license) Deprecated.setLicenseType
(License licenseType) Deprecated.setReleaseNotes
(String releaseNotes) Deprecated.setReleaseNotesVersion
(String releaseNotesVersion) Deprecated.setSupportUrl
(String supportUrl) Deprecated.setTranslatorCredits
(String translatorCredits) Deprecated.setVersion
(String version) Deprecated.setWebsite
(String website) Deprecated.Methods inherited from class org.gnome.adw.Window.Builder
setContent
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 theAboutWindow
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 toAboutWindow
.- Overrides:
build
in classWindow.Builder<B extends AboutWindow.Builder<B>>
- Returns:
- a new instance of
AboutWindow
with the properties that were set in the Builder object.
-
setApplicationIcon
Deprecated.The name of the application icon.The icon is displayed at the top of the main page.
- Parameters:
applicationIcon
- the value for theapplication-icon
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setApplicationName
Deprecated.The name of the application.The name is displayed at the top of the main page.
- Parameters:
applicationName
- the value for theapplication-name
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setArtists
Deprecated.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:
AboutWindow:developers
AboutWindow:designers
AboutWindow:documenters
AboutWindow:translator-credits
AboutWindow.addCreditSection(java.lang.String, java.lang.String[])
AboutWindow.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
Deprecated.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
Deprecated.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.
AboutWindow.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
Deprecated.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.
AdwAboutWindow
provides a quick way to save debug information to a file. When saving,AboutWindow: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
Deprecated.The debug information filename.It will be used as the suggested filename when saving debug information to a file.
See
AboutWindow:debug-info
.- Parameters:
debugInfoFilename
- the value for thedebug-info-filename
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setDesigners
Deprecated.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:
AboutWindow:developers
AboutWindow:artists
AboutWindow:documenters
AboutWindow:translator-credits
AboutWindow.addCreditSection(java.lang.String, java.lang.String[])
AboutWindow.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
Deprecated.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
AboutWindow:developers
and related properties.- Parameters:
developerName
- the value for thedeveloper-name
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setDevelopers
Deprecated.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:
AboutWindow:designers
AboutWindow:artists
AboutWindow:documenters
AboutWindow:translator-credits
AboutWindow.addCreditSection(java.lang.String, java.lang.String[])
AboutWindow.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
Deprecated.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:
AboutWindow:developers
AboutWindow:designers
AboutWindow:artists
AboutWindow:translator-credits
AboutWindow.addCreditSection(java.lang.String, java.lang.String[])
AboutWindow.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
Deprecated.The URL for the application's issue tracker.The issue tracker link is displayed on the main page.
- Parameters:
issueUrl
- the value for theissue-url
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setLicense
Deprecated.The license text.This can be used to set a custom text for the license if it can't be set via
AboutWindow:license-type
.When set,
AboutWindow: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.
AboutWindow.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
Deprecated.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,
AboutWindow: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
.AboutWindow:license
will be cleared out.The license description will be displayed on the Legal page, below the copyright information.
AboutWindow.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
Deprecated.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.
AdwAboutWindow
displays the version above the release notes. If set, theAboutWindow:release-notes-version
of the property will be used as the version; otherwise,AboutWindow:version
is used.- Parameters:
releaseNotes
- the value for therelease-notes
property- Returns:
- the
Builder
instance is returned, to allow method chaining
- Paragraph (
-
setReleaseNotesVersion
Deprecated.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,
AboutWindow: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
AboutWindow:release-notes
.- Parameters:
releaseNotesVersion
- the value for therelease-notes-version
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setSupportUrl
Deprecated.The URL of the application's support page.The support page link is displayed on the main page.
- Parameters:
supportUrl
- the value for thesupport-url
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setTranslatorCredits
Deprecated.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:
AboutWindow:developers
AboutWindow:designers
AboutWindow:artists
AboutWindow:documenters
AboutWindow.addCreditSection(java.lang.String, java.lang.String[])
AboutWindow.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
Deprecated.The version of the application.The version is displayed on the main page.
If
AboutWindow: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
Deprecated.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
AboutWindow.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
Deprecated.UseAboutDialog
.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:
-
AboutDialog
.