royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carlosrov...@apache.org
Subject [royale-asjs] branch develop updated: Improve Jewel DropDownList
Date Mon, 29 Oct 2018 00:04:44 GMT
This is an automated email from the ASF dual-hosted git repository.

carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new a7e7569  Improve Jewel DropDownList
a7e7569 is described below

commit a7e7569d4908d4946d7cc0c19a2fc1bb6827076b
Author: Carlos Rovira <carlosrovira@apache.org>
AuthorDate: Mon Oct 29 01:04:36 2018 +0100

    Improve Jewel DropDownList
---
 .../projects/Jewel/src/main/resources/defaults.css |   4 +-
 .../Jewel/src/main/resources/jewel-manifest.xml    |   1 +
 .../projects/Jewel/src/main/royale/JewelClasses.as |   1 +
 .../royale/org/apache/royale/jewel/DropDownList.as |  17 ++-
 ...DownListItemRendererFactoryForCollectionView.as |  81 ++++++++++++
 .../royale/jewel/beads/models/DropDownListModel.as | 138 +++++++++++++++++++++
 .../jewel/beads/models/IDropDownListModel.as       |  32 +++++
 .../royale/jewel/beads/views/DropDownListView.as   | 101 ++++++++-------
 .../itemRenderers/DropDownListItemRenderer.as      |  40 ++++--
 .../src/main/sass/components/_dropdownlist.sass    |   8 +-
 10 files changed, 344 insertions(+), 79 deletions(-)

diff --git a/frameworks/projects/Jewel/src/main/resources/defaults.css b/frameworks/projects/Jewel/src/main/resources/defaults.css
index 0449b7d..40a5949 100644
--- a/frameworks/projects/Jewel/src/main/resources/defaults.css
+++ b/frameworks/projects/Jewel/src/main/resources/defaults.css
@@ -703,8 +703,8 @@ j|DrawerContent {
 
 j|DropDownList {
   IBeadView: ClassReference("org.apache.royale.jewel.beads.views.DropDownListView");
-  IBeadModel: ClassReference("org.apache.royale.jewel.beads.models.ArrayListSelectionModel");
-  IDataProviderItemRendererMapper: ClassReference("org.apache.royale.jewel.beads.itemRenderers.DataItemRendererFactoryForCollectionView");
+  IBeadModel: ClassReference("org.apache.royale.jewel.beads.models.DropDownListModel");
+  IDataProviderItemRendererMapper: ClassReference("org.apache.royale.jewel.beads.itemRenderers.DropDownListItemRendererFactoryForCollectionView");
   IItemRendererClassFactory: ClassReference("org.apache.royale.core.ItemRendererClassFactory");
   IItemRenderer: ClassReference("org.apache.royale.jewel.itemRenderers.DropDownListItemRenderer");
 }
diff --git a/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml b/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
index f1d0530..5f61221 100644
--- a/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
+++ b/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
@@ -149,6 +149,7 @@
 
     <component id="DataItemRendererFactoryForArrayData" class="org.apache.royale.jewel.beads.itemRenderers.DataItemRendererFactoryForArrayData"/>
     <component id="DataItemRendererFactoryForCollectionView" class="org.apache.royale.jewel.beads.itemRenderers.DataItemRendererFactoryForCollectionView"/>
+    <component id="DropDownListItemRendererFactoryForCollectionView" class="org.apache.royale.jewel.beads.itemRenderers.DropDownListItemRendererFactoryForCollectionView"/>
     <component id="TableItemRendererFactoryForCollectionView" class="org.apache.royale.jewel.beads.itemRenderers.TableItemRendererFactoryForCollectionView"/>
 
     <component id="AddListItemRendererForArrayListData" class="org.apache.royale.jewel.beads.itemRenderers.AddListItemRendererForArrayListData"
/>
diff --git a/frameworks/projects/Jewel/src/main/royale/JewelClasses.as b/frameworks/projects/Jewel/src/main/royale/JewelClasses.as
index 38e742f..270034b 100644
--- a/frameworks/projects/Jewel/src/main/royale/JewelClasses.as
+++ b/frameworks/projects/Jewel/src/main/royale/JewelClasses.as
@@ -37,6 +37,7 @@ package
         import org.apache.royale.jewel.beads.models.DataProviderModel; DataProviderModel;
         import org.apache.royale.jewel.beads.models.ComboBoxModel; ComboBoxModel;
 		import org.apache.royale.jewel.beads.models.SnackbarModel; SnackbarModel;
+		import org.apache.royale.jewel.beads.models.DropDownListModel; DropDownListModel;
 
         import org.apache.royale.jewel.beads.controllers.SpinnerMouseController; SpinnerMouseController;
         import org.apache.royale.jewel.beads.controllers.SliderMouseController; SliderMouseController;
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/DropDownList.as
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/DropDownList.as
index 4f215e8..db972dc 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/DropDownList.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/DropDownList.as
@@ -83,7 +83,6 @@ package org.apache.royale.jewel
 		}
 
         private var _prompt:String = "";
-
         /**
          *  The prompt for the DropDownList control.
          *
@@ -222,10 +221,10 @@ package org.apache.royale.jewel
         public function set selectedIndex(value:int):void
         {
             ISelectionModel(model).selectedIndex = value;
-            // COMPILE::JS
-            // {
-            //     (element as HTMLSelectElement).selectedIndex = ISelectionModel(model).selectedIndex;
-            // }
+            COMPILE::JS
+            {
+                (element as HTMLSelectElement).selectedIndex = ISelectionModel(model).selectedIndex;
+            }
         }
 
         [Bindable("change")]
@@ -254,10 +253,10 @@ package org.apache.royale.jewel
         public function set selectedItem(value:Object):void
         {
             ISelectionModel(model).selectedItem = value;
-            // COMPILE::JS
-            // {
-            //     (element as HTMLSelectElement).selectedIndex = ISelectionModel(model).selectedIndex;
-            // }
+            COMPILE::JS
+            {
+                (element as HTMLSelectElement).selectedIndex = ISelectionModel(model).selectedIndex;
+            }
         }
 
         /**
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/DropDownListItemRendererFactoryForCollectionView.as
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/DropDownListItemRendererFactoryForCollectionView.as
new file mode 100644
index 0000000..cc37ae5
--- /dev/null
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/DropDownListItemRendererFactoryForCollectionView.as
@@ -0,0 +1,81 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package org.apache.royale.jewel.beads.itemRenderers
+{
+	import org.apache.royale.collections.ICollectionView;
+	import org.apache.royale.core.IListPresentationModel;
+	import org.apache.royale.core.ISelectableItemRenderer;
+	import org.apache.royale.events.Event;
+	import org.apache.royale.events.IEventDispatcher;
+	import org.apache.royale.jewel.itemRenderers.DropDownListItemRenderer;
+
+	/**
+	 * This class creates itemRenderer instances from the data contained within an ICollectionView
+	 */
+	public class DropDownListItemRendererFactoryForCollectionView extends DataItemRendererFactoryForCollectionView
+	{
+		public function DropDownListItemRendererFactoryForCollectionView(target:Object = null)
+		{
+			super(target);
+		}
+		
+		/**
+		 * @private
+		 * @royaleignorecoercion org.apache.royale.collections.ICollectionView
+		 * @royaleignorecoercion org.apache.royale.core.IListPresentationModel
+		 * @royaleignorecoercion org.apache.royale.core.ISelectableItemRenderer
+		 * @royaleignorecoercion org.apache.royale.events.IEventDispatcher
+		 */
+		override protected function dataProviderChangeHandler(event:Event):void
+		{
+			if (!dataProviderModel)
+				return;
+			var dp:ICollectionView = dataProviderModel.dataProvider as ICollectionView;
+			if (!dp)
+				return;
+			
+			dataGroup.removeAllItemRenderers();
+			
+			var presentationModel:IListPresentationModel = _strand.getBeadByType(IListPresentationModel)
as IListPresentationModel;
+			labelField = dataProviderModel.labelField;
+			
+			var ir:ISelectableItemRenderer;
+			var item:Object;
+
+			var offset:int = 1;
+
+			if(offset == 1)
+			{
+				ir = itemRendererFactory.createItemRenderer(dataGroup) as ISelectableItemRenderer;
+				item = DropDownListItemRenderer.OPTION_DISABLED;
+				fillRenderer(0, item, ir, presentationModel);
+			}
+
+			var n:int = dp.length;
+			for (var i:int = 0; i < n; i++)
+			{
+				ir = itemRendererFactory.createItemRenderer(dataGroup) as ISelectableItemRenderer;
+				item = dp.getItemAt(i);
+				fillRenderer(i + offset, item, ir, presentationModel);
+			}
+			
+			IEventDispatcher(_strand).dispatchEvent(new Event("itemsCreated"));
+		}
+	}
+}
\ No newline at end of file
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/models/DropDownListModel.as
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/models/DropDownListModel.as
new file mode 100644
index 0000000..2413cfc
--- /dev/null
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/models/DropDownListModel.as
@@ -0,0 +1,138 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package org.apache.royale.jewel.beads.models
+{
+    import org.apache.royale.collections.IArrayList;
+    import org.apache.royale.events.Event;
+    import org.apache.royale.html.beads.models.ArraySelectionModel;
+
+    /**
+     *  The DropDownListModel class defines the data associated with an org.apache.royale.jewel.DropDownListModel
+     *  component.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion Royale 0.9.4
+     */
+    public class DropDownListModel extends ArraySelectionModel implements IDropDownListModel
+    {
+        public function DropDownListModel()
+        {
+            super();
+        }
+
+        private var offset:int = 1;
+
+        private var _dataProvider:IArrayList;
+
+		[Bindable("dataProviderChanged")]
+        /**
+         *  @copy org.apache.royale.core.ISelectionModel#dataProvider
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion Royale 0.9.4
+         */
+		override public function get dataProvider():Object
+		{
+			return _dataProvider;
+		}
+
+        /**
+         *  @private
+         */
+		override public function set dataProvider(value:Object):void
+		{
+            if (value == _dataProvider) return;
+
+            _dataProvider = value as IArrayList;
+			if(!_dataProvider || _selectedIndex >= _dataProvider.length + offset)
+				_selectedIndex = -1;
+            
+			_selectedItem = _selectedIndex == -1 ? null : _dataProvider.getItemAt(_selectedIndex -
offset);
+			
+			dispatchEvent(new Event("dataProviderChanged"));
+		}
+
+		private var _selectedIndex:int = -1;
+
+        /**
+         *  @copy org.apache.royale.core.ISelectionModel#selectedIndex
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion Royale 0.9.4
+         */
+		override public function get selectedIndex():int
+		{
+			return _selectedIndex;
+		}
+
+        /**
+         *  @private
+         */
+		override public function set selectedIndex(value:int):void
+		{
+            if (value == _selectedIndex) return;
+
+			_selectedIndex = value;
+			_selectedItem = (value == -1 || _dataProvider == null) ? null : (value < _dataProvider.length
+ offset) ? _dataProvider.getItemAt(value - offset) : null;
+			dispatchEvent(new Event("selectedIndexChanged"));
+		}
+
+        private var _selectedItem:Object;
+
+        /**
+         *  @copy org.apache.royale.core.ISelectionModel#selectedItem
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion Royale 0.9.4
+         */
+		override public function get selectedItem():Object
+		{
+			return _selectedItem;
+		}
+
+        /**
+         *  @private
+         */
+		override public function set selectedItem(value:Object):void
+		{
+            if (value == _selectedItem) return;
+
+			_selectedItem = value;
+			var n:int = _dataProvider.length + offset;
+			for (var i:int = 1; i < n; i++)
+			{
+				if (_dataProvider.getItemAt(i) == value)
+				{
+					_selectedIndex = i - offset;
+					break;
+				}
+			}
+			dispatchEvent(new Event("selectedItemChanged"));
+			dispatchEvent(new Event("selectedIndexChanged"));
+		}
+    }
+}
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/models/IDropDownListModel.as
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/models/IDropDownListModel.as
new file mode 100644
index 0000000..766e9cd
--- /dev/null
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/models/IDropDownListModel.as
@@ -0,0 +1,32 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package org.apache.royale.jewel.beads.models
+{
+    /**
+     *  The IDropDownListModel interface is a marker interface
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion Royale 0.9.4
+     */
+    public interface IDropDownListModel
+    {
+    }
+}
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DropDownListView.as
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DropDownListView.as
index b791a2f..085e449 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DropDownListView.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DropDownListView.as
@@ -43,6 +43,25 @@ package org.apache.royale.jewel.beads.views
             super();
         }
 
+        private var dropDownList:DropDownList; 
+        
+        /**
+         *  The prompt in the main dropDownList class
+         * 
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion Royale 0.9.4
+         */
+        public function get prompt():String
+        {
+        	return dropDownList.prompt;
+        }
+        public function set prompt(value:String):void
+        {
+        	dropDownList.prompt = value;
+        }
+
         /**
          *  @copy org.apache.royale.core.IBead#strand
          *
@@ -59,82 +78,60 @@ package org.apache.royale.jewel.beads.views
 
             COMPILE::JS
             {
-                var dropDownList:DropDownList = (value as DropDownList);
-
-                // dropDownList.labelDisplay = document.createElement('label') as HTMLLabelElement;
-                // dropDownList.labelDisplay.innerText = dropDownList.prompt;
-                // dropDownList.labelDisplay.classList.add("mdl-textfield__label");
-
+                dropDownList = value as DropDownList;
                 dropDownList.dropDown = new Select();
-                // dropDownList.dropDown.className = "mdl-textfield__input";
-
-                var emptyOption:Option = new Option();
-                // emptyOption.element.style.display = "none";
-
-                dropDownList.dropDown.addElement(emptyOption);
                 
-                setNameForDropDownList();
+                var name:String = "dropDownList" + Math.random();
+                dropDownList.dropDown.element.name = name;
 
-                // dropDownList.element.appendChild(dropDownList.labelDisplay);
                 dropDownList.addElement(dropDownList.dropDown);
             }
         }
+        
+        override protected function handleInitComplete(event:Event):void
+        {
+            super.handleInitComplete(event);
+            
+            //dataModel.addEventListener("selectedIndexChanged", selectionChangeHandler);
+        }
 
         override protected function dataProviderChangeHandler(event:Event):void
         {
             super.dataProviderChangeHandler(event);
 
-            COMPILE::JS
-            {
-                setProgrammaticallyChangedSelection();
-            }
+            setProgrammaticallyChangedSelection();
         }
 
         override protected function itemsCreatedHandler(event:org.apache.royale.events.Event):void
         {
             super.itemsCreatedHandler(event);
 
-            COMPILE::JS
-            {
-                setProgrammaticallyChangedSelection();
-            }
-        }
-
-        private function selectionChangeHandler(event:Event):void
-        {
-            COMPILE::JS
-            {
-                setProgrammaticallyChangedSelection();
-            }
-        }
-
-        override protected function handleInitComplete(event:Event):void
-        {
-            super.handleInitComplete(event);
-            
-            dataModel.addEventListener("selectedIndexChanged", selectionChangeHandler);
+            setProgrammaticallyChangedSelection();
         }
 
-        COMPILE::JS
-        private function setNameForDropDownList():void
-        {
-            var dropDownList:DropDownList = (_strand as DropDownList);
+        private var model:ISelectionModel;
 
-            var name:String = "dropDownList" + Math.random();
-            // dropDownList.labelDisplay.htmlFor = name;
-            dropDownList.dropDown.element.name = name;
-        }
+        // private function selectionChangeHandler(event:Event):void
+        // {
+        //     model = dataModel as ISelectionModel;
+        //     if(model.selectedIndex != -1)
+		// 		setProgrammaticallyChangedSelection();
+        // }
 
-        COMPILE::JS
         private function setProgrammaticallyChangedSelection():void
         {
-            var dropDownList:DropDownList = (_strand as DropDownList);
-            var selectedIndex:int = dropDownList.dropDown.element["selectedIndex"] - 1;
-            var model:ISelectionModel = dataModel as ISelectionModel;
-
-            if (model.selectedIndex > -1 && model.dataProvider && model.selectedIndex
!= selectedIndex)
+            COMPILE::JS
             {
-                dropDownList.dropDown.element["selectedIndex"] = model.selectedIndex + 1;
+            model = dataModel as ISelectionModel;
+            var selectedIndex:int = dropDownList.selectedIndex;//dropDownList.dropDown.element["selectedIndex"];
+            
+            if (model.selectedIndex > -1 && model.dataProvider)// && model.selectedIndex
!= selectedIndex)
+            {
+                trace( model.selectedIndex + " != " + selectedIndex )
+                // trace("set selectedIndex", model.selectedIndex);
+                // dropDownList.dropDown.element["selectedIndex"] = model.selectedIndex;
+                dropDownList.selectedIndex = model.selectedIndex;
+            }
             }
         }
     }
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/itemRenderers/DropDownListItemRenderer.as
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/itemRenderers/DropDownListItemRenderer.as
index 298193d..af6e0a4 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/itemRenderers/DropDownListItemRenderer.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/itemRenderers/DropDownListItemRenderer.as
@@ -20,6 +20,7 @@ package org.apache.royale.jewel.itemRenderers
 {
     import org.apache.royale.html.elements.Option;
     import org.apache.royale.html.supportClasses.MXMLItemRenderer;
+    import org.apache.royale.jewel.beads.views.DropDownListView;
 
     COMPILE::JS
     {
@@ -36,6 +37,8 @@ package org.apache.royale.jewel.itemRenderers
      */    
 	public class DropDownListItemRenderer extends MXMLItemRenderer
 	{
+        public static const OPTION_DISABLED:String = "DropDownList.Select.Default.Prompt";
+
         /**
          *  Constructor.
          *  
@@ -66,24 +69,37 @@ package org.apache.royale.jewel.itemRenderers
         {
             super.data = value;
 
-            if (labelField)
-            {
-                item.text = String(value[labelField]);
-            }
-            else
+            if(value == OPTION_DISABLED)
             {
-                item.text = String(value);
-            }
-
-            COMPILE::JS
+                COMPILE::JS
+                {
+                var view:DropDownListView = DropDownListView(itemRendererParent);
+                // item.element.setAttribute("disabled", "");
+                item.element.setAttribute("selected", "");
+                item.element.setAttribute("hidden", "");
+                item.text = view.prompt;
+                }
+            } else
             {
-                if (dataField)
+                if (labelField)
                 {
-                    item.element["value"] = String(value[dataField]);
+                    item.text = String(value[labelField]);
                 }
                 else
                 {
-                    item.element["value"] = String(value);
+                    item.text = String(value);
+                }
+
+                COMPILE::JS
+                {
+                    if (dataField)
+                    {
+                        item.element["value"] = String(value[dataField]);
+                    }
+                    else
+                    {
+                        item.element["value"] = String(value);
+                    }
                 }
             }
         }
diff --git a/frameworks/projects/Jewel/src/main/sass/components/_dropdownlist.sass b/frameworks/projects/Jewel/src/main/sass/components/_dropdownlist.sass
index 45f5cf3..5c3fcdb 100644
--- a/frameworks/projects/Jewel/src/main/sass/components/_dropdownlist.sass
+++ b/frameworks/projects/Jewel/src/main/sass/components/_dropdownlist.sass
@@ -44,14 +44,14 @@ $dropdownlist-button-yoffset: calc(50% - #{$combobox-button-size/2})
 
 j|DropDownList
     IBeadView: ClassReference("org.apache.royale.jewel.beads.views.DropDownListView")
-    IBeadModel: ClassReference("org.apache.royale.jewel.beads.models.ArrayListSelectionModel")
-    IDataProviderItemRendererMapper: ClassReference("org.apache.royale.jewel.beads.itemRenderers.DataItemRendererFactoryForCollectionView")
+    // IBeadModel: ClassReference("org.apache.royale.jewel.beads.models.ArrayListSelectionModel")
+    IBeadModel: ClassReference("org.apache.royale.jewel.beads.models.DropDownListModel")
+    // IDataProviderItemRendererMapper: ClassReference("org.apache.royale.jewel.beads.itemRenderers.DataItemRendererFactoryForCollectionView")
+    IDataProviderItemRendererMapper: ClassReference("org.apache.royale.jewel.beads.itemRenderers.DropDownListItemRendererFactoryForCollectionView")
     IItemRendererClassFactory: ClassReference("org.apache.royale.core.ItemRendererClassFactory")
     IItemRenderer: ClassReference("org.apache.royale.jewel.itemRenderers.DropDownListItemRenderer")
     // IBeadController: ClassReference("org.apache.royale.mdl.beads.controllers.DropDownListController")
 
-    // IBeadModel: ClassReference("org.apache.royale.mdl.beads.models.DropDownListModel")
-    // IBeadLayout: ClassReference(null)
     // IDataProviderItemRendererMapper: ClassReference("org.apache.royale.html.beads.DataItemRendererFactoryForArrayData")
 
 @media -royale-swf	


Mime
View raw message