class Coopy::CombinedTable
Attributes
body[RW]
core[RW]
dx[RW]
dy[RW]
head[RW]
meta[RW]
t[RW]
Public Class Methods
new(t)
click to toggle source
# File lib/lib/coopy/combined_table.rb, line 7 def initialize(t) @t = t @dx = 0 @dy = 0 @core = t @head = nil return if t.get_width < 1 || t.get_height < 1 v = t.get_cell_view return if v.to_s(t.get_cell(0,0)) != "@@" @dx = 1 @dy = 0 begin _g1 = 0 _g = t.get_height while(_g1 < _g) y = _g1 _g1+=1 txt = v.to_s(t.get_cell(0,y)) break if txt == nil || txt == "" || txt == "null" @dy+=1 end end @head = ::Coopy::CombinedTableHead.new(self,@dx,@dy) @body = ::Coopy::CombinedTableBody.new(self,@dx,@dy) @core = @body @meta = ::Coopy::SimpleMeta.new(@head) end
Public Instance Methods
all()
click to toggle source
# File lib/lib/coopy/combined_table.rb, line 47 def all @t end
clear()
click to toggle source
# File lib/lib/coopy/combined_table.rb, line 92 def clear @core.clear end
clone()
click to toggle source
# File lib/lib/coopy/combined_table.rb, line 112 def clone @core.clone end
create()
click to toggle source
# File lib/lib/coopy/combined_table.rb, line 116 def create @t.create end
get_cell(x,y)
click to toggle source
# File lib/lib/coopy/combined_table.rb, line 68 def get_cell(x,y) @core.get_cell(x,y) end
get_cell_view()
click to toggle source
# File lib/lib/coopy/combined_table.rb, line 80 def get_cell_view @t.get_cell_view end
get_data()
click to toggle source
# File lib/lib/coopy/combined_table.rb, line 108 def get_data nil end
get_height()
click to toggle source
# File lib/lib/coopy/combined_table.rb, line 64 def get_height @core.get_height end
get_meta()
click to toggle source
# File lib/lib/coopy/combined_table.rb, line 120 def get_meta @meta end
get_table()
click to toggle source
# File lib/lib/coopy/combined_table.rb, line 51 def get_table self end
get_width()
click to toggle source
# File lib/lib/coopy/combined_table.rb, line 60 def get_width @core.get_width end
height()
click to toggle source
# File lib/lib/coopy/combined_table.rb, line 55 def height() get_height end
height=(__v)
click to toggle source
# File lib/lib/coopy/combined_table.rb, line 56 def height=(__v) @height = __v end
insert_or_delete_columns(fate,wfate)
click to toggle source
# File lib/lib/coopy/combined_table.rb, line 100 def insert_or_delete_columns(fate,wfate) @core.insert_or_delete_columns(fate,wfate) end
insert_or_delete_rows(fate,hfate)
click to toggle source
# File lib/lib/coopy/combined_table.rb, line 96 def insert_or_delete_rows(fate,hfate) @core.insert_or_delete_rows(fate,hfate) end
is_resizable()
click to toggle source
# File lib/lib/coopy/combined_table.rb, line 84 def is_resizable @core.is_resizable end
resize(w,h)
click to toggle source
# File lib/lib/coopy/combined_table.rb, line 88 def resize(w,h) @core.resize(h,w) end
set_cell(x,y,c)
click to toggle source
# File lib/lib/coopy/combined_table.rb, line 72 def set_cell(x,y,c) @core.set_cell(x,y,c) end
to_s()
click to toggle source
# File lib/lib/coopy/combined_table.rb, line 76 def to_s ::Coopy::SimpleTable.table_to_string(self) end
trim_blank()
click to toggle source
# File lib/lib/coopy/combined_table.rb, line 104 def trim_blank @core.trim_blank end
width()
click to toggle source
# File lib/lib/coopy/combined_table.rb, line 57 def width() get_width end
width=(__v)
click to toggle source
# File lib/lib/coopy/combined_table.rb, line 58 def width=(__v) @width = __v end