Class: Wx::GRID::GridCellBoolEditor

Inherits:
GridCellEditor show all
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

Instance Method Summary collapse

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

#initializeWx::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).

Parameters:

  • value (String)

Returns:

  • (Boolean)


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.

Parameters:

  • valueTrue (String) (defaults to: ("1"))
  • valueFalse (String) (defaults to: (''))


42
# File 'lib/wx/doc/gen/grid/grid_cell_bool_editor.rb', line 42

def self.use_string_values(valueTrue=("1"), valueFalse=('')) end