Class: JLDrill::Gtk::ItemTable
- Inherits:
-
WordTable
- Object
- Gtk::ScrolledWindow
- WordTable
- JLDrill::Gtk::ItemTable
show all
- Defined in:
- lib/jldrill/views/gtk/widgets/ItemTable.rb
Instance Method Summary
collapse
Methods inherited from WordTable
#addItem, #attachColumns, #callActionOnActivation, #createListStore, #focusTable, #getNextIter, #getPreviousIter, #getSelectedItem, #hasSelection?, #highlightOnSelection, #markClear, #markCut, #moveDown, #moveUp, #pasteBefore, #removeItem, #search, #searching?, #selectClosestMatch, #selectItem, #selectPath, #setItem, #setupSelection, #stopSearching, #toggleSearch, #updateItem
Constructor Details
#initialize(itemList, &selectAction) ⇒ ItemTable
Returns a new instance of ItemTable.
11
12
13
|
# File 'lib/jldrill/views/gtk/widgets/ItemTable.rb', line 11
def initialize(itemList, &selectAction)
super(itemList, JLDrill::Vocabulary, &selectAction)
end
|
Instance Method Details
#getContents(item) ⇒ Object
24
25
26
|
# File 'lib/jldrill/views/gtk/widgets/ItemTable.rb', line 24
def getContents(item)
return item.to_o
end
|
#getContentsAsVocab(item) ⇒ Object
28
29
30
|
# File 'lib/jldrill/views/gtk/widgets/ItemTable.rb', line 28
def getContentsAsVocab(item)
return item.to_o
end
|
#searchEqual(model, column, key, iter) ⇒ Object
15
16
17
18
19
20
21
22
|
# File 'lib/jldrill/views/gtk/widgets/ItemTable.rb', line 15
def searchEqual(model, column, key, iter)
retVal = true
vocab = iter[0].to_o
if !vocab.nil?
retVal = !vocab.startsWith?(key)
end
return retVal
end
|