Class: ODDB::View::ResultFoot

Inherits:
HtmlGrid::Composite show all
Includes:
ExternalLinks
Defined in:
src/view/resultfoot.rb

Constant Summary

COLSPAN_MAP =
{
}
COMPONENTS =
{
  [0,0] =>  :explain_result,
}
COMPONENT_CSS_MAP =
{
  [0,0] =>  'explain',
}
CSS_MAP =
{
  [0,0] =>  'explain',
}
CSS_CLASS =
'composite'

Instance Method Summary (collapse)

Methods included from ExternalLinks

#contact_link, #data_declaration, #external_link, #faq_link, #generic_definition, #help_link, #meddrugs_update, #wiki_link

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) explain_result(model, session = @session)



171
172
173
174
175
176
177
178
# File 'src/view/resultfoot.rb', line 171

def explain_result(model, session=@session)
  klass = nil
  if(defined?(@container.class::EXPLAIN_RESULT))
    klass = @container.class::EXPLAIN_RESULT
  end
  klass ||= View::ExplainResult
  klass.new(model, @session, self)
end

- (Object) init



161
162
163
164
165
166
167
168
169
170
# File 'src/view/resultfoot.rb', line 161

def init
  legal_coords = [1,0]
  if @lookandfeel.enabled?(:legal_note_vertical, false)
    legal_coords = [0,1]
  end
  components.store legal_coords, :legal_note
  css_map.store legal_coords, 'explain right'
  component_css_map.store legal_coords, 'explain right'
  super
end


179
180
181
182
183
# File 'src/view/resultfoot.rb', line 179

def legal_note(model, session=@session)
  link = super(model)
  link.css_class = 'subheading'
  link
end