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

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 Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public SignalListItemFactory build()
      Finish building the SignalListItemFactory object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to SignalListItemFactory.
      Overrides:
      build in class ListItemFactory.Builder<B extends SignalListItemFactory.Builder<B>>
      Returns:
      a new instance of SignalListItemFactory with the properties that were set in the Builder object.
    • onBind

      public B onBind(SignalListItemFactory.BindCallback handler)

      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

      public B onSetup(SignalListItemFactory.SetupCallback handler)

      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(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

      public B onTeardown(SignalListItemFactory.TeardownCallback handler)

      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

      public B onUnbind(SignalListItemFactory.UnbindCallback handler)

      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: