Class: Wx::GRID::GridCellEnumRenderer
- Inherits:
-
GridCellStringRenderer
- Object
- GridCellRenderer
- GridCellStringRenderer
- Wx::GRID::GridCellEnumRenderer
- Defined in:
- lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb
Overview
This class may be used to render in a cell a number as a textual equivalent.
The corresponding text strings are specified as comma-separated items in the string passed to this renderer ctor or #set_parameters method. For example, if this string is "John,Fred,Bob"
the cell will be rendered as “John”, “Fred” or “Bob” if its contents is 0, 1 or 2 respectively.
Category: Grid Related Classes
Instance Method Summary collapse
-
#initialize(choices = ('')) ⇒ Wx::GRID::GridCellEnumRenderer
constructor
Enum renderer ctor.
-
#set_parameters(params) ⇒ void
(also: #parameters=)
Sets the comma separated string content of the enum.
Methods inherited from GridCellRenderer
#clone, #draw, #get_best_height, #get_best_size, #get_best_width, #get_max_best_size
Constructor Details
#initialize(choices = ('')) ⇒ Wx::GRID::GridCellEnumRenderer
Enum renderer ctor.
31 |
# File 'lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb', line 31 def initialize(choices=('')) end |
Instance Method Details
#set_parameters(params) ⇒ void Also known as: parameters=
This method returns an undefined value.
Sets the comma separated string content of the enum.
36 |
# File 'lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb', line 36 def set_parameters(params) end |