Ignore:
Timestamp:
08/13/13 11:42:09 (11 years ago)
Author:
g.georgovassilis@mpi.nl
Message:

#269 BaseRemoteService? abstracts HTTP communication away for XML services, added facility for mocking services in unit tests, moved tests into src/test

Location:
ComponentRegistry/trunk/ComponentBrowserGui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentBrowserGui

    • Property svn:ignore
      •  

        old new  
        88.flexConfig.xml
        99.metadata
         10
         11libs
         12
         13.FlexUnitSettings
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/ElementTypesListService.as

    r2535 r3368  
    11package clarin.cmdi.componentregistry.services //trunk
    22{
    3     import flash.events.Event;
    4     import flash.events.MouseEvent;
     3   
     4    import com.adobe.net.URI;
    55   
    66    import mx.collections.ArrayCollection;
    7     import mx.rpc.events.ResultEvent;
    87       
    98        public class ElementTypesListService extends ComponentRegistryService
     
    1615                public function ElementTypesListService()
    1716                {
    18                   super(Config.getUriAllowedElementTypes());
     17                  super(ALLOWED_TYPES_LOADED, new URI(Config.getUriAllowedElementTypes()));
    1918                }
    2019               
    2120               
    22                 // called by load()
    23                 override protected function result(resultEvent:ResultEvent):void {
    24                         var resultXml:XML = resultEvent.result as XML;
     21                override protected function handleXmlResult(resultXml:XML):void{
    2522                        allowedTypes= new ArrayCollection();
    2623                        var currentValue:String;
     
    2926                                allowedTypes.addItem({label: currentValue, data: currentValue});
    3027                        }
    31                         dispatchEvent(new Event(ALLOWED_TYPES_LOADED));
    3228                }
    3329               
Note: See TracChangeset for help on using the changeset viewer.