Class ConstraintGuide.Builder<B extends ConstraintGuide.Builder<B>>

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

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

      public B setMaxHeight(int maxHeight)
      The maximum height of the guide.
      Parameters:
      maxHeight - the value for the max-height property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setMaxWidth

      public B setMaxWidth(int maxWidth)
      The maximum width of the guide.
      Parameters:
      maxWidth - the value for the max-width property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setMinHeight

      public B setMinHeight(int minHeight)
      The minimum height of the guide.
      Parameters:
      minHeight - the value for the min-height property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setMinWidth

      public B setMinWidth(int minWidth)
      The minimum width of the guide.
      Parameters:
      minWidth - the value for the min-width property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setName

      public B setName(String name)
      A name that identifies the GtkConstraintGuide, for debugging.
      Parameters:
      name - the value for the name property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setNatHeight

      public B setNatHeight(int natHeight)
      The preferred, or natural, height of the guide.
      Parameters:
      natHeight - the value for the nat-height property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setNatWidth

      public B setNatWidth(int natWidth)
      The preferred, or natural, width of the guide.
      Parameters:
      natWidth - the value for the nat-width property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setStrength

      public B setStrength(ConstraintStrength strength)
      The GtkConstraintStrength to be used for the constraint on the natural size of the guide.
      Parameters:
      strength - the value for the strength property
      Returns:
      the Builder instance is returned, to allow method chaining