Sha256: 96c3265b8953950342218d3051fa959af3a628ea65d7d9f56f3fed115bfc63b8

Contents?: true

Size: 1.04 KB

Versions: 1

Compression:

Stored size: 1.04 KB

Contents

# encoding: utf-8
require 'jldrill/views/gtk/widgets/ItemTableWindow'
require 'jldrill/contexts/ShowAllVocabularyContext'
require 'gtk2'

module JLDrill::Gtk

	class VocabularyTableView < JLDrill::ShowAllVocabularyContext::VocabularyTableView

        attr_reader :vocabularyTableWindow
        	
		def initialize(context)
			super(context)
			@itemTableWindow = JLDrill::Gtk::ItemTableWindow.new(self)
		end
		
		def getWidget
			@itemTableWindow
		end

        def destroy
            @itemTableWindow.explicitDestroy
        end

        def update(items)
            @itemTableWindow.updateTable(items)
        end

        def select(item)
            @itemTableWindow.select(item)
        end

        def updateItem(item)
            @itemTableWindow.updateItem(item)
        end

        def addItem(item)
            @itemTableWindow.addItem(item)
        end

        def removeItem(item)
            @itemTableWindow.removeItem(item)
        end
        
        def showBusy(bool)
            @itemTableWindow.showBusy(bool)
        end
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jldrill-0.6.0.1 lib/jldrill/views/gtk/VocabularyTableView.rb