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 2020/10/26 10:54:39 UTC
[royale-asjs] 01/03: Moved stub to base class
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
commit 7e4ac1fa7d8fc3b562462dae36f469825e30fef7
Author: Yishay Weiss <yi...@hotmail.com>
AuthorDate: Sun Oct 25 19:28:12 2020 +0000
Moved stub to base class
---
.../src/main/royale/spark/components/List.as | 4 ---
.../spark/components/supportClasses/ListBase.as | 37 ++++++++++++++++++++++
2 files changed, 37 insertions(+), 4 deletions(-)
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/List.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/List.as
index e708e3f..3c1fded 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/List.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/List.as
@@ -617,10 +617,6 @@ public class List extends ListBase implements IFocusManagerComponent
}
}
- public function set itemRendererFunction(value:Function):void
- {
- // not implemented
- }
//----------------------------------
// hasFocusableChildren
//----------------------------------
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 8a0f3db..39c602d 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
@@ -566,6 +566,43 @@ public class ListBase extends SkinnableContainer
factory.itemRendererFactory = value;
}
+
+ //----------------------------------
+ // itemRendererFunction
+ //----------------------------------
+
+ [Inspectable(category="Data")]
+
+ /**
+ * @copy spark.components.DataGroup#itemRendererFunction
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10
+ * @playerversion AIR 1.5
+ * @productversion Flex 4
+ */
+ public function get itemRendererFunction():Function // not implemeneted
+ {
+ //return (dataGroup)
+ //? dataGroup.itemRendererFunction
+ //: dataGroupProperties.itemRendererFunction;
+ return null;
+ }
+
+ /**
+ * @private
+ */
+ public function set itemRendererFunction(value:Function):void // not implemeneted
+ {
+ //if (dataGroup)
+ //{
+ //dataGroup.itemRendererFunction = value;
+ //dataGroupProperties = BitFlagUtil.update(dataGroupProperties as uint,
+ //ITEM_RENDERER_FUNCTION_PROPERTY_FLAG, true);
+ //}
+ //else
+ //dataGroupProperties.itemRendererFunction = value;
+ }
/**
* @private
*/