class MyRendererEditableList
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
Mylist::MyListHolder::new
# File lib/FormHolder/Form/InputHolder/EditableList.rb, line 7 def initialize(pc) @pc=pc super(pc.parentM.parentM) set_parentM(pc.parentM.parentM) list.set_id(pc.target) unless @pc.parentM.wysiwygf? @pc.set_include_in_query_building(false) # set_has_frame(false) =begin 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 end
Public Instance Methods
inspect()
click to toggle source
# File lib/FormHolder/Form/InputHolder/EditableList.rb, line 52 def inspect "Text(#{item["description"]})" end
item()
click to toggle source
# File lib/FormHolder/Form/InputHolder/EditableList.rb, line 31 def item @pc.item end
method_missing(sym,*args)
click to toggle source
# File lib/FormHolder/Form/InputHolder/EditableList.rb, line 49 def method_missing(sym,*args) text end
parentselected()
click to toggle source
# File lib/FormHolder/Form/InputHolder/EditableList.rb, line 45 def parentselected @pc.parentselected end
text()
click to toggle source
# File lib/FormHolder/Form/InputHolder/EditableList.rb, line 27 def text list.get_cursor_id.to_s end
to_s()
click to toggle source
# File lib/FormHolder/Form/InputHolder/EditableList.rb, line 55 def to_s;inspect;end
update(new_value=item['default'])
click to toggle source
Calls superclass method
Mylist::MyListHolder#update
# File lib/FormHolder/Form/InputHolder/EditableList.rb, line 35 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'] pc.set_editable(pc.parentM.runmode != "add") super(pc.parentM.parentM) unless @pc.parentM.wysiwygf? run_events(item['id'],'form_item-AfterUpdate') end