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 every time a URL is activated.setArtists(String[] artists) The people who contributed artwork to the program.setAuthors(String[] authors) The authors of the program.setComments(String comments) Comments about the program.setCopyright(String copyright) Copyright information for the program.setDocumenters(String[] documenters) The people documenting the program.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, 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 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 classWindow.Builder<B extends AboutDialog.Builder<B>>- Returns:
- a new instance of
AboutDialogwith the properties that were set in the Builder object.
-
setArtists
-
setAuthors
The authors of the program.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 theauthorsproperty- Returns:
- the
Builderinstance 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 thecommentsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setCopyright
-
setDocumenters
The people documenting the program.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 thedocumentersproperty- Returns:
- the
Builderinstance 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-
NULLvalue, theGtk.AboutDialog:license-typeproperty is set toGtk.License.customas 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 thelicenseproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setLicenseType
The license of the program.The
GtkAboutDialogwill automatically fill out a standard disclaimer and link the user to the appropriate online resource for the license text.If
Gtk.License.unknownis used, the link used will be the same specified in theGtk.AboutDialog:websiteproperty.If
Gtk.License.customis used, the current contents of theGtk.AboutDialog:licenseproperty are used.For any other
Gtk.Licensevalue, the contents of theGtk.AboutDialog:licenseproperty are also set by this property as a side effect.- Parameters:
licenseType- the value for thelicense-typeproperty- Returns:
- the
Builderinstance 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 thelogoproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setLogoIconName
-
setProgramName
The name of the program.If this is not set, it defaults to the value returned by
GLib.getApplicationName().- Parameters:
programName- the value for theprogram-nameproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
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-informationproperty- Returns:
- the
Builderinstance 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-creditsproperty- Returns:
- the
Builderinstance 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-licenseproperty- Returns:
- the
Builderinstance 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
Builderinstance is returned, to allow method chaining - See Also:
-