class ApplicationHandler
ActionManager is the a Abstract Class which used within the swing UI to handle a actions
In the Fumoffu
FrameWork All processed action should go through the ApplicationHandler
Public Class Methods
new()
click to toggle source
# File lib/fumoffu/generators/templates/engine/src/actions/handlers/application_handler.rb, line 10 def initialize @handlers = Array.new end
Public Instance Methods
handleAction(event, action, output_container)
click to toggle source
java.awt.event.ActionEvent event, String action, Component output container
# File lib/fumoffu/generators/templates/engine/src/actions/handlers/application_handler.rb, line 21 def handleAction event, action, output_container begin @handlers.each do |handler| return true unless not handler.handleAction(event, action, output_container) end rescue => e # FIXME INTEGRATE THE RUBY LOGGER puts "Failed to process action: '#{action.to_s}' "+e.backtrace.join("\n")+":\n "+e.inspect end return false end
loadEngine()
click to toggle source
this method should be called right after the interface is done with the initialization
# File lib/fumoffu/generators/templates/engine/src/actions/handlers/application_handler.rb, line 16 def loadEngine # Do stuff end