Package org.gnome.gtk
Class BuilderListItemFactory.Builder<B extends BuilderListItemFactory.Builder<B>>
java.lang.Object
org.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theBuilderListItemFactoryobject.setBytes(byte[] bytes) GBytescontaining the UI definition.setResource(String resource) Path of the resource containing the UI definition.setScope(BuilderScope scope) GtkBuilderScopeto use when instantiating listitemsMethods 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 theBuilderListItemFactoryobject. 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:
buildin classListItemFactory.Builder<B extends BuilderListItemFactory.Builder<B>>- Returns:
- a new instance of
BuilderListItemFactorywith the properties that were set in the Builder object.
-
setBytes
GBytescontaining the UI definition.- Parameters:
bytes- the value for thebytesproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setResource
-
setScope
GtkBuilderScopeto use when instantiating listitems- Parameters:
scope- the value for thescopeproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-