Sha256: 3a98c46b6066e696f6dd4d49226c76936b6328c03912e99be26d20673e315c02
Contents?: true
Size: 1.09 KB
Versions: 2
Compression:
Stored size: 1.09 KB
Contents
package <%= base_package%>.shell.view { import org.puremvc.as3.multicore.utilities.fabrication.patterns.mediator.FlexMediator; import <%= base_package%>.shell.view.components.ModulesContainer; import <%= base_package%>.shell.<%= name%>ShellConstants; import org.puremvc.as3.multicore.interfaces.INotification; public class <%= name%>ShellMediator extends FlexMediator { static public const NAME:String = "<%= name%>ShellMediator"; public function <%= name%>ShellMediator(viewComponent:<%= name%>Shell) { super(NAME, viewComponent); } public function get application():<%= name%>Shell { return viewComponent as <%= name%>Shell; } public function get modulesContainer():ModulesContainer { return application.modulesContainer as ModulesContainer; } override public function onRegister():void { registerMediator(new ModulesContainerMediator(modulesContainer)); } public function respondToValidLogin(note:INotification):void { trace("shell received valid_login routed message"); sendNotification(<%= name%>ShellConstants.LOAD_DASHBOARD_MODULE); } } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fabricator-0.0.1 | app_generators/pureapp/templates/shell/view/mediator.as |
fabricator-0.0.5 | app_generators/pureapp/templates/shell/view/mediator.as |