Class: JLDrill::DisplayProblemContext::ProblemView::ItemHintView
- Inherits:
-
Context::View
- Object
- Context::View
- JLDrill::DisplayProblemContext::ProblemView::ItemHintView
- Defined in:
- lib/jldrill/contexts/DisplayProblemContext.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.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Context::View
Instance Method Summary collapse
- #differs?(problem) ⇒ Boolean
-
#initialize(context) ⇒ ItemHintView
constructor
A new instance of ItemHintView.
- #newProblem(problem) ⇒ Object
- #updateProblem(problem) ⇒ Object
Methods inherited from Context::View
#addView, #getWidget, #removeView, #removingViewFrom, #viewAddedTo
Constructor Details
#initialize(context) ⇒ ItemHintView
Returns a new instance of ItemHintView.
23 24 25 |
# File 'lib/jldrill/contexts/DisplayProblemContext.rb', line 23 def initialize(context) super(context) end |
Instance Method Details
#differs?(problem) ⇒ Boolean
35 36 37 |
# File 'lib/jldrill/contexts/DisplayProblemContext.rb', line 35 def differs?(problem) @context.differs?(problem) end |
#newProblem(problem) ⇒ Object
27 28 29 |
# File 'lib/jldrill/contexts/DisplayProblemContext.rb', line 27 def newProblem(problem) # Should be overridden in the concrete class end |
#updateProblem(problem) ⇒ Object
31 32 33 |
# File 'lib/jldrill/contexts/DisplayProblemContext.rb', line 31 def updateProblem(problem) # Should be overridden in the concrete class end |