Class Emblem.Builder<B extends Emblem.Builder<B>>

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

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

      public B setIcon(GObject icon)
      The actual icon of the emblem.
      Parameters:
      icon - the value for the icon property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.18
    • setOrigin

      public B setOrigin(EmblemOrigin origin)
      The origin the emblem is derived from.
      Parameters:
      origin - the value for the origin property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.18