class Gtk::TreeView
Shortcuts on the actual treeview-objects.
Public Instance Methods
append(data)
click to toggle source
Shortcut to do Knj::Gtk2.append(treeview, [data1, data2])
# File lib/knj/gtk2_tv.rb, line 382 def append(data) return Knj::Gtk2::Tv.append(self, data) end
append_column(column)
click to toggle source
# File lib/knj/jruby-gtk2/treeview.rb, line 15 def append_column(column) #do nothing - the Java mode should already have done this. end
columns()
click to toggle source
# File lib/knj/jruby-gtk2/treeview.rb, line 23 def columns return TreeViewColumns.new(self) end
init(cols)
click to toggle source
Shortcut to do Knj::Gtk2.init(treeview, columns_array)
# File lib/knj/gtk2_tv.rb, line 387 def init(cols) return Knj::Gtk2::Tv.init(self, cols) end
model()
click to toggle source
# File lib/knj/ironruby-gtk2/gtk_treeview.rb, line 16 def model return @model end
model=(newmodel)
click to toggle source
# File lib/knj/ironruby-gtk2/gtk_treeview.rb, line 11 def model=(newmodel) @model = newmodel @ob.model = newmodel.ob end
sel()
click to toggle source
Shortcut to do Knj::Gtk2::Tv.sel(treeview)
# File lib/knj/gtk2_tv.rb, line 377 def sel return Knj::Gtk2::Tv.sel(self) end
selection()
click to toggle source
# File lib/knj/ironruby-gtk2/gtk_treeview.rb, line 2 def selection if !@selection Gtk.takeob = @ob.selection @selection = Gtk::TreeSelection.new end return @selection end
set_model(newmodel)
click to toggle source
# File lib/knj/jruby-gtk2/treeview.rb, line 5 def set_model(newmodel) @knj_model = newmodel @ob.model = newmodel.ob newmodel.tv = self $knj_jruby_gtk_last_treeview = self end
Also aliased as: model=