Class: Cheri::JRuby::Explorer::HtmlNameValueListViewer

Inherits:
HtmlTableViewer show all
Defined in:
lib/cheri/jruby/explorer/viewer.rb

Constant Summary collapse

HColor =
'#f0faff'
NColor =
'#f0e2e0'
VColor =
'#f0f0f0'
Right =
'right'
Top =
'top'

Constants inherited from HtmlViewer

Cheri::JRuby::Explorer::HtmlViewer::ContType, Cheri::JRuby::Explorer::HtmlViewer::HtmlStyle, Cheri::JRuby::Explorer::HtmlViewer::TColor, Cheri::JRuby::Explorer::HtmlViewer::TblWidth

Constants included from Html

Html::Aliases, Html::HtmlConnecter, Html::Types, Html::VERSION

Constants included from Swing

Swing::SwingConnecter

Instance Attribute Summary

Attributes included from ViewerInterface

#icon, #instance, #main, #title, #tooltip, #type

Instance Method Summary collapse

Methods inherited from HtmlTableViewer

#empty_row, #html_content, #table_rows

Methods inherited from HtmlViewer

#html_content, #html_document, #html_heading, #html_style, #html_title, #refresh, #view

Methods inherited from Viewer

#initialize

Methods included from ViewerInterface

#close_view, #icon_tab, #icon_tree, #initialize, #leaf?, #proxy, #refresh, #tab, #title_tab, #title_tree, #view

Constructor Details

This class inherits a constructor from Cheri::JRuby::Explorer::Viewer

Instance Method Details

#id_value_row(type, id, value) ⇒ Object



381
382
383
384
385
386
387
# File 'lib/cheri/jruby/explorer/viewer.rb', line 381

def id_value_row(type,id,value)
  tr do
    td id, :bgcolor => VColor, :align => Right, :valign => Top, :width => 20, :class => :oid
    td value, :bgcolor => VColor, :class => :val
    nil
  end  
end

#name_type_id_value_row(name, type, id, value) ⇒ Object



362
363
364
365
366
367
368
369
370
# File 'lib/cheri/jruby/explorer/viewer.rb', line 362

def name_type_id_value_row(name,type,id,value)
  tr do
    td name, :class => :var, :valign => Top, :width=> 120, :bgcolor => VColor
    td type, :bgcolor => VColor, :valign => Top
    td id, :bgcolor => VColor, :align => Right, :valign => Top, :width => 20, :class => :oid
    td value, :bgcolor => VColor, :class => :val
    nil
  end  
end

#name_type_value_row(name, type, value) ⇒ Object



353
354
355
356
357
358
359
360
# File 'lib/cheri/jruby/explorer/viewer.rb', line 353

def name_type_value_row(name,type,value)
  tr do
    th name, :class => :var, :align => :left, :valign => Top, :width=> 120, :bgcolor => NColor
    td type, :bgcolor => VColor, :valign => Top
    td value, :bgcolor => VColor, :class => :val
    nil
  end  
end

#name_value_row(name, value) ⇒ Object



344
345
346
347
348
349
350
351
# File 'lib/cheri/jruby/explorer/viewer.rb', line 344

def name_value_row(name,value)
 v = tr do
    th name, :align => :left, :valign => Top, :width=> 160, :bgcolor => NColor
    td value, :bgcolor => VColor, :class => :val
    nil
  end
  v
end

#type_id_value_row(type, id, value) ⇒ Object



372
373
374
375
376
377
378
379
# File 'lib/cheri/jruby/explorer/viewer.rb', line 372

def type_id_value_row(type,id,value)
  tr do
    td type, :bgcolor => VColor, :valign => Top
    td id, :bgcolor => VColor, :align => Right, :valign => Top, :width => 20, :class => :oid
    td value, :bgcolor => VColor, :class => :val
    nil
  end  
end

#value_list(value_array) ⇒ Object



389
390
391
392
393
394
395
396
# File 'lib/cheri/jruby/explorer/viewer.rb', line 389

def value_list(value_array)
  table do
    value_array.each do |value|
      tr td(esc(value))      
    end
    nil
  end  
end