You are here: Recent News » Projects » Pixlib » FDT templates » FDT Pixlib template FrontController

 

FDT Pixlib template FrontController

Tags : , ,
<?xml version="1.0" encoding="UTF-8"?><templates><template autoinsert="true" context="com.pf.fdt.ui.editor.template.actionscript" deleted="false" description="Creates concrete front controller class for pixlib framework" enabled="true" name="controller">import com.bourre.core.HashCodeFactory;&#13;
import com.bourre.events.FrontController;&#13;
import com.bourre.log.PixlibStringifier;&#13;
&#13;
class ${enclosing_package_and_type} &#13;
	extends FrontController&#13;
{&#13;
	private static var _oI : ${enclosing_type};&#13;
	&#13;
	/**&#13;
	 * @return singleton instance of ${enclosing_type}&#13;
	 */&#13;
	public static function getInstance() : ${enclosing_type} &#13;
	{&#13;
		if (!_oI) _oI = new ${enclosing_type}();&#13;
		return _oI;&#13;
	}&#13;
	&#13;
	private function ${enclosing_type}()&#13;
	{&#13;
		super();&#13;
	}&#13;
	&#13;
	public function init() : Void&#13;
	{&#13;
		${cursor}&#13;
	}&#13;
	&#13;
	/**&#13;
	 * Returns the string representation of this instance.&#13;
	 * @return the string representation of this instance&#13;
	 */&#13;
	public function toString() : String &#13;
	{&#13;
		return PixlibStringifier.stringify( this );&#13;
	}&#13;
}</template></templates>

projects/pixlib/fdt_template/controller.txt · Last modified: 2007/02/16 09:12