Package org.gnome.gtk
Class BuilderListItemFactory.Builder<B extends BuilderListItemFactory.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.ListItemFactory.Builder<B>
org.gnome.gtk.BuilderListItemFactory.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
BuilderListItemFactory
public static class BuilderListItemFactory.Builder<B extends BuilderListItemFactory.Builder<B>>
extends ListItemFactory.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theBuilderListItemFactory
object.GBytes
containing the UI definition.setResource
(String resource) Path of the resource containing the UI definition.setScope
(BuilderScope scope) GtkBuilderScope
to use when instantiating listitemsMethods 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 theBuilderListItemFactory
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 toBuilderListItemFactory
.- Overrides:
build
in classListItemFactory.Builder<B extends BuilderListItemFactory.Builder<B>>
- Returns:
- a new instance of
BuilderListItemFactory
with the properties that were set in the Builder object.
-
setBytes
-
setResource
-
setScope
GtkBuilderScope
to use when instantiating listitems- Parameters:
scope
- the value for thescope
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-