Interface CellEditable

All Superinterfaces:
Proxy
All Known Implementing Classes:
CellEditable.CellEditable$Impl, ComboBox, ComboBoxText, Entry, SpinButton

@Generated("org.javagi.JavaGI") @Deprecated public interface CellEditable extends Proxy
Deprecated.
List views use widgets for displaying their contents. See Editable for editable text widgets

Interface for widgets that can be used for editing cells

The GtkCellEditable interface must be implemented for widgets to be usable to edit the contents of a GtkTreeView cell. It provides a way to specify how temporary widgets should be configured for editing, get the new value, etc.

  • Method Details

    • getType

      static @Nullable Type getType()
      Deprecated.
      Get the GType of the CellEditable class.
      Returns:
      the GType
    • editingDone

      @Deprecated default void editingDone()
      Deprecated.
      Emits the GtkCellEditable::editing-done signal.
    • removeWidget

      @Deprecated default void removeWidget()
      Deprecated.
      Emits the GtkCellEditable::remove-widget signal.
    • startEditing

      default void startEditing(@Nullable Event event)
      Deprecated.

      Begins editing on a cellEditable.

      The GtkCellRenderer for the cell creates and returns a GtkCellEditable from gtk_cell_renderer_start_editing(), configured for the GtkCellRenderer type.

      gtk_cell_editable_start_editing() can then set up this CellEditable suitably for editing a cell, e.g. making the Esc key emit GtkCellEditable::editing-done.

      Note that the this CellEditable is created on-demand for the current edit; its lifetime is temporary and does not persist across other edits and/or cells.

      Parameters:
      event - The GdkEvent that began the editing process, or null if editing was initiated programmatically
    • onEditingDone

      Deprecated.

      This signal is a sign for the cell renderer to update its value from the cellEditable.

      Implementations of GtkCellEditable are responsible for emitting this signal when they are done editing, e.g. GtkEntry emits this signal when the user presses Enter. Typical things to do in a handler for ::editing-done are to capture the edited value, disconnect the cellEditable from signals on the GtkCellRenderer, etc.

      gtk_cell_editable_editing_done() is a convenience method for emitting GtkCellEditable::editing-done.

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

      default void emitEditingDone()
      Deprecated.
      Emits the "editing-done" signal. See onEditingDone(CellEditable.EditingDoneCallback).
    • onRemoveWidget

      Deprecated.

      This signal is meant to indicate that the cell is finished editing, and the cellEditable widget is being removed and may subsequently be destroyed.

      Implementations of GtkCellEditable are responsible for emitting this signal when they are done editing. It must be emitted after the GtkCellEditable::editing-done signal, to give the cell renderer a chance to update the cell's value before the widget is removed.

      gtk_cell_editable_remove_widget() is a convenience method for emitting GtkCellEditable::remove-widget.

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

      default void emitRemoveWidget()
      Deprecated.
      Emits the "remove-widget" signal. See onRemoveWidget(CellEditable.RemoveWidgetCallback).