Class SelectionFilterModel<T extends GObject>

All Implemented Interfaces:
Iterable<T>, Collection<T>, List<T>, SequencedCollection<T>, ListModel<T>, Proxy, ListModelJavaList<T>

@Generated("org.javagi.JavaGI") public class SelectionFilterModel<T extends GObject> extends GObject implements ListModel<T>
A list model that presents the selection from a GtkSelectionModel.
  • Constructor Details

    • SelectionFilterModel

      public SelectionFilterModel(MemorySegment address)
      Create a SelectionFilterModel instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • SelectionFilterModel

      public SelectionFilterModel(@Nullable SelectionModel model)
      Creates a new GtkSelectionFilterModel that will include the selected items from the underlying selection model.
      Parameters:
      model - the selection model to filter
    • SelectionFilterModel

      public SelectionFilterModel()
      Create a new SelectionFilterModel.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the SelectionFilterModel class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected SelectionFilterModel asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class GObject
      Returns:
      the instance as if it were its parent type
    • getModel

      public @Nullable SelectionModel getModel()
      Gets the model currently filtered or null if none.
      Returns:
      The model that gets filtered
    • setModel

      public void setModel(@Nullable SelectionModel model)

      Sets the model to be filtered.

      Note that GTK makes no effort to ensure that model conforms to the item type of self. It assumes that the caller knows what they are doing and have set up an appropriate filter to ensure that item types match.

      Parameters:
      model - The model to be filtered
    • builder

      public static SelectionFilterModel.Builder<? extends SelectionFilterModel.Builder> builder()
      A SelectionFilterModel.Builder object constructs a SelectionFilterModel with the specified properties. Use the various set...() methods to set properties, and finish construction with SelectionFilterModel.Builder.build().
      Returns:
      the builder object