GeographicalLocationManager および ProductLineManager クラスの作成

このシナリオでは、拡張プロパティとして含まれる事前定義済みの値が Manager クラスによって提供されていることを前提としています。この値は LetterEditor で使用され、ドロップダウンの値を表示します。クラスは次のように定義されます。
package com.adobe.customizations 
{ 
    import mx.collections.ArrayCollection; 
    import mx.collections.IList; 
 
    public class GeographicalLocationManager 
    { 
        private static var geoInstance:GeographicalLocationManager; 
        public function GeographicalLocationManager() 
        { 
        } 
        //The method is used to retrieve a list of all the available geographical locations 
        public function getAllGeo():IList{ 
            var geos:IList = new ArrayCollection(); 
            geos.addItem(""); 
            geos.addItem("Africa"); 
            geos.addItem("Asia Pacific"); 
            geos.addItem("Europe"); 
            geos.addItem("Latin America"); 
            geos.addItem("Middle East"); 
            geos.addItem("North America"); 
            return geos; 
        } 
        public static function getInstance():GeographicalLocationManager{ 
            if(geoInstance == null) 
                geoInstance = new GeographicalLocationManager(); 
            return geoInstance; 
        } 
    } 
} 
 
package com.adobe.customizations 
{ 
    import mx.collections.ArrayCollection; 
    import mx.collections.IList; 
 
    public class ProductLineManager 
    { 
        private static var prodLineInstance:ProductLineManager; 
        public function ProductLineManager() 
        { 
        } 
        //The method is used to retrieve a list of all the available product lines 
        public function getAllProductLines():IList{ 
            var prodLines:IList = new ArrayCollection(); 
            prodLines.addItem(""); 
            prodLines.addItem("Medical Insurance"); 
            prodLines.addItem("Property Insurance"); 
            prodLines.addItem("Vehicle Insurance"); 
            prodLines.addItem("Travel Insurance"); 
            prodLines.addItem("General Insurance"); 
            return prodLines; 
        } 
        public static function getInstance():ProductLineManager{ 
            if(prodLineInstance == null) 
                prodLineInstance = new ProductLineManager(); 
            return prodLineInstance; 
        } 
    } 
}