class MyRendererText

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/Text.rb, line 7
def initialize(pc)
  @pc=pc
  super()
  set_has_frame(false)
        signal_connect('activate'){|me| 
                edebug(inspect+" '#{item['data']}' changed to item #{me.active.inspect}","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

inspect() click to toggle source
# File lib/FormHolder/Form/InputHolder/Text.rb, line 50
def inspect
        "Text(#{item["description"]})"
end
item() click to toggle source
# File lib/FormHolder/Form/InputHolder/Text.rb, line 26
def item
        @pc.item
end
method_missing(sym,*args) click to toggle source
# File lib/FormHolder/Form/InputHolder/Text.rb, line 47
def method_missing(sym,*args)
        text
end
parentM() click to toggle source
# File lib/FormHolder/Form/InputHolder/Text.rb, line 43
def parentM
  @pc.parentM
end
parentselected() click to toggle source
# File lib/FormHolder/Form/InputHolder/Text.rb, line 39
def parentselected
  @pc.parentselected
end
text() click to toggle source
Calls superclass method
# File lib/FormHolder/Form/InputHolder/Text.rb, line 22
def text
  super
end
to_s() click to toggle source
# File lib/FormHolder/Form/InputHolder/Text.rb, line 53
def to_s;inspect;end
update(new_value=item['default']) click to toggle source
# File lib/FormHolder/Form/InputHolder/Text.rb, line 30
        def update(new_value=item['default'])
          item['default']=new_value
          run_events(item['id'],'form_item-BeforeUpdate')
                pc.run_query
          set_text(item['default'].to_s) if item['default']
#         set_sensitive(item['editable']=="true")
          run_events(item['id'],'form_item-AfterUpdate')
        end