Class StyleScheme.Builder<B extends StyleScheme.Builder<B>>

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

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

      public B setId(String id)
      Style scheme id, a unique string used to identify the style scheme in StyleSchemeManager.
      Parameters:
      id - the value for the id property
      Returns:
      the Builder instance is returned, to allow method chaining