Interface CellEditable
- All Superinterfaces:
Proxy
- All Known Implementing Classes:
CellEditable.CellEditableImpl
,ComboBox
,ComboBoxText
,Entry
,SpinButton
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.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
CellEditable.Builder<B extends Builder<B>>
Deprecated.static class
Deprecated.static class
Deprecated.The CellEditableImpl type represents a native instance of the CellEditable interface.static interface
Deprecated.Functional interface declaration of theEditingDoneCallback
callback.static interface
Deprecated.Functional interface declaration of theRemoveWidgetCallback
callback. -
Method Summary
Modifier and TypeMethodDescriptiondefault void
Deprecated.default void
Deprecated.Emits the "editing-done" signal.default void
Deprecated.Emits the "remove-widget" signal.static Type
getType()
Deprecated.Get the GType of the CellEditable classDeprecated.This signal is a sign for the cell renderer to update its value from thecellEditable
.Deprecated.This signal is meant to indicate that the cell is finished editing, and thecellEditable
widget is being removed and may subsequently be destroyed.default void
Deprecated.default void
startEditing
(@Nullable Event event) Deprecated.Begins editing on a this CellEditable.
-
Method Details
-
getType
-
editingDone
-
removeWidget
Deprecated.Emits theGtkCellEditable::remove-widget
signal. -
startEditing
Deprecated.Begins editing on a this CellEditable.The
GtkCellRenderer
for the cell creates and returns aGtkCellEditable
from gtk_cell_renderer_start_editing(), configured for theGtkCellRenderer
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
- TheGdkEvent
that began the editing process, ornull
if editing was initiated programmatically
-
onEditingDone
default SignalConnection<CellEditable.EditingDoneCallback> onEditingDone(CellEditable.EditingDoneCallback handler) Deprecated.This signal is a sign for the cell renderer to update its value from thecellEditable
.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 thecellEditable
from signals on theGtkCellRenderer
, 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. SeeonEditingDone(org.gnome.gtk.CellEditable.EditingDoneCallback)
. -
onRemoveWidget
default SignalConnection<CellEditable.RemoveWidgetCallback> onRemoveWidget(CellEditable.RemoveWidgetCallback handler) Deprecated.This signal is meant to indicate that the cell is finished editing, and thecellEditable
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 theGtkCellEditable::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. SeeonRemoveWidget(org.gnome.gtk.CellEditable.RemoveWidgetCallback)
.
-