class MyRendererLabel

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/Label.rb, line 7
def initialize(pc)
        @pc=pc
        super()
end

Public Instance Methods

item() click to toggle source
# File lib/FormHolder/Form/InputHolder/Label.rb, line 21
def item
        pc.item
end
parentM() click to toggle source
# File lib/FormHolder/Form/InputHolder/Label.rb, line 36
def parentM
        pc.parentM
end
parentselected() click to toggle source
# File lib/FormHolder/Form/InputHolder/Label.rb, line 32
def parentselected
        pc.parentselected
end
set_editable(*args) click to toggle source
# File lib/FormHolder/Form/InputHolder/Label.rb, line 29
def set_editable(*args)
end
text() click to toggle source
# File lib/FormHolder/Form/InputHolder/Label.rb, line 25
def text
        item["default"]
end
update(new_value=item['default']) click to toggle source
# File lib/FormHolder/Form/InputHolder/Label.rb, line 13
def update(new_value=item['default'])
        item['default']=new_value
        run_events(item['id'],'form_item-BeforeUpdate')
        pc.run_query
        set_text(item['default']) if item['default']
        run_events(item['id'],'form_item-AfterUpdate')
end