Class BuilderListItemFactory.Builder<B extends BuilderListItemFactory.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
BuilderListItemFactory

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

      public B setBytes(byte[] bytes)
      GBytes containing the UI definition.
      Parameters:
      bytes - the value for the bytes property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setResource

      public B setResource(String resource)
      Path of the resource containing the UI definition.
      Parameters:
      resource - the value for the resource property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setScope

      public B setScope(BuilderScope scope)
      GtkBuilderScope to use when instantiating listitems
      Parameters:
      scope - the value for the scope property
      Returns:
      the Builder instance is returned, to allow method chaining