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

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


The following commit(s) were added to refs/heads/feature/MXRoyale by this push:
     new 8fa0e7f  Update ITreeDataDescriptor.as
8fa0e7f is described below

commit 8fa0e7f14b518af39a3c5fb6f0546a21494184ab
Author: alinakazi <[email protected]>
AuthorDate: Tue Jul 24 16:22:36 2018 +0500

    Update ITreeDataDescriptor.as
    
     hasChildren & getChildren methods added
---
 .../mx/controls/treeClasses/ITreeDataDescriptor.as | 37 +++++++++++++++++++++-
 1 file changed, 36 insertions(+), 1 deletion(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/ITreeDataDescriptor.as
 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/ITreeDataDescriptor.as
index dc4d02e..a541855 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/ITreeDataDescriptor.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/ITreeDataDescriptor.as
@@ -35,7 +35,42 @@ import mx.collections.ICollectionView;
  */
 public interface ITreeDataDescriptor
 {
-    
+    /**
+     *  Provides access to a node's children, returning a collection
+     *  view of children if they exist.
+     *  A node can return any object in the collection as its children;
+     *  children need not be nested.
+     *  It is best-practice to return the same collection view for a
+     *  given node.
+     *
+     *  @param node The node object currently being evaluated.
+     *
+     *  @param model The entire collection that this node is a part of.
+     *
+     *  @return An collection view containing the child nodes.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion  Royale 0.9.3
+     */
+    function getChildren(node:Object, model:Object = null):ICollectionView;
+
+    /**
+     *  Tests for the existence of children in a non-terminating node.
+     *  
+     *  @param node The current node.
+     *  
+     *  @param model The entire collection that this node is a part of.
+     *  
+     *  @return <code>true</code> if the node has at least one child.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Royale 0.9.3
+     */
+    function hasChildren(node:Object, model:Object = null):Boolean;
 }
 
 }

Reply via email to