Class: MyRendererPassword

Inherits:
Gtk::Entry
  • Object
show all
Includes:
ManqodCommon
Defined in:
lib/FormHolder/Form/InputHolder/Password.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 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

Constructor Details

#initialize(pc) ⇒ MyRendererPassword

Returns a new instance of MyRendererPassword.



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

def initialize(pc)
	@pc=pc
	super()
	self.visibility=false
#		self.editable=true
end

Instance Attribute Details

#itemObject

self.editable=true



14
15
16
# File 'lib/FormHolder/Form/InputHolder/Password.rb', line 14

def item
  @item
end

#pcObject

self.editable=true



14
15
16
# File 'lib/FormHolder/Form/InputHolder/Password.rb', line 14

def pc
  @pc
end

Instance Method Details

#parentMObject



26
27
28
# File 'lib/FormHolder/Form/InputHolder/Password.rb', line 26

def parentM
	pc.parentM
end

#parentselectedObject



22
23
24
# File 'lib/FormHolder/Form/InputHolder/Password.rb', line 22

def parentselected
	pc.parentselected
end

#textObject



16
17
18
19
20
# File 'lib/FormHolder/Form/InputHolder/Password.rb', line 16

def text
	np=Digest::MD5.new
	np << super
	np.hexdigest.to_s
end

#update(new_value = item['default']) ⇒ Object



33
34
35
36
37
38
39
# File 'lib/FormHolder/Form/InputHolder/Password.rb', line 33

def update(new_value=item['default'])
	run_events(item['id'],'form_item-BeforeUpdate')
	item['default']=new_value
	pc.run_query
	set_text(item['default'])
	run_events(item['id'],'form_item-AfterUpdate')
end