Class CellRendererSpin

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") @Deprecated public class CellRendererSpin extends CellRendererText
Deprecated.
List views use widgets to display their contents. You should use SpinButton instead

Renders a spin button in a cell

GtkCellRendererSpin renders text in a cell like GtkCellRendererText from which it is derived. But while GtkCellRendererText offers a simple entry to edit the text, GtkCellRendererSpin offers a GtkSpinButton widget. Of course, that means that the text has to be parseable as a floating point number.

The range of the spinbutton is taken from the adjustment property of the cell renderer, which can be set explicitly or mapped to a column in the tree model, like all properties of cell renders. GtkCellRendererSpin also has properties for the GtkCellRendererSpin:climb-rate and the number of GtkCellRendererSpin:digits to display. Other GtkSpinButton properties can be set in a handler for the GtkCellRenderer::editing-started signal.

  • Constructor Details

    • CellRendererSpin

      public CellRendererSpin(MemorySegment address)
      Deprecated.
      Create a CellRendererSpin instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • CellRendererSpin

      public CellRendererSpin()
      Deprecated.
      Create a new CellRendererSpin.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Deprecated.
      Get the GType of the CellRendererSpin class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      Deprecated.
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected CellRendererSpin asParent()
      Deprecated.
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class CellRendererText
      Returns:
      the instance as if it were its parent type
    • builder

      public static CellRendererSpin.Builder<? extends CellRendererSpin.Builder> builder()
      Deprecated.
      A CellRendererSpin.Builder object constructs a CellRendererSpin with the specified properties. Use the various set...() methods to set properties, and finish construction with CellRendererSpin.Builder.build().
      Returns:
      the builder object