Sha256: 755146606b4449b2a4e84b1dae8a68e6437339ad9ed988377b21f1f8903c2b6e
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
package <%= base_package%>.modules.<%= module_folder%>.view { import org.puremvc.as3.multicore.utilities.fabrication.patterns.mediator.FlexMediator; import <%= base_package%>.modules.<%= module_folder%>.view.components.<%= module_name%>View; import <%= base_package%>.modules.<%= module_folder%>.model.<%= module_name%>Proxy; import mx.controls.Button; import flash.events.MouseEvent; import flash.events.Event; public class <%= module_name%>ViewMediator extends FlexMediator { public static const NAME:String = "<%= module_name%>ViewMediator"; public function <%= module_name%>ViewMediator( viewComponent:<%= module_name%>View ) { super( NAME, viewComponent ); } /** * The viewComponent cast to type SignInView. */ private function get <%= module_folder%>View():<%= module_name%>View { return viewComponent as <%= module_name%>View; } public function get moduleButton():Button { return <%= module_folder%>View.moduleButton as Button; } public function reactToModuleButtonClick(e:MouseEvent):void { } } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fabricator-0.0.5 | generators/pure_module/templates/module/view/view_mediator.as |