Class SignalListItemFactory.Builder<B extends SignalListItemFactory.Builder<B>>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
SignalListItemFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theSignalListItemFactory
object.onBind
(SignalListItemFactory.BindCallback handler) Emitted when an object has been bound to an item.Emitted when a newly created listitem needs to be prepared for use.Emitted when an object is about to be destroyed.Emitted when an object has been unbound from its item.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 to an item.The handler for this signal must set to populate the listitem with widgets.
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 newly created listitem needs to be prepared for use.It is the first signal emitted for every listitem.
The handler for this signal must call
ListItem.setChild(org.gnome.gtk.Widget)
to populate the listitem with widgets.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.This happens for example when a listitem was removed from use in a list widget and its
Gtk.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:
-