Class Scrollbar.Builder<B extends Scrollbar.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
Accessible.Builder<B>, Orientable.Builder<B>, BuilderInterface
Enclosing class:
Scrollbar

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

      public B setAdjustment(Adjustment adjustment)
      The GtkAdjustment controlled by this scrollbar.
      Parameters:
      adjustment - the value for the adjustment property
      Returns:
      the Builder instance is returned, to allow method chaining