Class: Wx::GRID::GridCellBoolEditor
- Inherits:
-
GridCellEditor
- Object
- GridCellEditor
- Wx::GRID::GridCellBoolEditor
- Defined in:
- lib/wx/doc/gen/grid/grid_cell_bool_editor.rb
Overview
Grid cell editor for boolean data.
Category: Grid Related Classes
Class Method Summary collapse
-
.is_true_value(value) ⇒ Boolean
Returns true if the given value is equal to the string representation of the truth value we currently use (see GridCellBoolEditor.use_string_values).
-
.use_string_values(valueTrue = ("1"), valueFalse = ('')) ⇒ void
This method allows you to customize the values returned by Wx::GRID::GridCellEditor#get_value for the cell using this editor.
Instance Method Summary collapse
-
#initialize ⇒ Wx::GRID::GridCellBoolEditor
constructor
Default constructor.
Methods inherited from GridCellEditor
#apply_edit, #begin_edit, #clone, #create, #destroy, #do_activate, #end_edit, #get_control, #get_value, #get_window, #handle_return, #is_accepted_key, #is_created, #paint_background, #reset, #set_control, #set_size, #set_window, #show, #starting_click, #starting_key, #try_activate
Constructor Details
#initialize ⇒ Wx::GRID::GridCellBoolEditor
Default constructor.
29 |
# File 'lib/wx/doc/gen/grid/grid_cell_bool_editor.rb', line 29 def initialize; end |
Class Method Details
.is_true_value(value) ⇒ Boolean
Returns true if the given value is equal to the string representation of the truth value we currently use (see use_string_values).
34 |
# File 'lib/wx/doc/gen/grid/grid_cell_bool_editor.rb', line 34 def self.is_true_value(value) end |
.use_string_values(valueTrue = ("1"), valueFalse = ('')) ⇒ void
This method returns an undefined value.
This method allows you to customize the values returned by Wx::GRID::GridCellEditor#get_value for the cell using this editor.
By default, the default values of the arguments are used, i.e. "1"
is returned if the cell is checked and an empty string otherwise.
42 |
# File 'lib/wx/doc/gen/grid/grid_cell_bool_editor.rb', line 42 def self.use_string_values(valueTrue=("1"), valueFalse=('')) end |