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 2efdcdfdf7bc2d8ff36e07d766baa924ca4ac458
Author: Alex Harui <aha...@apache.org>
AuthorDate: Thu Dec 6 21:31:23 2018 -0800

    GroupBase needs to be IContainer to get childrenAdded
---
 .../spark/components/supportClasses/GroupBase.as   | 30 +++++++++++++++++++++-
 1 file changed, 29 insertions(+), 1 deletion(-)

diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/GroupBase.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/GroupBase.as
index f58cd50..48882f0 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/GroupBase.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/GroupBase.as
@@ -47,10 +47,13 @@ import spark.layouts.supportClasses.LayoutBase;
 import org.apache.royale.binding.ContainerDataBinding;
 import org.apache.royale.binding.DataBindingBase;
 import org.apache.royale.core.IBeadLayout;
+import org.apache.royale.core.IContainer;
 import org.apache.royale.core.ILayoutHost;
 import org.apache.royale.core.ILayoutParent;
+import org.apache.royale.core.IParent;
 import org.apache.royale.core.ValuesManager;
 import org.apache.royale.events.Event;
+import org.apache.royale.events.ValueEvent;
 import org.apache.royale.utils.MXMLDataInterpreter;
 import org.apache.royale.utils.loadBeadFromValuesManager;
 
@@ -329,7 +332,7 @@ include 
"../../styles/metadata/SelectionFormatTextStyles.as" */
  *  @playerversion AIR 1.5
  *  @productversion Royale 0.9.4
  */
-public class GroupBase extends UIComponent implements ILayoutParent
+public class GroupBase extends UIComponent implements ILayoutParent, IContainer
 { //implements IViewport
 
     
//--------------------------------------------------------------------------
@@ -352,6 +355,31 @@ public class GroupBase extends UIComponent implements 
ILayoutParent
         //showInAutomationHierarchy = false;
     }
         
+    /*
+    * IContainer
+    */
+    
+    /**
+     *  @private
+     */
+    public function childrenAdded():void
+    {
+        dispatchEvent(new ValueEvent("childrenAdded"));
+    }
+    
+    /**
+     * @copy org.apache.royale.core.IContentViewHost#strandChildren
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion Royale 0.8
+     */
+    public function get strandChildren():IParent
+    {
+        return this;
+    }
+
     
//--------------------------------------------------------------------------
     //
     //  Overridden properties: UIComponent

Reply via email to