class MyFRendererText

this file is part of manqod manqod is distributed under the CDDL licence the author of manqod is Dobai-Pataky Balint(dpblnt@gmail.com)

Public Class Methods

new(caller,header) click to toggle source
Calls superclass method
# File lib/ListHolder/ListPanel/ListFilter/FRenderer/Text.rb, line 7
def initialize(caller,header)
      @to_filter=0
      super()
      set_has_frame(true)
      set_editable(true)
      set_text(get_conf(caller.list.get_id,header["id"],"filter") || "")
      self.signal_connect("changed",caller,header){|me,caller,header|
        set_conf(caller.list.get_id,header["id"],"filter",me.text)
        @to_filter=@to_filter+1
        Gtk.timeout_add(1000){
              @to_filter=@to_filter-1
              caller.list.refilter if @to_filter==0
              false
              }
      }
end

Public Instance Methods

update(newtext="") click to toggle source
# File lib/ListHolder/ListPanel/ListFilter/FRenderer/Text.rb, line 23
def update(newtext="")
      set_text(newtext)
end