You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by al...@apache.org on 2021/03/05 12:44:51 UTC

[royale-asjs] branch develop updated: Changes in MXTreeItemRenderer

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

alinakazi 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 641d123  Changes in MXTreeItemRenderer
641d123 is described below

commit 641d1233ef5d1623d6f1253b2d9a5940455bd89d
Author: alinakazi <al...@gmail.com>
AuthorDate: Fri Mar 5 17:44:41 2021 +0500

    Changes in MXTreeItemRenderer
---
 .../controls/treeClasses/MXTreeItemRenderer.as     | 25 +++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)

diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/controls/treeClasses/MXTreeItemRenderer.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/controls/treeClasses/MXTreeItemRenderer.as
index 06106dd..16703e8 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/controls/treeClasses/MXTreeItemRenderer.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/controls/treeClasses/MXTreeItemRenderer.as
@@ -26,6 +26,7 @@ import mx.controls.Tree;
 import mx.core.mx_internal;
 import mx.events.TreeEvent;
 import spark.components.Group;
+import mx.controls.treeClasses.TreeListData;
 
 use namespace mx_internal; 
 
@@ -80,7 +81,29 @@ public class MXTreeItemRenderer extends MXItemRenderer
         super();
     }
     
-   
+    //----------------------------------
+    //  treeListData
+    //----------------------------------
+
+    [Bindable("dataChange")]
+    
+    /**
+     *  The implementation of the <code>listData</code> property
+     *  as defined by the IDropInListItemRenderer interface.
+     *  Use this property to access information about the 
+     *  data item displayed by the item renderer.     
+     *
+     *  @see mx.controls.listClasses.IDropInListItemRenderer
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get treeListData():TreeListData
+    {
+        return listData as TreeListData;
+    }
 
 }
 }
\ No newline at end of file