Class: Wx::GRID::GridCellActivatableEditor
- Inherits:
-
GridCellEditor
- Object
- GridCellEditor
- Wx::GRID::GridCellActivatableEditor
- Defined in:
- lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb
Overview
Base class for activatable editors.
Inheriting from this class makes it simpler to implement editors that support only activation, but not in-place editing, as they only need to implement #try_activate, #do_activate and Wx::GRID::GridCellEditor#clone methods, but not all the other pure virtual methods of GridCellEditor.
Instance Method Summary collapse
-
#do_activate(row, col, grid) ⇒ void
Same method as in GridCellEditor, but pure virtual.
-
#try_activate(row, col, grid, actSource) ⇒ Wx::GridActivationResult
Same method as in GridCellEditor, but pure virtual.
Methods inherited from GridCellEditor
#apply_edit, #begin_edit, #clone, #create, #destroy, #end_edit, #get_control, #get_value, #get_window, #handle_return, #initialize, #is_accepted_key, #is_created, #paint_background, #reset, #set_control, #set_size, #set_window, #show, #starting_click, #starting_key
Constructor Details
This class inherits a constructor from Wx::GRID::GridCellEditor
Instance Method Details
#do_activate(row, col, grid) ⇒ void
This method returns an undefined value.
Same method as in Wx::GRID::GridCellEditor, but pure virtual.
33 |
# File 'lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb', line 33 def do_activate(row, col, grid) end |
#try_activate(row, col, grid, actSource) ⇒ Wx::GridActivationResult
Same method as in Wx::GRID::GridCellEditor, but pure virtual.
Note that the implementation of this method must never return Wx::GridActivationResult#do_edit for the editors inheriting from this class, as it doesn’t support normal editing.
26 |
# File 'lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb', line 26 def try_activate(row, col, grid, actSource) end |