Class: MyRendererConstCombo

Inherits:
MyRendererCombo show all
Includes:
GtkAttributes, ManqodCommon
Defined in:
lib/FormHolder/Form/InputHolder/ConstCombo.rb

Overview

this file is part of manqod manqod is distributed under the CDDL licence the author of manqod is Dobai-Pataky Balint([email protected])

Constant Summary

Constants included from ManqodCommon

ManqodCommon::CRITICAL, ManqodCommon::DEBUG, ManqodCommon::ERROR, ManqodCommon::INFO, ManqodCommon::NORMAL, ManqodCommon::WARNING

Constants included from Eprint

Eprint::DOMAIN, Eprint::LEVEL

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from GtkAttributes

#default_attribute, #gtk_attribute, #gtk_attribute_of_object, #gtkobjectid, #gtkobjecttype, #set_gtk_attribute

Methods included from ManqodCommon

#add_where, #admin, #admin_cache, #admin_qrow, #admin_rows, #backtrace_to_debug, #cache, #changed_ids_of_base, #client, #client_fields, #client_image_of_id, #client_qrow, #client_query, #client_rows, #eeval, #escape_string, #getBinding, #guess_base, #guess_table, #image_of_id, #lzero, #manqod_db, #measure, #myexec, #nick, #nick_id, #number_format, #qrow, #query, #reconnect_manqod_db, #rows, #run_events, #send_message, #sendmail, #set_manqod_db_uri, #set_nick

Methods included from Eprint

#ecode, #edebug, #eerror, #einfo, #enormal, #eprint, #ewarn, #gtk_set_edebug, #set_edebug, #tell_exception

Methods inherited from MyRendererCombo

#get_text_from_value, #get_value_from_text, #item, #parentM, #parentselected, #select_value, #text, #update

Constructor Details

#initialize(pc) ⇒ MyRendererConstCombo

Returns a new instance of MyRendererConstCombo.



8
9
10
11
12
13
14
# File 'lib/FormHolder/Form/InputHolder/ConstCombo.rb', line 8

def initialize(pc)
@pc=pc
item['admin']=true
item['type_def']="[cdisplay:text][description:text]" if item['type_def'].length<5
item['querysql']="select cdata,cdisplay,description from scv where combo='#{item['data']}' order by cdata"
super(pc)
end

Instance Attribute Details

#pcObject

Returns the value of attribute pc.



15
16
17
# File 'lib/FormHolder/Form/InputHolder/ConstCombo.rb', line 15

def pc
  @pc
end

Instance Method Details

#to_sObject



17
# File 'lib/FormHolder/Form/InputHolder/ConstCombo.rb', line 17

def to_s;"ConstCombo(#{item["description"]})";end