Interface CellEditable
- All Superinterfaces:
Proxy
- All Known Implementing Classes:
CellEditable.CellEditable$Impl,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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceCellEditable.Builder<B extends Builder<B>>Deprecated.static classDeprecated.The CellEditable$Impl type represents a native instance of the CellEditable interface.static classDeprecated.static interfaceDeprecated.Functional interface declaration of theEditingDoneCallbackcallback.static interfaceDeprecated.Functional interface declaration of theRemoveWidgetCallbackcallback. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidDeprecated.default voidDeprecated.Emits the "editing-done" signal.default voidDeprecated.Emits the "remove-widget" signal.static @Nullable TypegetType()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 thecellEditablewidget is being removed and may subsequently be destroyed.default voidDeprecated.default voidstartEditing(@Nullable Event event) Deprecated.Begins editing on acellEditable.
-
Method Details
-
getType
Deprecated.Get the GType of the CellEditable class- Returns:
- the GType
-
editingDone
-
removeWidget
Deprecated.Emits theGtkCellEditable::remove-widgetsignal. -
startEditing
Deprecated.Begins editing on acellEditable.The
GtkCellRendererfor the cell creates and returns aGtkCellEditablefrom gtk_cell_renderer_start_editing(), configured for theGtkCellRenderertype.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- TheGdkEventthat began the editing process, ornullif 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
GtkCellEditableare responsible for emitting this signal when they are done editing, e.g.GtkEntryemits this signal when the user presses Enter. Typical things to do in a handler for ::editing-done are to capture the edited value, disconnect thecellEditablefrom 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 thecellEditablewidget is being removed and may subsequently be destroyed.Implementations of
GtkCellEditableare responsible for emitting this signal when they are done editing. It must be emitted after theGtkCellEditable::editing-donesignal, 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).
-
Editablefor editable text widgets