Class: JLDrill::Test::VocabularyTableView

Inherits:
ShowAllVocabularyContext::VocabularyTableView show all
Defined in:
lib/jldrill/views/test/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

#showBusy

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

#addedItemObject

Returns the value of attribute addedItem.



6
7
8
# File 'lib/jldrill/views/test/VocabularyTableView.rb', line 6

def addedItem
  @addedItem
end

#closedObject

Returns the value of attribute closed.



6
7
8
# File 'lib/jldrill/views/test/VocabularyTableView.rb', line 6

def closed
  @closed
end

#destroyedObject

Returns the value of attribute destroyed.



6
7
8
# File 'lib/jldrill/views/test/VocabularyTableView.rb', line 6

def destroyed
  @destroyed
end

#removedItemObject

Returns the value of attribute removedItem.



6
7
8
# File 'lib/jldrill/views/test/VocabularyTableView.rb', line 6

def removedItem
  @removedItem
end

#selectedItemObject

Returns the value of attribute selectedItem.



6
7
8
# File 'lib/jldrill/views/test/VocabularyTableView.rb', line 6

def selectedItem
  @selectedItem
end

#updatedObject

Returns the value of attribute updated.



6
7
8
# File 'lib/jldrill/views/test/VocabularyTableView.rb', line 6

def updated
  @updated
end

#updatedItemObject

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

#closeObject



51
52
53
54
# File 'lib/jldrill/views/test/VocabularyTableView.rb', line 51

def close
    @closed = true
    super(item)
end

#destroyObject



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