Class CellRendererCombo

All Implemented Interfaces:
Proxy

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

Renders a combobox in a cell

GtkCellRendererCombo renders text in a cell like GtkCellRendererText from which it is derived. But while GtkCellRendererText offers a simple entry to edit the text, GtkCellRendererCombo offers a GtkComboBox widget to edit the text. The values to display in the combo box are taken from the tree model specified in the GtkCellRendererCombo:model property.

The combo cell renderer takes care of adding a text cell renderer to the combo box and sets it to display the column specified by its GtkCellRendererCombo:text-column property. Further properties of the combo box can be set in a handler for the GtkCellRenderer::editing-started signal.

  • Constructor Details

    • CellRendererCombo

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

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

    • getType

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

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

      protected CellRendererCombo 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
    • onChanged

      Deprecated.

      This signal is emitted each time after the user selected an item in the combo box, either by using the mouse or the arrow keys. Contrary to GtkComboBox, GtkCellRendererCombo::changed is not emitted for changes made to a selected item in the entry. The argument newIter corresponds to the newly selected item in the combo box and it is relative to the GtkTreeModel set via the model property on GtkCellRendererCombo.

      Note that as soon as you change the model displayed in the tree view, the tree view will immediately cease the editing operating. This means that you most probably want to refrain from changing the model until the combo cell renderer emits the edited or editing_canceled signal.

      Parameters:
      handler - the signal handler
      Returns:
      a signal handler ID to keep track of the signal connection
      See Also:
    • emitChanged

      public void emitChanged(String pathString, @Nullable TreeIter newIter)
      Deprecated.
      Emits the "changed" signal. See onChanged(CellRendererCombo.ChangedCallback).
    • builder

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