Class ListStore.Builder<B extends ListStore.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
ListStore<T extends GObject>

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

      public B setItemType(Type itemType)
      The type of items contained in this list store. Items must be subclasses of GObject.
      Parameters:
      itemType - the value for the item-type property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.44