Namespace
Methods
- A
- C
- D
- E
- F
- I
- J
- L
- S
- T
Included Modules
Constants
TkCommandNames | = | ['::blt::table'.freeze].freeze |
Instance Public methods
add(container, *args)
Link
# File ext/tk/lib/tkextlib/blt/table.rb, line 330 def add(container, *args) if args.empty? tk_call('::blt::table', container) else args = args.collect{|arg| if arg.kind_of?(TkWindow) _epath(arg) elsif arg.kind_of?(Array) # index arg.join(',') else arg end } tk_call('::blt::table', container, *args) end container end
arrange(container)
Link
cget(container, option)
Link
cget_strict(container, option)
Link
cget_tkstring(container, option)
Link
configinfo(container, *args)
Link
configure(container, *args)
Link
containers(arg={})
Link
containers_pattern(pat)
Link
containers_slave(win)
Link
create_container(container)
Link
current_configinfo(container, *args)
Link
current_itemconfiginfo(container, *args)
Link
# File ext/tk/lib/tkextlib/blt/table.rb, line 264 def current_itemconfiginfo(container, *args) slot = args[-1] if slot.kind_of?(String) || slot.kind_of?(Symbol) slot = slot.to_s if slot[0] == ?. || slot =~ /^\d+,\d+$/ || slot =~ /^(c|C|r|R)(\*|\d+)/ # widget || row,col || Ci or Ri slot = nil else # option slot = args.pop end else slot = nil end fail ArgumentError, 'no item is given' if args.empty? id = [container] args.each{|item| id << tagid(item)} __current_itemconfiginfo(id, slot) end
delete(container, *args)
Link
extents(container, item)
Link
forget(*wins)
Link
info(container)
Link
insert(container, *args)
Link
insert_after(container, *args)
Link
insert_before(container, *args)
Link
itemcget(container, item, option)
Link
itemcget_strict(container, item, option)
Link
itemcget_tkstring(container, item, option)
Link
itemconfiginfo(container, *args)
Link
# File ext/tk/lib/tkextlib/blt/table.rb, line 242 def itemconfiginfo(container, *args) slot = args[-1] if slot.kind_of?(String) || slot.kind_of?(Symbol) slot = slot.to_s if slot[0] == ?. || slot =~ /^\d+,\d+$/ || slot =~ /^(c|C|r|R)(\*|\d+)/ # widget || row,col || Ci or Ri slot = nil else # option slot = args.pop end else slot = nil end fail ArgumentError, 'no item is given' if args.empty? id = [container] args.each{|item| id << tagid(item)} __itemconfiginfo(id, slot) end
itemconfigure(container, *args)
Link
# File ext/tk/lib/tkextlib/blt/table.rb, line 222 def itemconfigure(container, *args) if args[-1].kind_of?(Hash) # container, item, item, ... , hash_optkeys keys = args.pop fail ArgumentError, 'no item is given' if args.empty? id = [container] args.each{|item| id << tagid(item)} __itemconfigure(id, keys) else # container, item, item, ... , option, value val = args.pop opt = args.pop fail ArgumentError, 'no item is given' if args.empty? id = [container] args.each{|item| id << tagid(item)} __itemconfigure(id, opt, val) end container end
iteminfo(container, item)
Link
# File ext/tk/lib/tkextlib/blt/table.rb, line 296 def iteminfo(container, item) inf = list(tk_call('::blt::table', 'info', container, tagid(item)).chomp) ret = [] until inf.empty? || (inf[0].kind_of?(String) && inf[0] =~ /^-/) ret << inf.shift end if inf.length > 1 keys = {} while inf.length > 1 opt = inf.slice!(0..1) keys[opt[0][1..-1]] = opt[1] end ret << keys end ret end
join(container, first, last)
Link
locate(container, x, y)
Link
save(container)
Link
search(container, keys={})
Link
split(container, *args)
Link
tagid(tag)
Link
# File ext/tk/lib/tkextlib/blt/table.rb, line 165 def tagid(tag) if tag.kind_of?(Array) case tag[0] when Integer # [row, col] tag.join(',') when :c, :C, 'c', 'C', :r, :R, 'r', 'R' # c0 or r1 or C*, and so on tag.collect{|elem| elem.to_s}.join('') else tag end elsif tag.kind_of?(TkWindow) _epath(tag) else tag end end