Class ListBoxRow.Builder<B extends ListBoxRow.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
Accessible.Builder<B>, Actionable.Builder<B>, BuilderInterface
Direct Known Subclasses:
PreferencesRow.Builder
Enclosing class:
ListBoxRow

public static class ListBoxRow.Builder<B extends ListBoxRow.Builder<B>> extends Widget.Builder<B> implements Accessible.Builder<B>, Actionable.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 ListBoxRow build()
      Finish building the ListBoxRow object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to ListBoxRow.
      Overrides:
      build in class Widget.Builder<B extends ListBoxRow.Builder<B>>
      Returns:
      a new instance of ListBoxRow with the properties that were set in the Builder object.
    • setActivatable

      public B setActivatable(boolean activatable)
      Determines whether the ::row-activated signal will be emitted for this row.
      Parameters:
      activatable - the value for the activatable property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setChild

      public B setChild(Widget child)
      The child widget.
      Parameters:
      child - the value for the child property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setSelectable

      public B setSelectable(boolean selectable)
      Determines whether this row can be selected.
      Parameters:
      selectable - the value for the selectable property
      Returns:
      the Builder instance is returned, to allow method chaining
    • onActivate

      public B onActivate(ListBoxRow.ActivateCallback handler)

      This is a keybinding signal, which will cause this row to be activated.

      If you want to be notified when the user activates a row (by key or not), use the Gtk.ListBox::row-activated signal on the row’s parent GtkListBox.

      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also: