0 Replies Latest reply on May 20, 2010 3:57 AM by yderidde

    [svn:cairngorm3:] 16243: * Adding a new view loader called ' ModuleViewLoader' specifically written as a custom Spark component.

    yderidde Level 1

      Revision: 16243

      Revision: 16243

      Author:   yderidde@adobe.com

      Date:     2010-05-20 03:56:36 -0700 (Thu, 20 May 2010)

      Log Message:

      ***********

      • Adding a new view loader called 'ModuleViewLoader' specifically written as a custom Spark component.

      It provide a separate skin based on 4 states (normal,loading,error,loaded). The Default skin is ModuleViewLoaderSkin

       

      the ModuleViewLoader component benefits from new features such as external Loading Policy strategies.

      The lib provides 2 Load Policy:

           - BasicLoadPolicy: load module on addedToStage and unload on removeFromStage

           - LazyModuleLoadPolicy: load module on demand based on the moduleId property of the message. As soon as a message with a corresponding moduleId is dispatched, the module is loading itself automatically.

             

      • Refactoring the SDK3 ViewLoader to reflect the same features as the new Spark ViewModuleLoader except that the SDK3 ViewLoader do not include states to display different views as the Spark component does.

       

      • Refactoring the ModuleTest sample project to use the new features/components

       

      Modified Paths:

      **************

          cairngorm3/trunk/libraries/Module/.flexLibProperties

          cairngorm3/trunk/libraries/Module/src/com/adobe/cairngorm/module/ModuleMessageDispatcher. as

          cairngorm3/trunk/libraries/Module/src/com/adobe/cairngorm/module/ParsleyFlexModuleFactory .as

          cairngorm3/trunk/libraries/Module/src/com/adobe/cairngorm/module/ParsleyModuleDescriptor. as

          cairngorm3/trunk/libraries/Module/src/com/adobe/cairngorm/module/ViewLoader.as

          cairngorm3/trunk/libraries/ModuleTest/src/CairngormModuleLibRuntimeSample.mxml

          cairngorm3/trunk/libraries/ModuleTest/src/CairngormModuleLibSample.mxml

          cairngorm3/trunk/libraries/ModuleTest/src/CairngormModuleLibSampleContext.mxml

          cairngorm3/trunk/libraries/ModuleTest/src/example/ModulePod.mxml

          cairngorm3/trunk/libraries/ModuleTest/src/example/moduleB/ModuleB.mxml

       

      Added Paths:

      ***********

          cairngorm3/trunk/libraries/Module/src/com/adobe/cairngorm/module/BasicLoadPolicy.as

          cairngorm3/trunk/libraries/Module/src/com/adobe/cairngorm/module/ILoadPolicy.as

          cairngorm3/trunk/libraries/Module/src/com/adobe/cairngorm/module/IModuleManager.as

          cairngorm3/trunk/libraries/Module/src/com/adobe/cairngorm/module/IViewLoader.as

          cairngorm3/trunk/libraries/Module/src/com/adobe/cairngorm/module/LazyModuleLoadPolicy.as

          cairngorm3/trunk/libraries/Module/src/com/adobe/cairngorm/module/LazyModuleLoadPolicyTag. as

          cairngorm3/trunk/libraries/Module/src/com/adobe/cairngorm/module/ModuleViewLoader.as

          cairngorm3/trunk/libraries/Module/src/com/adobe/cairngorm/module/ModuleViewLoaderSkin.mxm l

          cairngorm3/trunk/libraries/Module/src/com/adobe/cairngorm/module/ParsleyModuleInfoProxy.a s

          cairngorm3/trunk/libraries/Module/src/com/adobe/cairngorm/module/ParsleyModuleManager.as

          cairngorm3/trunk/libraries/ModuleTest/src/example/Flex3ModulePod.mxml

          cairngorm3/trunk/libraries/ModuleTest/src/example/LazyModulePod.mxml

          cairngorm3/trunk/libraries/ModuleTest/src/example/LazyModuleViewLoaderSkin.mxml

       

      Removed Paths:

      *************

          cairngorm3/trunk/libraries/Module/src/com/adobe/cairngorm/module/HiddenUnloadPolicy.as

          cairngorm3/trunk/libraries/Module/src/com/adobe/cairngorm/module/IUnloadPolicy.as

          cairngorm3/trunk/libraries/Module/src/com/adobe/cairngorm/module/ModuleInfo.as

          cairngorm3/trunk/libraries/Module/src/com/adobe/cairngorm/module/ParsleyModuleInfo.as