Package org.gnome.gtk
Class FontDialog.Builder<B extends FontDialog.Builder<B>>
java.lang.Object
io.github.jwharm.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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theFontDialog
object.Sets a filter to restrict what fonts are shown in the font chooser dialog.setFontMap
(FontMap fontMap) Sets 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
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theFontDialog
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 toFontDialog
.- Overrides:
build
in classGObject.Builder<B extends FontDialog.Builder<B>>
- Returns:
- a new instance of
FontDialog
with the properties that were set in the Builder object.
-
setFilter
-
setFontMap
Sets 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-map
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setLanguage
-
setModal
Whether the font chooser dialog is modal.- Parameters:
modal
- the value for themodal
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
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 thetitle
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-