Class: JLDrill::ShowInfoContext
- Inherits:
-
Context::Context
- Object
- Context::Context
- JLDrill::ShowInfoContext
- Defined in:
- lib/jldrill/contexts/ShowInfoContext.rb
Defined Under Namespace
Classes: InfoView
Instance Attribute Summary
Attributes inherited from Context::Context
#mainView, #parent, #viewBridge
Instance Method Summary collapse
- #createViews ⇒ Object
- #destroyViews ⇒ Object
- #enter(parent, info) ⇒ Object
-
#initialize(viewBridge) ⇒ ShowInfoContext
constructor
A new instance of ShowInfoContext.
Methods inherited from Context::Context
#addView, #exit, #isEntered?, #onExit, #peekAtView, #setupViews
Constructor Details
#initialize(viewBridge) ⇒ ShowInfoContext
Returns a new instance of ShowInfoContext.
10 11 12 |
# File 'lib/jldrill/contexts/ShowInfoContext.rb', line 10 def initialize(viewBridge) super(viewBridge) end |
Instance Method Details
#createViews ⇒ Object
33 34 35 |
# File 'lib/jldrill/contexts/ShowInfoContext.rb', line 33 def createViews @mainView = @viewBridge.InfoView.new(self) end |
#destroyViews ⇒ Object
37 38 39 40 |
# File 'lib/jldrill/contexts/ShowInfoContext.rb', line 37 def destroyViews @mainView.destroy if !@mainView.nil? @mainView = nil end |
#enter(parent, info) ⇒ Object
42 43 44 45 46 |
# File 'lib/jldrill/contexts/ShowInfoContext.rb', line 42 def enter(parent, info) super(parent) @mainView.run(info) self.exit end |