Class: RubyCurses::TableHeader

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_rendererObject

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_modelObject

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_rendererObject



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_columnObject

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