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/01/20 11:43:55 UTC
[royale-asjs] branch develop updated: MXTreeItemRenderer added in
spark emulation
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 e33ee8f MXTreeItemRenderer added in spark emulation
e33ee8f is described below
commit e33ee8f6f925d62758635601f2857275e041f9ca
Author: alinakazi <al...@gmail.com>
AuthorDate: Wed Jan 20 16:43:40 2021 +0500
MXTreeItemRenderer added in spark emulation
---
.../src/main/resources/spark-royale-manifest.xml | 4 +
.../controls/treeClasses/MXTreeItemRenderer.as | 86 ++++++++++++++++++++++
2 files changed, 90 insertions(+)
diff --git a/frameworks/projects/SparkRoyale/src/main/resources/spark-royale-manifest.xml b/frameworks/projects/SparkRoyale/src/main/resources/spark-royale-manifest.xml
index 0d80fd7..069e8bc 100644
--- a/frameworks/projects/SparkRoyale/src/main/resources/spark-royale-manifest.xml
+++ b/frameworks/projects/SparkRoyale/src/main/resources/spark-royale-manifest.xml
@@ -33,6 +33,7 @@
<component id="TextArea" class="spark.components.TextArea" />
<component id="TextInput" class="spark.components.TextInput" />
<component id="Panel" class="spark.components.Panel" />
+
<component id="TitleWindow" class="spark.components.TitleWindow" />
<component id="SparkSkin" class="spark.skins.SparkSkin"/>
<component id="SparkSkinWithClipAndEnableScrollingViewport" class="spark.components.beads.SparkSkinWithClipAndEnableScrollingViewport"/>
@@ -148,4 +149,7 @@
<!-- MXItemRenderer -->
<component id="MXItemRenderer" class="spark.controls.listClasses.MXItemRenderer"/>
<component id="MXDataGridItemRenderer" class="spark.controls.dataGridClasses.MXDataGridItemRenderer"/>
+
+ <component id="MXTreeItemRenderer" class="spark.controls.treeClasses.MXTreeItemRenderer"/>
+
</componentPackage>
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
new file mode 100644
index 0000000..06106dd
--- /dev/null
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/controls/treeClasses/MXTreeItemRenderer.as
@@ -0,0 +1,86 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package spark.controls.treeClasses
+{
+import mx.events.MouseEvent;
+
+import spark.controls.listClasses.MXItemRenderer;
+import mx.controls.Tree;
+import mx.core.mx_internal;
+import mx.events.TreeEvent;
+import spark.components.Group;
+
+use namespace mx_internal;
+
+//--------------------------------------
+// Excluded APIs
+//--------------------------------------
+
+[Exclude(name="listData", kind="property")]
+
+/**
+ * The MXTreeItemRenderer class defines the Spark item renderer class
+ * for use with the MX Tree control.
+ * This class lets you use the Spark item renderer architecture with the
+ * MX Tree control.
+ *
+ * @mxml
+ *
+ * <p>The <code><s:MXTreeItemRenderer ></code> tag inherits all of the tag
+ * attributes of its superclass and adds the following tag attributes:</p>
+ *
+ * <pre>
+ * <s:MXItemRenderer
+ * <strong>Properties</strong>
+ * />
+ * </pre>
+ *
+ * @see mx.controls.Tree
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10
+ * @playerversion AIR 1.5
+ * @productversion Flex 4
+ */
+public class MXTreeItemRenderer extends MXItemRenderer
+{
+ //--------------------------------------------------------------------------
+ //
+ // Constructor
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * Constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10
+ * @playerversion AIR 1.5
+ * @productversion Flex 4
+ */
+ public function MXTreeItemRenderer()
+ {
+ super();
+ }
+
+
+
+}
+}
\ No newline at end of file