class GxtWidgets::GxtGrid

Public Instance Methods

include_platform_for(platform) click to toggle source
# File lib/gxt-widgets/gxt_grid.rb, line 13
def include_platform_for platform
  super
  if platform[:platform] == :watir_webdriver
    require 'gxt-widgets/platforms/watir_webdriver/gxt_grid'
    self.class.send :include, GxtWidgets::Platforms::WatirWebDriver::GxtGrid
  elsif platform[:platform] == :selenium_webdriver
    require 'gxt-widgets/platforms/selenium_webdriver/gxt_grid'
    self.class.send :include, GxtWidgets::Platforms::SeleniumWebDriver::GxtGrid
  else
    raise ArgumentError, "expect platform to be :watir_webdriver or :selenium_webdriver"
  end
end
initialize_header(header_element, platform) click to toggle source
# File lib/gxt-widgets/gxt_grid.rb, line 9
def initialize_header(header_element, platform)
  Object::GxtWidgets::GxtGridHeaderRow.new(header_element, self, platform)
end