
<xmlcomp>
	<![CDATA[
/*
	Engine for Web Applications
	Application Component distribution file "component.dist.xml" release: 1.1.64.0811.2005
	Copyright 2002 - 2004 All Rights Reserved.
	Rights to copy, archive, distribute, or alter this software are described in the license.
	Author: Stephen W. Cote
	Email: wranlon@hotmail.com
	Project: http://www.whitefrost.com/projects/engine/
	License: http://www.whitefrost.com/projects/engine/code/engine.license.txt
*/

$EP("%APPCOMP_PACKAGE%");%APPCOMP_PACKAGE%.%APPCOMP_CLASS%={ bindComponent:
function(o,i,c,p){var _a=%APPCOMP_PACKAGE%.%APPCOMP_CLASS%,z,q=o,r;r=_a.o.s.r;if(typeof q==D.S){q=$E.registry.ObjectRegistry.getObject(o);if(q!=null&&typeof q.getContainer==D.F)q=q.getContainer();}if(typeof q!=D.O||q==null) return 0; if(typeof q[r]==D.S) return 0; z=_a.newInstance(0,0,o,0,p,1);z.loadComponent(i,c);if(typeof q.setAttribute==D.U)q[r]=z.i;else q.setAttribute(r,z.i); return z;},newInstance:
function(i,o,c,f,p,b){var n=$E.FN("base_object","%APPCOMP_LABEL%","1.1.25.0811.2005");if(typeof o==D.F)f=o;if(typeof o!=D.O)o=0;if(typeof i!=D.S)i=0;if(typeof p!=D.S)p=0;if(typeof c==D.U)c=0;if(typeof b==D.U)b=0;n.o={p:{},s:{c:0,n:0,e:c,i:1,p:"application-components",m:"application-component", h:f,b:b,eb:"change,focus,blur,mouseover,mouseout,click",t:1,tn:p,ti:0}};if(i&&1)n.i=i;n.sigterm=function(){this.destroy();};n.destroy=function(){var t=this;if(t.r<5){ if(typeof t.component_destroy==D.F)t.component_destroy();t.r=5; $E.transaction.TransactionService.removeTransactionParticipant(t,t.getPacket());$E.registry.ObjectRegistry.removeObject(t);}}; n.setBindingEnabled=function(b){this.o.s.b=b;};n.getBindingEnabled=function(){return this.o.s.b;};n.setContainerId=function(s){this.o.s.e=s;};n.getContainerId=function(s){return this.o.s.e;};n.getComponentName=function(){return this.o.s.n;};n.getContainer=function(){var o=this.o.s.e;if(!o)return 0;if(typeof o==D.S)o=$E.registry.ObjectRegistry.getObject(o);if(o!=null&&typeof o.getContainer==D.F)o=o.getContainer();return o;}; n.init=function(o){var t=this,_s;_s=t.o.s; var a,l,h,o=_s.e,ph;if(_s.b&&_s.eb&&o){$E.dom.event.addEventBuffer(t);if(typeof o==D.S)o=$E.registry.ObjectRegistry.getObject(o);if(o){if(typeof o.getContainer==D.F)o=o.getContainer();a=_s.eb.split(",");for(l=0;l<a.length;l++){h='_handle_'+a[l];ph='_prehandle_'+a[l];if(typeof t[ph]==D.F){$E.dom.event.removeEventListener(o,a[l],t[ph]);t[ph]=null;}if(typeof t[h]==D.F){t.createHandler(a[l],0,0,1);$E.dom.event.addEventListener(o,a[l],t[ph]);}}}}var _t=$E.transaction.TransactionService,p;if(_s.t&&_t.canRegister(t)){_t.register(t);p=_t.getPacketByName(_s.tn);if(p){_s.ti=p.packet_id;p.setBlockStartTransaction(false);_t.addTransactionParticipant(t,p);}else{_s.ti=_t.openTransaction(_s.tn,t,{type:0,src:0,data:0});}}if(typeof t.component_init==D.F)t.component_init();t.r=4;};n.getPacket=function(n){var _t=$E.transaction.TransactionService;if(n)return _t.getPacketByName(n);else return _t.getPacket(this.o.s.ti);};n.serveTransaction=function(v,r,b,n){var _t=$E.transaction.TransactionService,p,t=this;p=t.getPacket(n);if(p){p.data.type=v;p.data.src=r;_t.serveTransaction(p,t.i,(!b));return 1;}return 0;};n.doTransaction=function(s,p){var t=this,q,qh;if(typeof t._handle_transaction==D.F)t._handle_transaction(s,p);q=p.data.type;qh='_handle_'+q;if(q&&typeof t[qh]==D.F)t[qh](s,p); return 0;};n.startTransaction=function(s,p){var t=this;if(typeof t._handle_begin_transaction==D.F)t._handle_begin_transaction(s,p); return 1;};n.endTransaction=function(s,p){var t=this;if(typeof t._handle_end_transaction==D.F)t._handle_end_transaction(s,p); return 1;}; %APPCOMP_SOURCE_CODE% if($E.registry.ObjectRegistry.addObject(n)){ n.init(o);}else{$E.message.MessageService.S("Could not add application component to registry","200.4");}return n;}}

	]]>
</xmlcomp>
