Class FilterListModel.Builder<B extends FilterListModel.Builder<B>>

java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.FilterListModel.Builder<B>
Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
FilterListModel<T extends GObject>

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

      public B setFilter(Filter filter)
      The filter for this model.
      Parameters:
      filter - the value for the filter property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setIncremental

      public B setIncremental(boolean incremental)
      If the model should filter items incrementally.
      Parameters:
      incremental - the value for the incremental property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setModel

      public B setModel(ListModel model)
      The model being filtered.
      Parameters:
      model - the value for the model property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setWatchItems

      public B setWatchItems(boolean watchItems)
      Monitor the list items for changes. It may impact performance.
      Parameters:
      watchItems - the value for the watch-items property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.20