Class: JLDrill::ShowInfoContext

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

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

#createViewsObject



33
34
35
# File 'lib/jldrill/contexts/ShowInfoContext.rb', line 33

def createViews
    		@mainView = @viewBridge.InfoView.new(self)
end

#destroyViewsObject



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