Class: Cheri::JRuby::Explorer::HtmlNameValueListViewer
- Inherits:
-
HtmlTableViewer
- Object
- Viewer
- HtmlViewer
- HtmlTableViewer
- Cheri::JRuby::Explorer::HtmlNameValueListViewer
- Defined in:
- lib/cheri/jruby/explorer/viewer.rb
Constant Summary collapse
- HColor =
'#f0faff'.freeze
- NColor =
'#f0e2e0'.freeze
- VColor =
'#f0f0f0'.freeze
- Right =
'right'.freeze
- Top =
'top'.freeze
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
Instance Method Summary collapse
- #id_value_row(type, id, value) ⇒ Object
- #name_type_id_value_row(name, type, id, value) ⇒ Object
- #name_type_value_row(name, type, value) ⇒ Object
- #name_value_row(name, value) ⇒ Object
- #type_id_value_row(type, id, value) ⇒ Object
- #value_list(value_array) ⇒ Object
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
Methods included from ViewerInterface
#close_view, #icon, #icon_tab, #icon_tree, #initialize, #instance, #leaf?, #main, #proxy, #refresh, #tab, #title, #title_tab, #title_tree, #tooltip, #type, #view
Constructor Details
This class inherits a constructor from Cheri::JRuby::Explorer::Viewer
Instance Method Details
#id_value_row(type, id, value) ⇒ Object
406 407 408 409 410 411 412 |
# File 'lib/cheri/jruby/explorer/viewer.rb', line 406 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
387 388 389 390 391 392 393 394 395 |
# File 'lib/cheri/jruby/explorer/viewer.rb', line 387 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
378 379 380 381 382 383 384 385 |
# File 'lib/cheri/jruby/explorer/viewer.rb', line 378 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
369 370 371 372 373 374 375 376 |
# File 'lib/cheri/jruby/explorer/viewer.rb', line 369 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
397 398 399 400 401 402 403 404 |
# File 'lib/cheri/jruby/explorer/viewer.rb', line 397 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
414 415 416 417 418 419 420 421 |
# File 'lib/cheri/jruby/explorer/viewer.rb', line 414 def value_list(value_array) table do value_array.each do |value| tr td(esc(value)) end nil end end |