Class: JLDrill::ShowAboutContext

Inherits:
Context::Context show all
Defined in:
lib/jldrill/contexts/ShowAboutContext.rb

Defined Under Namespace

Classes: AboutView

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) ⇒ ShowAboutContext

Returns a new instance of ShowAboutContext.



11
12
13
# File 'lib/jldrill/contexts/ShowAboutContext.rb', line 11

def initialize(viewBridge)
	super(viewBridge)
end

Instance Method Details

#createViewsObject



28
29
30
# File 'lib/jldrill/contexts/ShowAboutContext.rb', line 28

def createViews
    		@mainView = @viewBridge.AboutView.new(self, AboutInfo.new)
end

#destroyViewsObject



32
33
34
# File 'lib/jldrill/contexts/ShowAboutContext.rb', line 32

def destroyViews
    @mainView = nil
end

#enter(parent) ⇒ Object



36
37
38
39
40
# File 'lib/jldrill/contexts/ShowAboutContext.rb', line 36

def enter(parent)
    super(parent)
          @mainView.run
  		self.exit
end