Class: JLDrill::Test::ItemHintView

Inherits:
DisplayProblemContext::ProblemView::ItemHintView show all
Defined in:
lib/jldrill/views/test/ItemHintView.rb

Overview

The ItemHintView displays information about the current item that acts as hints for the user. For instance, it might indicate that the word is intrasitive, or a suru noun, etc.

Instance Attribute Summary collapse

Attributes inherited from Context::View

#context

Instance Method Summary collapse

Methods inherited from DisplayProblemContext::ProblemView::ItemHintView

#differs?

Methods inherited from Context::View

#addView, #getWidget, #removeView, #removingViewFrom, #viewAddedTo

Constructor Details

#initialize(context) ⇒ ItemHintView

Returns a new instance of ItemHintView.



13
14
15
16
# File 'lib/jldrill/views/test/ItemHintView.rb', line 13

def initialize(context)
	super(context)
          @newProblem = false
end

Instance Attribute Details

#newProblem(problem) ⇒ Object

Returns the value of attribute newProblem.



10
11
12
# File 'lib/jldrill/views/test/ItemHintView.rb', line 10

def newProblem
  @newProblem
end

#problemUpdatedObject

Returns the value of attribute problemUpdated.



10
11
12
# File 'lib/jldrill/views/test/ItemHintView.rb', line 10

def problemUpdated
  @problemUpdated
end

Instance Method Details

#updateProblem(problem) ⇒ Object



22
23
24
25
# File 'lib/jldrill/views/test/ItemHintView.rb', line 22

def updateProblem(problem)
    @newProblem = false
    @problemUpdated = true
end