This is an automated email from the ASF dual-hosted git repository.
pushminakazi 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 24bd6ec Update DefaultDataDescriptor.as added dataDescriptor function
24bd6ec is described below
commit 24bd6ec1be3d12e8fbf26947fde3cb773a012a6a
Author: pashminakazi <[email protected]>
AuthorDate: Tue Dec 1 12:49:47 2020 +0500
Update DefaultDataDescriptor.as added dataDescriptor function
---
.../controls/treeClasses/DefaultDataDescriptor.as | 39 +++++++++++++++++++++-
1 file changed, 38 insertions(+), 1 deletion(-)
diff --git
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/DefaultDataDescriptor.as
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/DefaultDataDescriptor.as
index 5dda85d..ea2b785 100644
---
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/DefaultDataDescriptor.as
+++
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/DefaultDataDescriptor.as
@@ -676,6 +676,43 @@ public class DefaultDataDescriptor implements
ITreeDataDescriptor2 , IMenuDataDe
}
return "";
}
+
+
//--------------------------------------------------------------------------
+ // dataDescriptor
+
//--------------------------------------------------------------------------
+
+ /**
+ * @private
+ */
+ private var _dataDescriptor:IMenuDataDescriptor = new
DefaultDataDescriptor;
+
+ /**
+ * The object that accesses and manipulates data in the data provider.
+ * The Menu control delegates to the data descriptor for information
+ * about its data. This data is then used to parse and move about the
+ * data source. The data descriptor defined for the root menu is used
+ * for all submenus.
+ *
+ * The default value is an internal instance of the
+ * DefaultDataDescriptor class.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public function get dataDescriptor():IMenuDataDescriptor
+ {
+ return IMenuDataDescriptor(_dataDescriptor);
+ }
+
+ /**
+ * @private
+ */
+ public function set dataDescriptor(value:IMenuDataDescriptor):void
+ {
+ _dataDescriptor = value;
+ }
/**
* @inheritDoc
@@ -778,4 +815,4 @@ class CollectionCache
// the runtime shouldn't be messing with XML node instances
return output;
}
-}
\ No newline at end of file
+}