Class: RubyCurses::ComboBoxCellRenderer

Inherits:
ListCellRenderer
  • Object
show all
Includes:
ConfigSetup, Utils
Defined in:
lib/rbcurse/extras/include/comboboxcellrenderer.rb

Overview

This is a list cell renderer that will render combo boxes. Since a combo box extends a field therefore the repaint of field is used. In other words there is nothing much to do here.

Instance Method Summary collapse

Constructor Details

#initialize(text = "", config = {}, &block) ⇒ ComboBoxCellRenderer

Returns a new instance of ComboBoxCellRenderer.



12
13
14
15
16
17
18
19
# File 'lib/rbcurse/extras/include/comboboxcellrenderer.rb', line 12

def initialize text="", config={}, &block
  @text = text
  @editable = false
  @focusable = false
  config_setup config # @config.each_pair { |k,v| variable_set(k,v) }
  instance_eval &block if block_given?
  init_vars
end

Instance Method Details

#getvalueObject

me thinks this is unused



21
22
23
24
# File 'lib/rbcurse/extras/include/comboboxcellrenderer.rb', line 21

def getvalue
  raise "I think this is unused. comboboxcellrenderer line 36"
  @text
end