puremvc-gen/conf/templates/standard/Mediator.tpl
Greg Jastrab 33bab6c024 Added initial command line parsing to puremvc-gen binary
Using CmdParse to handle command line arguments.

Fixed a few templates
2008-12-05 11:10:22 -05:00

58 lines
1.1 KiB
Smarty

package @namespace@.@view@ {
import @namespace@.@facade@;
import org.puremvc.as3.interfaces.INotification;
import org.puremvc.as3.patterns.mediator.Mediator;
/**
* @mediator.name@ mediator.
*
* @langversion ActionScript 3.0
* @author @author.name@ @author.email@
* @date @today@
* @version @version@
*/
public class @mediator.name@Mediator extends Mediator {
/* --- Variables --- */
public static const NAME:String = "@mediator.name@Mediator";
/* === Variables === */
/* --- Constructor --- */
/**
* Constructor.
*
* @param viewComponent view component for mediator
*/
public function @mediator.name@Mediator(viewComponent:Object) {
super(NAME, viewComponent);
}
/* === Constructor === */
/* --- Functions --- */
override public function handleNotification(note:INotification):void {
}
override public function listNotificationInterests():Array {
return [
];
}
/* === Functions === */
/* --- Public Accessors --- */
public function get YOURVIEWNAME():YOURVIEWOBJ { return viewComponent as YOURVIEWOBJ; }
/* === Public Accessors === */
}
}