Class SnippetManager.Builder<B extends SnippetManager.Builder<B>>

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

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

      public B setSearchPath(String[] searchPath)
      Contains a list of directories to search for files containing snippets (*.snippets).
      Parameters:
      searchPath - the value for the search-path property
      Returns:
      the Builder instance is returned, to allow method chaining