Class: Birt::Core::TableRowCell
- Inherits:
-
BaseReport
- Object
- BaseReport
- Birt::Core::TableRowCell
- Defined in:
- lib/birt/core/table/table_row_cell.rb
Instance Attribute Summary collapse
-
#cell_datas ⇒ Object
Returns the value of attribute cell_datas.
-
#cell_labels ⇒ Object
Returns the value of attribute cell_labels.
Attributes inherited from BaseReport
Instance Method Summary collapse
-
#initialize(x_ele) {|_self| ... } ⇒ TableRowCell
constructor
A new instance of TableRowCell.
Methods inherited from BaseReport
Constructor Details
#initialize(x_ele) {|_self| ... } ⇒ TableRowCell
Returns a new instance of TableRowCell.
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_datas ⇒ Object
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_labels ⇒ Object
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 |