class MyRendererHScale
this file is part of manqod manqod is distributed under the CDDL licence the author of manqod is Dobai-Pataky Balint(dpblnt@gmail.com)
Attributes
pc[RW]
Public Class Methods
new(pc)
click to toggle source
Calls superclass method
# File lib/FormHolder/Form/InputHolder/HScale.rb, line 7 def initialize(pc) @pc=pc super(0,100,1) signal_connect('value_changed'){|me| edebug(inspect+" '#{item['data']}' changed to item #{me.value}","form","debug") pc.changed pc.notify_observers(self) edebug("'#{item['data']}' emiting 'changed' to observers","form","debug") run_events(item['id'],'form_item-Action') } end
Public Instance Methods
item()
click to toggle source
# File lib/FormHolder/Form/InputHolder/HScale.rb, line 28 def item pc.item end
parentM()
click to toggle source
# File lib/FormHolder/Form/InputHolder/HScale.rb, line 40 def parentM pc.parentM end
parentselected()
click to toggle source
# File lib/FormHolder/Form/InputHolder/HScale.rb, line 36 def parentselected pc.parentselected end
text()
click to toggle source
# File lib/FormHolder/Form/InputHolder/HScale.rb, line 32 def text value.to_s end
update(new_value=item['default'])
click to toggle source
# File lib/FormHolder/Form/InputHolder/HScale.rb, line 20 def update(new_value=item['default']) item['default']=new_value run_events(item['id'],'form_item-BeforeUpdate') pc.run_query set_value(item['default'].to_f) if item['default'] run_events(item['id'],'form_item-AfterUpdate') end