Methods
- #
- C
- D
- E
- I
- L
- M
- N
- S
Included Modules
Constants
ListItem_TBL | = | TkCore::INTERP.create_table |
ListItem_ID | = | ['bw:item'.freeze, TkUtil.untrust('00000')]).instance_eval{ @mutex = Mutex.new |
Class Public methods
id2obj(lbox, id)
Link
new(lbox, *args)
Link
# File ext/tk/lib/tkextlib/bwidget/listbox.rb, line 236 def initialize(lbox, *args) if lbox.kind_of?(Tk::BWidget::ListBox) @listbox = lbox else fail RuntimeError, "expect Tk::BWidget::ListBox or Tk::BWidget::ListBox::Item for 1st argument" end if args[-1].kind_of?(Hash) keys = _symbolkey2str(args.pop) else keys = {} end index = keys.delete('index') unless args.empty? index = args.shift end index = 'end' unless index unless args.empty? fail RuntimeError, 'too much arguments' end @lpath = @listbox.path if keys.key?('itemname') @path = @id = keys.delete('itemname') else ListItem_ID.mutex.synchronize{ @path = @id = ListItem_ID.join(TkCore::INTERP._ip_id_) ListItem_ID[1].succ! } end ListItem_TBL.mutex.synchronize{ ListItem_TBL[@id] = self ListItem_TBL[@lpath] = {} unless ListItem_TBL[@lpath] ListItem_TBL[@lpath][@id] = self } @listbox.insert(index, @id, keys) end
Instance Public methods
[](key)
Link
[]=(key, val)
Link
cget(key)
Link
cget_strict(key)
Link
cget_tkstring(key)
Link
configinfo(key=nil)
Link
configure(key, val=None)
Link
current_configinfo(key=nil)
Link
delete()
Link
edit(*args)
Link
exist?()
Link
id()
Link
index()
Link
listbox()
Link
move(index)
Link
mutex()
Link
see()
Link
selection_add()
Link
selection_remove()
Link
selection_set()
Link