Class WidgetPaintable.Builder<B extends WidgetPaintable.Builder<B>>

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

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

      public B setWidget(Widget widget)
      The observed widget or null if none.
      Parameters:
      widget - the value for the widget property
      Returns:
      the Builder instance is returned, to allow method chaining