Methods
- A
- B
- C
- D
- E
- F
- G
- H
- I
- M
- N
- O
- P
- S
- T
Constants
| ItemID_TBL | = | TkCore::INTERP.create_table |
Class Public methods
assign(tree, id)
Link
# File ext/tk/lib/tkextlib/tile/treeview.rb, line 709 def self.assign(tree, id) tpath = tree.path obj = nil Tk::Tile::Treeview::Item::ItemID_TBL.mutex.synchronize{ if Tk::Tile::Treeview::Item::ItemID_TBL[tpath] && Tk::Tile::Treeview::Item::ItemID_TBL[tpath][id] return Tk::Tile::Treeview::Item::ItemID_TBL[tpath][id] end obj = self.allocate obj.instance_eval{ @parent = @t = tree @tpath = tpath @path = @id = id } Tk::Tile::Treeview::Item::ItemID_TBL[tpath] ||= {} Tk::Tile::Treeview::Item::ItemID_TBL[tpath][id] = obj } obj end
id2obj(tree, id)
Link
# File ext/tk/lib/tkextlib/tile/treeview.rb, line 697 def self.id2obj(tree, id) tpath = tree.path Tk::Tile::Treeview::Item::ItemID_TBL.mutex.synchronize{ if Tk::Tile::Treeview::Item::ItemID_TBL[tpath] (Tk::Tile::Treeview::Item::ItemID_TBL[tpath][id])? Tk::Tile::Treeview::Item::ItemID_TBL[tpath][id]: id else id end } end
new(tree, parent_item = '', idx = 'end', keys = {})
Link
# File ext/tk/lib/tkextlib/tile/treeview.rb, line 742 def initialize(tree, parent_item = '', idx = 'end', keys = {}) if parent_item.kind_of?(Hash) keys = parent_item idx = 'end' parent_item = '' elsif idx.kind_of?(Hash) keys = idx idx = 'end' end @parent = @t = tree @tpath = tree.path @path = @id = _insert_item(@t, parent_item, idx, keys) Tk::Tile::Treeview::Item::ItemID_TBL.mutex.synchronize{ ItemID_TBL[@tpath] = {} unless ItemID_TBL[@tpath] ItemID_TBL[@tpath][@id] = self } end
Instance Public methods
bbox(column=None)
Link
cget(option)
Link
cget_strict(option)
Link
cget_tkstring(option)
Link
children()
Link
close()
Link
configinfo(key=nil)
Link
configure(key, value=None)
Link
current_configinfo(key=nil)
Link
delete()
Link
detach()
Link
exist?()
Link
focus()
Link
get(col)
Link
id()
Link
index()
Link
insert(idx='end', keys={})
Link
move(parent, idx)
Link
next_item()
Link
open()
Link
open?()
Link
parent_item()
Link
prev_item()
Link
see()
Link
selection_add()
Link
selection_remove()
Link
selection_set()
Link
selection_toggle()
Link
set(col, value)
Link
set_children(*items)
Link