Class Filter.Builder<B extends Filter.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Direct Known Subclasses:
BoolFilter.Builder, CustomFilter.Builder, FileFilter.Builder, MultiFilter.Builder, StringFilter.Builder
Enclosing class:
Filter

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

      public B onChanged(Filter.ChangedCallback handler)

      Emitted whenever the filter changed.

      Users of the filter should then check items again via Filter.match(GObject).

      GtkFilterListModel handles this signal automatically.

      Depending on the change parameter, not all items need to be checked, but only some. Refer to the Gtk.FilterChange documentation for details.

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