You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2019/12/20 18:38:48 UTC

[royale-asjs] branch develop updated (eac8f74 -> 4236a95)

This is an automated email from the ASF dual-hosted git repository.

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


    from eac8f74  Also, mx needs to change
     new 4715993  Spark DropDown needs to work with ArrayList as well
     new 4236a95  itemDoubleClick

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../advancedDataGridClasses/AdvancedDataGridItemRenderer.as | 13 ++++++++++++-
 .../projects/SparkRoyale/src/main/resources/defaults.css    |  2 +-
 2 files changed, 13 insertions(+), 2 deletions(-)


[royale-asjs] 02/02: itemDoubleClick

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 4236a95d2a1203e3f16794cef5ccf0db6fce9815
Author: Alex Harui <ah...@apache.org>
AuthorDate: Fri Dec 20 10:38:35 2019 -0800

    itemDoubleClick
---
 .../advancedDataGridClasses/AdvancedDataGridItemRenderer.as | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/AdvancedDataGridItemRenderer.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/AdvancedDataGridItemRenderer.as
index ee3017c..bba4083 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/AdvancedDataGridItemRenderer.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/AdvancedDataGridItemRenderer.as
@@ -46,8 +46,10 @@ use namespace mx_internal;
 
 import org.apache.royale.utils.CSSUtils;
 import org.apache.royale.html.supportClasses.StringItemRenderer;
+import org.apache.royale.events.MouseEvent;
 import mx.core.UIComponent;
-import mx.collections.IHierarchicalData;
+import mx.collections.IHierarchicalData;
+import mx.events.ListEvent;
 
 //--------------------------------------
 //  Events
@@ -114,8 +116,17 @@ public class AdvancedDataGridItemRenderer extends StringItemRenderer
     {
         super();
         typeNames += " AdvancedDataGridItemRenderer";
+        addEventListener(MouseEvent.DOUBLE_CLICK, doubleClickHandler);
     }
 
+    private function doubleClickHandler(event:MouseEvent):void
+    {
+        var treeListData:AdvancedDataGridListData = listData as AdvancedDataGridListData;
+        var owner:AdvancedDataGrid = treeListData.owner as AdvancedDataGrid;
+        var newEvent:ListEvent = new ListEvent(ListEvent.ITEM_DOUBLE_CLICK);
+        newEvent.rowIndex = index;
+        owner.dispatchEvent(newEvent);        
+    }
     //--------------------------------------------------------------------------
     //
     //  Overridden properties: UIComponent


[royale-asjs] 01/02: Spark DropDown needs to work with ArrayList as well

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 4715993c0d7a1abd406e4cb302251d37b87c8028
Author: Alex Harui <ah...@apache.org>
AuthorDate: Fri Dec 20 09:48:52 2019 -0800

    Spark DropDown needs to work with ArrayList as well
---
 frameworks/projects/SparkRoyale/src/main/resources/defaults.css | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frameworks/projects/SparkRoyale/src/main/resources/defaults.css b/frameworks/projects/SparkRoyale/src/main/resources/defaults.css
index b28ab14..57d60ab 100644
--- a/frameworks/projects/SparkRoyale/src/main/resources/defaults.css
+++ b/frameworks/projects/SparkRoyale/src/main/resources/defaults.css
@@ -106,7 +106,7 @@ NonVirtualVDataGroup
 
 DropDownList
 {
-	IBeadModel: ClassReference("mx.controls.beads.models.SingleSelectionICollectionViewModel");
+	IBeadModel: ClassReference("mx.controls.beads.models.SingleSelectionIListModel");
 	IBeadView: ClassReference("spark.components.beads.DropDownListView");
 	IBeadController: ClassReference("spark.components.beads.controllers.DropDownListController");
 }