Class: JLDrill::Test::VocabularyTableView
- Inherits:
-
ShowAllVocabularyContext::VocabularyTableView
- Object
- Context::View
- ShowAllVocabularyContext::VocabularyTableView
- JLDrill::Test::VocabularyTableView
- Defined in:
- lib/jldrill/views/test/VocabularyTableView.rb
Instance Attribute Summary collapse
-
#addedItem ⇒ Object
Returns the value of attribute addedItem.
-
#closed ⇒ Object
Returns the value of attribute closed.
-
#destroyed ⇒ Object
Returns the value of attribute destroyed.
-
#removedItem ⇒ Object
Returns the value of attribute removedItem.
-
#selectedItem ⇒ Object
Returns the value of attribute selectedItem.
-
#updated ⇒ Object
Returns the value of attribute updated.
-
#updatedItem ⇒ Object
Returns the value of attribute updatedItem.
Attributes inherited from ShowAllVocabularyContext::VocabularyTableView
Attributes inherited from Context::View
Instance Method Summary collapse
- #addItem(item) ⇒ Object
- #close ⇒ Object
- #destroy ⇒ Object
-
#initialize(context) ⇒ VocabularyTableView
constructor
A new instance of VocabularyTableView.
- #removeItem(item) ⇒ Object
- #select(item) ⇒ Object
- #update(items) ⇒ Object
- #updateItem(item) ⇒ Object
Methods inherited from ShowAllVocabularyContext::VocabularyTableView
Methods inherited from Context::View
#addView, #getWidget, #removeView, #removingViewFrom, #viewAddedTo
Constructor Details
#initialize(context) ⇒ VocabularyTableView
Returns a new instance of VocabularyTableView.
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/jldrill/views/test/VocabularyTableView.rb', line 11 def initialize(context) super(context) @destroyed = false @updated = false @selectedItem = nil @updatedItem = nil @addedItem = nil @removedItem = nil @closed = nil end |
Instance Attribute Details
#addedItem ⇒ Object
Returns the value of attribute addedItem.
6 7 8 |
# File 'lib/jldrill/views/test/VocabularyTableView.rb', line 6 def addedItem @addedItem end |
#closed ⇒ Object
Returns the value of attribute closed.
6 7 8 |
# File 'lib/jldrill/views/test/VocabularyTableView.rb', line 6 def closed @closed end |
#destroyed ⇒ Object
Returns the value of attribute destroyed.
6 7 8 |
# File 'lib/jldrill/views/test/VocabularyTableView.rb', line 6 def destroyed @destroyed end |
#removedItem ⇒ Object
Returns the value of attribute removedItem.
6 7 8 |
# File 'lib/jldrill/views/test/VocabularyTableView.rb', line 6 def removedItem @removedItem end |
#selectedItem ⇒ Object
Returns the value of attribute selectedItem.
6 7 8 |
# File 'lib/jldrill/views/test/VocabularyTableView.rb', line 6 def selectedItem @selectedItem end |
#updated ⇒ Object
Returns the value of attribute updated.
6 7 8 |
# File 'lib/jldrill/views/test/VocabularyTableView.rb', line 6 def updated @updated end |
#updatedItem ⇒ Object
Returns the value of attribute updatedItem.
6 7 8 |
# File 'lib/jldrill/views/test/VocabularyTableView.rb', line 6 def updatedItem @updatedItem end |
Instance Method Details
#addItem(item) ⇒ Object
41 42 43 44 |
# File 'lib/jldrill/views/test/VocabularyTableView.rb', line 41 def addItem(item) super(item) @addedItem = item end |
#close ⇒ Object
51 52 53 54 |
# File 'lib/jldrill/views/test/VocabularyTableView.rb', line 51 def close @closed = true super(item) end |
#destroy ⇒ Object
22 23 24 |
# File 'lib/jldrill/views/test/VocabularyTableView.rb', line 22 def destroy @destroyed = true end |
#removeItem(item) ⇒ Object
46 47 48 49 |
# File 'lib/jldrill/views/test/VocabularyTableView.rb', line 46 def removeItem(item) super(item) @removedItem = item end |
#select(item) ⇒ Object
31 32 33 34 |
# File 'lib/jldrill/views/test/VocabularyTableView.rb', line 31 def select(item) super(item) @selectedItem = item end |
#update(items) ⇒ Object
26 27 28 29 |
# File 'lib/jldrill/views/test/VocabularyTableView.rb', line 26 def update(items) super(items) @updated = true end |
#updateItem(item) ⇒ Object
36 37 38 39 |
# File 'lib/jldrill/views/test/VocabularyTableView.rb', line 36 def updateItem(item) super(item) @updatedItem = item end |