Sha256: bffe78457819d19108ce7037d73efd34a59b1f8d48b101b0672834b61efcbf7b
Contents?: true
Size: 805 Bytes
Versions: 1
Compression:
Stored size: 805 Bytes
Contents
require 'gtk2' require 'jldrill/views/gtk/widgets/WordTable.rb' require 'jldrill/model/Item' require 'jldrill/model/items/ItemFactory' require 'jldrill/model/items/Vocabulary' module JLDrill::Gtk class ItemTable < WordTable def initialize(itemList, &selectAction) super(itemList, JLDrill::ItemFactory.find(JLDrill::Vocabulary), &selectAction) end def searchEqual(model, column, key, iter) retVal = true vocab = iter[0].to_o if !vocab.nil? retVal = !vocab.startsWith?(key) end return retVal end def getContents(item) return item.to_o end def getContentsAsVocab(item) return item.to_o end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jldrill-0.5.1.7 | lib/jldrill/views/gtk/widgets/ItemTable.rb |