Class: JLDrill::Gtk::VocabularyTableView

Inherits:
ShowAllVocabularyContext::VocabularyTableView show all
Defined in:
lib/jldrill/views/gtk/VocabularyTableView.rb

Instance Attribute Summary collapse

Attributes inherited from ShowAllVocabularyContext::VocabularyTableView

#items, #quiz

Attributes inherited from Context::View

#context

Instance Method Summary collapse

Methods inherited from ShowAllVocabularyContext::VocabularyTableView

#close

Methods inherited from Context::View

#addView, #removeView, #removingViewFrom, #viewAddedTo

Constructor Details

#initialize(context) ⇒ VocabularyTableView

Returns a new instance of VocabularyTableView.



12
13
14
15
# File 'lib/jldrill/views/gtk/VocabularyTableView.rb', line 12

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

Instance Attribute Details

#vocabularyTableWindowObject (readonly)

Returns the value of attribute vocabularyTableWindow.



10
11
12
# File 'lib/jldrill/views/gtk/VocabularyTableView.rb', line 10

def vocabularyTableWindow
  @vocabularyTableWindow
end

Instance Method Details

#addItem(item) ⇒ Object



37
38
39
# File 'lib/jldrill/views/gtk/VocabularyTableView.rb', line 37

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

#destroyObject



21
22
23
# File 'lib/jldrill/views/gtk/VocabularyTableView.rb', line 21

def destroy
    @itemTableWindow.explicitDestroy
end

#getWidgetObject



17
18
19
# File 'lib/jldrill/views/gtk/VocabularyTableView.rb', line 17

def getWidget
	@itemTableWindow
end

#removeItem(item) ⇒ Object



41
42
43
# File 'lib/jldrill/views/gtk/VocabularyTableView.rb', line 41

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

#select(item) ⇒ Object



29
30
31
# File 'lib/jldrill/views/gtk/VocabularyTableView.rb', line 29

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

#showBusy(bool) ⇒ Object



45
46
47
# File 'lib/jldrill/views/gtk/VocabularyTableView.rb', line 45

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

#update(items) ⇒ Object



25
26
27
# File 'lib/jldrill/views/gtk/VocabularyTableView.rb', line 25

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

#updateItem(item) ⇒ Object



33
34
35
# File 'lib/jldrill/views/gtk/VocabularyTableView.rb', line 33

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