Class: Wx::GRID::GridCellDateRenderer

Inherits:
GridCellStringRenderer show all
Defined in:
lib/wx/doc/gen/grid/grid_cell_date_renderer.rb

Overview

This class may be used to show a date, without time, in a cell.

See GridCellDateTimeRenderer for a date/time version. Wx::DateTime#format is used internally to render the date representation. Wx::DateTime#parse_date is used to parse the string data entered in the cell.

Category: Grid Related Classes

Direct Known Subclasses

GridCellDateTimeRenderer

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(outformat = ('')) ⇒ Wx::GRID::GridCellDateRenderer

Date renderer constructor.

Parameters:

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

    strftime()-like format string used to render the output date. By default (or if provided format string is empty) localized date representation (“%x”) is used.



32
# File 'lib/wx/doc/gen/grid/grid_cell_date_renderer.rb', line 32

def initialize(outformat=('')) end

Instance Method Details

#set_parameters(params) ⇒ void Also known as: parameters=

This method returns an undefined value.

Sets the strftime()-like format string which will be used to render the date.

Parameters:

  • params (String)

    strftime()-like format string used to render the date.



37
# File 'lib/wx/doc/gen/grid/grid_cell_date_renderer.rb', line 37

def set_parameters(params) end