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 every time a URL is activated.setArtists
(String[] artists) The people who contributed artwork to the program, as aNULL
-terminated array of strings.setAuthors
(String[] authors) The authors of the program, as aNULL
-terminated array of strings.setComments
(String comments) Comments about the program.setCopyright
(String copyright) Copyright information for the program.setDocumenters
(String[] documenters) The people documenting the program, as aNULL
-terminated array of strings.setLicense
(String license) The license of the program, as free-form text.setLicenseType
(License licenseType) The license of the program.A logo for the about box.setLogoIconName
(String logoIconName) A named icon to use as the logo for the about box.setProgramName
(String programName) The name of the program.setSystemInformation
(String systemInformation) Information about the system on which the program is running.setTranslatorCredits
(String translatorCredits) Credits to the translators.setVersion
(String version) The version of the program.setWebsite
(String website) The URL for the link to the website of the program.setWebsiteLabel
(String websiteLabel) The label for the link to the website of the program.setWrapLicense
(boolean wrapLicense) Whether to wrap the text in the license dialog.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 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 classWindow.Builder<B extends AboutDialog.Builder<B>>
- Returns:
- a new instance of
AboutDialog
with the properties that were set in the Builder object.
-
setArtists
The people who contributed artwork to the program, as aNULL
-terminated array of strings.Each string may contain email addresses and URLs, which will be displayed as links.
- Parameters:
artists
- the value for theartists
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setAuthors
The authors of the program, as aNULL
-terminated array of strings.Each string may contain email addresses and URLs, which will be displayed as links, see the introduction for more details.
- Parameters:
authors
- the value for theauthors
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setComments
Comments about the program.This string is displayed in a label in the main dialog, thus it should be a short explanation of the main purpose of the program, not a detailed list of features.
- Parameters:
comments
- the value for thecomments
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setCopyright
-
setDocumenters
The people documenting the program, as aNULL
-terminated array of strings.Each string may contain email addresses and URLs, which will be displayed as links, see the introduction for more details.
- Parameters:
documenters
- the value for thedocumenters
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setLicense
The license of the program, as free-form text.This string is displayed in a text view in a secondary dialog, therefore it is fine to use a long multi-paragraph text. Note that the text is only wrapped in the text view if the "wrap-license" property is set to
TRUE
; otherwise the text itself must contain the intended linebreaks.When setting this property to a non-
NULL
value, theGtk.AboutDialog:license-type
property is set toGTK_LICENSE_CUSTOM
as a side effect.The text may contain links in this format
<http://www.some.place/>
and email references in the form<mail-to@some.body>
, and these will be converted into clickable links.- Parameters:
license
- the value for thelicense
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setLicenseType
The license of the program.The
GtkAboutDialog
will automatically fill out a standard disclaimer and link the user to the appropriate online resource for the license text.If
GTK_LICENSE_UNKNOWN
is used, the link used will be the same specified in theGtk.AboutDialog:website
property.If
GTK_LICENSE_CUSTOM
is used, the current contents of theGtk.AboutDialog:license
property are used.For any other
Gtk.License
value, the contents of theGtk.AboutDialog:license
property are also set by this property as a side effect.- Parameters:
licenseType
- the value for thelicense-type
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setLogo
A logo for the about box.If it is
NULL
, the default window icon set withWindow.setDefaultIconName(java.lang.String)
will be used.- Parameters:
logo
- the value for thelogo
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setLogoIconName
-
setProgramName
-
setSystemInformation
Information about the system on which the program is running.This information is displayed in a separate page, therefore it is fine to use a long multi-paragraph text. Note that the text should contain the intended linebreaks.
The text may contain links in this format
<http://www.some.place/>
and email references in the form<mail-to@some.body>
, and these will be converted into clickable links.- Parameters:
systemInformation
- the value for thesystem-information
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setTranslatorCredits
Credits to the translators.This string should be marked as translatable.
The string may contain email addresses and URLs, which will be displayed as links, see the introduction for more details.
- Parameters:
translatorCredits
- the value for thetranslator-credits
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setVersion
-
setWebsite
-
setWebsiteLabel
-
setWrapLicense
Whether to wrap the text in the license dialog.- Parameters:
wrapLicense
- the value for thewrap-license
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
onActivateLink
Emitted every time a URL is activated.Applications may connect to it to override the default behaviour, which is to call
FileLauncher.launch(org.gnome.gtk.Window, org.gnome.gio.Cancellable, org.gnome.gio.AsyncReadyCallback)
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-