Class Region.Builder<B extends Region.Builder<B>>

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

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

      public B setBuffer(TextBuffer buffer)
      The TextBuffer. The GtkSourceRegion has a weak reference to the buffer.
      Parameters:
      buffer - the value for the buffer property
      Returns:
      the Builder instance is returned, to allow method chaining