Class: Birt::Core::TableRowCell

Inherits:
BaseReport show all
Defined in:
lib/birt/core/table/table_row_cell.rb

Instance Attribute Summary collapse

Attributes inherited from BaseReport

#id

Instance Method Summary collapse

Methods inherited from BaseReport

#elem_text

Constructor Details

#initialize(x_ele) {|_self| ... } ⇒ TableRowCell

Returns a new instance of TableRowCell.

Yields:

  • (_self)

Yield Parameters:



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/birt/core/table/table_row_cell.rb', line 5

def initialize(x_ele)
  self.cell_labels = Array.new
  self.cell_datas = Array.new

  super(x_ele) do
    x_ele.get_elements(xpath="label").each { |label| self.cell_labels.push Birt::Core::TableCellLabel.new(label) }
    x_ele.get_elements(xpath="data").each { |data| self.cell_datas.push Birt::Core::TableCellData.new(data) }
  end

  yield(self) if block_given?
end

Instance Attribute Details

#cell_datasObject

Returns the value of attribute cell_datas.



3
4
5
# File 'lib/birt/core/table/table_row_cell.rb', line 3

def cell_datas
  @cell_datas
end

#cell_labelsObject

Returns the value of attribute cell_labels.



2
3
4
# File 'lib/birt/core/table/table_row_cell.rb', line 2

def cell_labels
  @cell_labels
end