Sha256: 0064dc4832ebd88ea34241094e565d41665df7427ad58553dc96750b4097d80c

Contents?: true

Size: 856 Bytes

Versions: 1

Compression:

Stored size: 856 Bytes

Contents

# encoding: utf-8
require 'Context/Context'
require 'Context/Bridge'
require 'Context/View'
require 'jldrill/model/AboutInfo'

module JLDrill

	class ShowAboutContext < Context::Context
		
		def initialize(viewBridge)
			super(viewBridge)
		end

        class AboutView < Context::View
    
            def initialize(context, about)
                super(context)
                @about = about
            end
	
            # Open the window and display the about information    
            def run
                # Please define in the concrete class
            end
        end
	
		def createViews
    		@mainView = @viewBridge.AboutView.new(self, AboutInfo.new)
        end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jldrill-0.6.0.1 lib/jldrill/contexts/ShowAboutContext.rb