Changeset 3368 for ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/ElementTypesListService.as
- Timestamp:
- 08/13/13 11:42:09 (11 years ago)
- Location:
- ComponentRegistry/trunk/ComponentBrowserGui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentBrowserGui
- Property svn:ignore
-
old new 8 8 .flexConfig.xml 9 9 .metadata 10 11 libs 12 13 .FlexUnitSettings
-
- Property svn:ignore
-
ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/ElementTypesListService.as
r2535 r3368 1 1 package clarin.cmdi.componentregistry.services //trunk 2 2 { 3 import flash.events.Event;4 import flash.events.MouseEvent;3 4 import com.adobe.net.URI; 5 5 6 6 import mx.collections.ArrayCollection; 7 import mx.rpc.events.ResultEvent;8 7 9 8 public class ElementTypesListService extends ComponentRegistryService … … 16 15 public function ElementTypesListService() 17 16 { 18 super( Config.getUriAllowedElementTypes());17 super(ALLOWED_TYPES_LOADED, new URI(Config.getUriAllowedElementTypes())); 19 18 } 20 19 21 20 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{ 25 22 allowedTypes= new ArrayCollection(); 26 23 var currentValue:String; … … 29 26 allowedTypes.addItem({label: currentValue, data: currentValue}); 30 27 } 31 dispatchEvent(new Event(ALLOWED_TYPES_LOADED));32 28 } 33 29
Note: See TracChangeset
for help on using the changeset viewer.