class HtmlGrid::NamedComponent

Attributes

name[R]

Public Class Methods

new(name, model, session, container = nil) click to toggle source
Calls superclass method HtmlGrid::Component::new
# File lib/htmlgrid/namedcomponent.rb, line 32
def initialize(name, model, session, container = nil)
  @name = name
  super(model, session, container)
  @attributes["name"] = @name.to_s
end

Public Instance Methods

data_origin() click to toggle source
# File lib/htmlgrid/namedcomponent.rb, line 43
def data_origin
  if @model.respond_to?(:data_origin)
    @model.data_origin(@name)
  end
end
error?() click to toggle source
# File lib/htmlgrid/namedcomponent.rb, line 49
def error?
  if @model.respond_to?(:error?)
    @model.error?(@name)
  end
end
init() click to toggle source
Calls superclass method HtmlGrid::Component#init
# File lib/htmlgrid/namedcomponent.rb, line 38
def init
  super
  @attributes.update(@lookandfeel.attributes(@name)) if @lookandfeel
end