Class CellRendererSpin.Builder<B extends CellRendererSpin.Builder<B>>

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

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

      public B setAdjustment(Adjustment adjustment)
      The adjustment that holds the value of the spinbutton. This must be non-null for the cell renderer to be editable.
      Parameters:
      adjustment - the value for the adjustment property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setClimbRate

      public B setClimbRate(double climbRate)
      The acceleration rate when you hold down a button.
      Parameters:
      climbRate - the value for the climb-rate property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setDigits

      public B setDigits(int digits)
      The number of decimal places to display.
      Parameters:
      digits - the value for the digits property
      Returns:
      the Builder instance is returned, to allow method chaining