Class: Coopy::CombinedTableHead
- Inherits:
-
Object
- Object
- Coopy::CombinedTableHead
- Defined in:
- lib/lib/coopy/combined_table_head.rb
Instance Method Summary collapse
- #clear ⇒ Object
- #clone ⇒ Object
- #create ⇒ Object
- #get_cell(x, y) ⇒ Object
- #get_cell_view ⇒ Object
- #get_data ⇒ Object
- #get_height ⇒ Object
- #get_meta ⇒ Object
- #get_table ⇒ Object
- #get_width ⇒ Object
- #height ⇒ Object
- #height=(__v) ⇒ Object
-
#initialize(parent, dx, dy) ⇒ CombinedTableHead
constructor
A new instance of CombinedTableHead.
- #insert_or_delete_columns(fate, wfate) ⇒ Object
- #insert_or_delete_rows(fate, hfate) ⇒ Object
- #is_resizable ⇒ Object
- #resize(w, h) ⇒ Object
- #set_cell(x, y, c) ⇒ Object
- #to_s ⇒ Object
- #trim_blank ⇒ Object
- #width ⇒ Object
- #width=(__v) ⇒ Object
Constructor Details
#initialize(parent, dx, dy) ⇒ CombinedTableHead
Returns a new instance of CombinedTableHead.
7 8 9 10 11 12 |
# File 'lib/lib/coopy/combined_table_head.rb', line 7 def initialize(parent,dx,dy) @parent = parent @dx = dx @dy = dy @all = parent.all end |
Instance Method Details
#clear ⇒ Object
69 70 |
# File 'lib/lib/coopy/combined_table_head.rb', line 69 def clear end |
#clone ⇒ Object
88 89 90 |
# File 'lib/lib/coopy/combined_table_head.rb', line 88 def clone nil end |
#create ⇒ Object
92 93 94 |
# File 'lib/lib/coopy/combined_table_head.rb', line 92 def create nil end |
#get_cell(x, y) ⇒ Object
40 41 42 43 44 45 46 47 |
# File 'lib/lib/coopy/combined_table_head.rb', line 40 def get_cell(x,y) if x == 0 v = self.get_cell_view txt = v.to_s(@all.get_cell(x,y)) return txt[1,txt.length] if txt[0] == "@" end @all.get_cell(x,y) end |
#get_cell_view ⇒ Object
57 58 59 |
# File 'lib/lib/coopy/combined_table_head.rb', line 57 def get_cell_view @all.get_cell_view end |
#get_data ⇒ Object
84 85 86 |
# File 'lib/lib/coopy/combined_table_head.rb', line 84 def get_data nil end |
#get_height ⇒ Object
36 37 38 |
# File 'lib/lib/coopy/combined_table_head.rb', line 36 def get_height @dy end |
#get_meta ⇒ Object
96 97 98 |
# File 'lib/lib/coopy/combined_table_head.rb', line 96 def nil end |
#get_table ⇒ Object
23 24 25 |
# File 'lib/lib/coopy/combined_table_head.rb', line 23 def get_table self end |
#get_width ⇒ Object
32 33 34 |
# File 'lib/lib/coopy/combined_table_head.rb', line 32 def get_width @all.get_width end |
#height ⇒ Object
27 |
# File 'lib/lib/coopy/combined_table_head.rb', line 27 def height() get_height end |
#height=(__v) ⇒ Object
28 |
# File 'lib/lib/coopy/combined_table_head.rb', line 28 def height=(__v) @height = __v end |
#insert_or_delete_columns(fate, wfate) ⇒ Object
76 77 78 |
# File 'lib/lib/coopy/combined_table_head.rb', line 76 def insert_or_delete_columns(fate,wfate) @all.insert_or_delete_columns(fate,wfate) end |
#insert_or_delete_rows(fate, hfate) ⇒ Object
72 73 74 |
# File 'lib/lib/coopy/combined_table_head.rb', line 72 def insert_or_delete_rows(fate,hfate) false end |
#is_resizable ⇒ Object
61 62 63 |
# File 'lib/lib/coopy/combined_table_head.rb', line 61 def is_resizable false end |
#resize(w, h) ⇒ Object
65 66 67 |
# File 'lib/lib/coopy/combined_table_head.rb', line 65 def resize(w,h) false end |
#set_cell(x, y, c) ⇒ Object
49 50 51 |
# File 'lib/lib/coopy/combined_table_head.rb', line 49 def set_cell(x,y,c) @all.set_cell(x,y,c) end |
#to_s ⇒ Object
53 54 55 |
# File 'lib/lib/coopy/combined_table_head.rb', line 53 def to_s ::Coopy::SimpleTable.table_to_string(self) end |
#trim_blank ⇒ Object
80 81 82 |
# File 'lib/lib/coopy/combined_table_head.rb', line 80 def trim_blank false end |
#width ⇒ Object
29 |
# File 'lib/lib/coopy/combined_table_head.rb', line 29 def width() get_width end |
#width=(__v) ⇒ Object
30 |
# File 'lib/lib/coopy/combined_table_head.rb', line 30 def width=(__v) @width = __v end |