Class: JLDrill::DisplayProblemContext::ProblemView::ItemHintView

Inherits:
Context::View
  • Object
show all
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

Gtk::ItemHintView, Test::ItemHintView

Instance Attribute Summary

Attributes inherited from Context::View

#context

Instance Method Summary collapse

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

Returns:

  • (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