Class Spinner.Builder<B extends Spinner.Builder<B>>

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

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

      public B setSpinning(boolean spinning)
      Whether the spinner is spinning
      Parameters:
      spinning - the value for the spinning property
      Returns:
      the Builder instance is returned, to allow method chaining