Package org.gnome.gtk
Class FileFilter.Builder<B extends FileFilter.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.Filter.Builder<B>
org.gnome.gtk.FileFilter.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
FileFilter
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theFileFilter
object.setMimeTypes
(String[] mimeTypes) The MIME types that this filter matches.The human-readable name of the filter.setPatterns
(String[] patterns) The patterns that this filter matches.setSuffixes
(String[] suffixes) The suffixes that this filter matches.Methods inherited from class org.gnome.gtk.Filter.Builder
onChanged
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 theFileFilter
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 toFileFilter
.- Overrides:
build
in classFilter.Builder<B extends FileFilter.Builder<B>>
- Returns:
- a new instance of
FileFilter
with the properties that were set in the Builder object.
-
setMimeTypes
-
setName
The human-readable name of the filter.This is the string that will be displayed in the file chooser user interface if there is a selectable list of filters.
- Parameters:
name
- the value for thename
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setPatterns
-
setSuffixes
-