Package org.gnome.gtk
Class SignalListItemFactory.Builder<B extends SignalListItemFactory.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.SignalListItemFactory.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
SignalListItemFactory
public static class SignalListItemFactory.Builder<B extends SignalListItemFactory.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 theSignalListItemFactory
object.onBind
(SignalListItemFactory.BindCallback handler) Emitted when an object has been bound, for example when a newGtk.ListItem:item
has been set on a listitem and should be bound for use.Emitted when a new listitem has been created and needs to be setup for use.Emitted when an object is about to be destroyed.Emitted when an object has been unbound from its item, for example when a listitem was removed from use in a list widget and itsGtk.ListItem:item
is about to be unset.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 theSignalListItemFactory
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 toSignalListItemFactory
.- Overrides:
build
in classListItemFactory.Builder<B extends SignalListItemFactory.Builder<B>>
- Returns:
- a new instance of
SignalListItemFactory
with the properties that were set in the Builder object.
-
onBind
Emitted when an object has been bound, for example when a newGtk.ListItem:item
has been set on a listitem and should be bound for use.After this signal was emitted, the object might be shown in a
ListView
or other widget.The
Gtk.SignalListItemFactory::unbind
signal is the opposite of this signal and can be used to undo everything done in this signal.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onSetup
Emitted when a new listitem has been created and needs to be setup for use.It is the first signal emitted for every listitem.
The
Gtk.SignalListItemFactory::teardown
signal is the opposite of this signal and can be used to undo everything done in this signal.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onTeardown
Emitted when an object is about to be destroyed.It is the last signal ever emitted for this
object
.This signal is the opposite of the
Gtk.SignalListItemFactory::setup
signal and should be used to undo everything done in that signal.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onUnbind
Emitted when an object has been unbound from its item, for example when a listitem was removed from use in a list widget and itsGtk.ListItem:item
is about to be unset.This signal is the opposite of the
Gtk.SignalListItemFactory::bind
signal and should be used to undo everything done in that signal.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-