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 theSignalListItemFactoryobject.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
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 theSignalListItemFactoryobject. 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:
buildin classListItemFactory.Builder<B extends SignalListItemFactory.Builder<B>>- Returns:
- a new instance of
SignalListItemFactorywith 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
ListViewor other widget.The
Gtk.SignalListItemFactory::unbindsignal is the opposite of this signal and can be used to undo everything done in this signal.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance 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::teardownsignal is the opposite of this signal and can be used to undo everything done in this signal.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance 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::setupsignal and should be used to undo everything done in that signal.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance 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:itemis about to be unset.This signal is the opposite of the
Gtk.SignalListItemFactory::bindsignal and should be used to undo everything done in that signal.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-