Class: RubyCurses::TableHeader
- Inherits:
-
Object
- Object
- RubyCurses::TableHeader
- Defined in:
- lib/rbcurse/rtable.rb
Overview
Class that manages Table’s Header are we not taking events such as column added, removed ?
Instance Attribute Summary collapse
-
#default_renderer ⇒ Object
Returns the value of attribute default_renderer.
-
#table_column_model ⇒ Object
Returns the value of attribute table_column_model.
Instance Method Summary collapse
- #create_default_renderer ⇒ Object
-
#get_resizing_column ⇒ Object
added 2009-10-07 14:03 returns the column being resized.
-
#initialize(table_column_model) ⇒ TableHeader
constructor
A new instance of TableHeader.
Constructor Details
#initialize(table_column_model) ⇒ TableHeader
Returns a new instance of TableHeader.
1602 1603 1604 1605 |
# File 'lib/rbcurse/rtable.rb', line 1602 def initialize table_column_model @table_column_model = table_column_model create_default_renderer end |
Instance Attribute Details
#default_renderer ⇒ Object
Returns the value of attribute default_renderer.
1600 1601 1602 |
# File 'lib/rbcurse/rtable.rb', line 1600 def default_renderer @default_renderer end |
#table_column_model ⇒ Object
Returns the value of attribute table_column_model.
1601 1602 1603 |
# File 'lib/rbcurse/rtable.rb', line 1601 def table_column_model @table_column_model end |
Instance Method Details
#create_default_renderer ⇒ Object
1606 1607 1608 1609 |
# File 'lib/rbcurse/rtable.rb', line 1606 def create_default_renderer #@default_renderer = TableCellRenderer.new "", {"display_length" => 10, "justify" => :center} @default_renderer = TableCellRenderer.new "", {"display_length" => 10, "justify" => :center, "color"=>"white", "bgcolor"=>"blue"} end |
#get_resizing_column ⇒ Object
added 2009-10-07 14:03 returns the column being resized
1615 1616 |
# File 'lib/rbcurse/rtable.rb', line 1615 def get_resizing_column end |