Class SliceListModel.Builder<B extends SliceListModel.Builder<B>>

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

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

      public B setModel(ListModel model)
      Child model to take slice from.
      Parameters:
      model - the value for the model property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setOffset

      public B setOffset(int offset)
      Offset of slice.
      Parameters:
      offset - the value for the offset property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setSize

      public B setSize(int size)
      Maximum size of slice.
      Parameters:
      size - the value for the size property
      Returns:
      the Builder instance is returned, to allow method chaining