Class: Wx::GRID::GridCellEnumRenderer

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

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.

Parameters:

  • choices (String) (defaults to: (''))

    Comma separated string parameters “item1[,item2]”.



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.

Parameters:

  • params (String)

    Comma separated string parameters “item1[,item2]”.



36
# File 'lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb', line 36

def set_parameters(params) end