class MyRendererHidden

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[R]

Public Class Methods

new(pc) click to toggle source
# File lib/FormHolder/Form/InputHolder/Hidden.rb, line 7
def initialize(pc)
              @pc=pc
end

Public Instance Methods

item() click to toggle source
# File lib/FormHolder/Form/InputHolder/Hidden.rb, line 12
def item
              pc.item
end
method_missing(sym,*args) click to toggle source
# File lib/FormHolder/Form/InputHolder/Hidden.rb, line 33
      def method_missing(sym,*args)
      nil
end
parentM() click to toggle source
# File lib/FormHolder/Form/InputHolder/Hidden.rb, line 30
def parentM
              pc.parentM
end
parentselected() click to toggle source
# File lib/FormHolder/Form/InputHolder/Hidden.rb, line 27
def parentselected
              pc.parentselected
end
text() click to toggle source
# File lib/FormHolder/Form/InputHolder/Hidden.rb, line 16
def text
              item['default'].to_s
end
to_s() click to toggle source
# File lib/FormHolder/Form/InputHolder/Hidden.rb, line 37
def to_s
        "Hidden(#{item["description"]})"
end
update(new_value=item['default']) click to toggle source
# File lib/FormHolder/Form/InputHolder/Hidden.rb, line 20
def update(new_value=item['default'])
              item['default']=new_value
              run_events(item['id'],'form_item-BeforeUpdate')
              pc.run_query
              run_events(item['id'],'form_item-AfterUpdate')
end