class HDBFilterView

Public Class Methods

new(sourceView: nil, **args) click to toggle source
Calls superclass method HDivTag::new
# File lib/hwidgets/hdbfilterview.rb, line 3
def initialize(sourceView: nil, **args)

  @sourceView = sourceView
  return super(class: 'hdbfilterview', **args)

end

Public Instance Methods

applyFilter(value: 'true') click to toggle source
# File lib/hwidgets/hdbfilterview.rb, line 10
def applyFilter(value: 'true')
  return @sourceView.html(filter: value)
end
filter() click to toggle source
# File lib/hwidgets/hdbfilterview.rb, line 14
def filter
  div = HDivTag.new(class: 'filter-box') 
  div << HWidget.new("span", "Filter:")
  div << filter = HWidget.new("input", class: 'filter', type: 'text', value: "",  
                     onkeypress: "hdbFilterView.keyPress(this, event)")
  filter.connect(:onblur, self, "applyFilter", id: @sourceView.oid, attributes: ":obj.value")
  return div
end
html() click to toggle source
Calls superclass method HWidget#html
# File lib/hwidgets/hdbfilterview.rb, line 23
def html
  self << filter
  return super
end