Daniel McOrmond wrote:
Here's a simple example:
importClass( Packages.com.company.GenericObject );
importClass( Packages.com.company.SpecificObject );
importClass( Packages.com.company.ObjectLoaderUtil );
function doSomethingUseful() {
var loader = cocoon.createObject( ObjectLoaderUtil );
var myObject = loader.getGenericObject();
}
Suppose I wanted to cast the GenericObject to a SpecificObject, like this:
var myObject = (SpecificObject) loader.getGenericObject();
you do not need a cast - just call SpecificObject methods.
--
Leszek Gawron [EMAIL PROTECTED]
Project Manager MobileBox sp. z o.o.
+48 (61) 855 06 67 http://www.mobilebox.pl
mobile: +48 (501) 720 812 fax: +48 (61) 853 29 65
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]