You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by yi...@apache.org on 2021/12/14 08:26:00 UTC

[royale-asjs] branch develop updated: Some beads expect SkinnableDataContainer to be an IContainer

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

yishayw 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 ff5ec1f  Some beads expect SkinnableDataContainer to be an IContainer
ff5ec1f is described below

commit ff5ec1ff1d74267514da690fa92357d40ea7d7fa
Author: Yishay Weiss <yi...@hotmail.com>
AuthorDate: Tue Dec 14 10:25:45 2021 +0200

    Some beads expect SkinnableDataContainer to be an IContainer
---
 .../spark/components/supportClasses/ListBase.as    | 32 +++++++++++++++++++++-
 1 file changed, 31 insertions(+), 1 deletion(-)

diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as
index 9e181b8..9d5a061 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as
@@ -57,6 +57,9 @@ import org.apache.royale.core.ISelectionModel;
 import org.apache.royale.core.ItemRendererClassFactory;
 import org.apache.royale.events.Event;
 import org.apache.royale.events.IEventDispatcher;
+import org.apache.royale.core.IContainer;
+import org.apache.royale.core.IParent;
+import org.apache.royale.events.ValueEvent;
 
 use namespace mx_internal;   //ListBase and List share selection properties that are mx_internal
 
@@ -195,7 +198,7 @@ use namespace mx_internal;   //ListBase and List share selection properties that
  *  @productversion Royale 0.9.4
  *  @royalesuppresspublicvarwarning
  */
-public class ListBase  extends SkinnableDataContainer
+public class ListBase  extends SkinnableDataContainer implements IContainer
 { //extends SkinnableDataContainer implements IDataProviderEnhance
     //include "../../core/Version.as";
 
@@ -2141,6 +2144,33 @@ public class ListBase  extends SkinnableDataContainer
 	{
 		dispatchEvent(new Event(event.type));
 	}
+
+    /*
+    * 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;
+    }
+
+
 }
 
 }