Sha256: bd37440516026d7952422cc0d27cafd837b7a4119c7c0fe2667ef55a4a4c06e3

Contents?: true

Size: 735 Bytes

Versions: 1

Compression:

Stored size: 735 Bytes

Contents

# encoding: utf-8
require 'gtk2'
require 'jldrill/views/gtk/widgets/WordTable.rb'
require 'jldrill/model/Item'
require 'jldrill/model/items/Vocabulary'


module JLDrill::Gtk
    class ItemTable < WordTable

        def initialize(itemList, &selectAction)
            super(itemList, 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.6.0.1 lib/jldrill/views/gtk/widgets/ItemTable.rb