Package org.gnome.gtk
Class FontDialog.Builder<B extends FontDialog.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.FontDialog.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
FontDialog
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theFontDialogobject.A filter to restrict what fonts are shown in the font chooser dialog.setFontMap(FontMap fontMap) A custom font map to select fonts from.setLanguage(Language language) The language for which the font features are selected.setModal(boolean modal) Whether the font chooser dialog is modal.A title that may be shown on the font chooser dialog that is presented byFontDialog.chooseFont(org.gnome.gtk.Window, org.gnome.pango.FontDescription, org.gnome.gio.Cancellable, org.gnome.gio.AsyncReadyCallback).Methods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theFontDialogobject. 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 toFontDialog.- Overrides:
buildin classGObject.Builder<B extends FontDialog.Builder<B>>- Returns:
- a new instance of
FontDialogwith the properties that were set in the Builder object.
-
setFilter
-
setFontMap
A custom font map to select fonts from.A custom font map can be used to present application-specific fonts instead of or in addition to the normal system fonts.
- Parameters:
fontMap- the value for thefont-mapproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.10
-
setLanguage
-
setModal
Whether the font chooser dialog is modal.- Parameters:
modal- the value for themodalproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.10
-
setTitle
A title that may be shown on the font chooser dialog that is presented byFontDialog.chooseFont(org.gnome.gtk.Window, org.gnome.pango.FontDescription, org.gnome.gio.Cancellable, org.gnome.gio.AsyncReadyCallback).- Parameters:
title- the value for thetitleproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.10
-