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

 

FDT Pixlib template Model

Tags : , ,
<?xml version="1.0" encoding="UTF-8"?><templates><template autoinsert="true" context="com.pf.fdt.ui.editor.template.actionscript" deleted="false" description="Extends Model class from core package" enabled="true" name="model">import com.bourre.core.HashCodeFactory;&#13;
import com.bourre.core.Model;&#13;
import com.bourre.events.BasicEvent;&#13;
import com.bourre.events.EventType;&#13;
import com.bourre.log.PixlibStringifier;&#13;
	&#13;
class ${enclosing_package_and_type} &#13;
	extends Model&#13;
{&#13;
	public static var onChangeEVENT : EventType = new EventType( "onChange" );&#13;
&#13;
	public function ${enclosing_type} ( sID : String )&#13;
	{&#13;
		super( sID );&#13;
	}&#13;
	&#13;
	public function onChange() : Void&#13;
	{&#13;
		_oEB.broadcastEvent( new BasicEvent(onChangeEVENT ) );&#13;
	}&#13;
	&#13;
	public function toString() : String &#13;
	{&#13;
		return PixlibStringifier.stringify( this );&#13;
	}&#13;
}</template></templates>

projects/pixlib/fdt_template/model.txt · Last modified: 2007/02/16 09:15