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 2018/01/11 08:22:42 UTC

[royale-asjs] branch develop updated (ca6f7c8 -> bc02233)

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

yishayw pushed a change to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git.


    from ca6f7c8  fix RoyaleThemes example and include Slider. Include example in example/royale modules list to compile
     new 31c93e0  Make GraphicContainer mxml enabled. Still half-baked.
     new e8ee330  GraphicContainer - make sure child instances are initialized in mxml.
     new bc02233  Merge branch 'develop' of https://github.com/apache/royale-asjs into develop

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../org/apache/royale/svg/GraphicContainer.as      | 104 ++++++++++++++++++---
 1 file changed, 90 insertions(+), 14 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
['"commits@royale.apache.org" <co...@royale.apache.org>'].

[royale-asjs] 02/03: GraphicContainer - make sure child instances are initialized in mxml.

Posted by yi...@apache.org.
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 e8ee330b90fef343a79b8831a5d3c4c4f5e19d9c
Author: DESKTOP-RH4S838\Yishay <yi...@hotmail.com>
AuthorDate: Thu Jan 11 10:21:13 2018 +0200

    GraphicContainer - make sure child instances are initialized in mxml.
---
 .../org/apache/royale/svg/GraphicContainer.as      | 28 ++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/svg/GraphicContainer.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/svg/GraphicContainer.as
index 12b768b..825bb14 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/svg/GraphicContainer.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/svg/GraphicContainer.as
@@ -19,11 +19,13 @@ package org.apache.royale.svg
 {
     import org.apache.royale.core.GroupBase;
     import org.apache.royale.core.IChild;
+	import org.apache.royale.events.Event;
     import org.apache.royale.core.IMXMLDocument;
     import org.apache.royale.core.IRoyaleElement;
     import org.apache.royale.core.ITransformHost;
     import org.apache.royale.events.ValueEvent;
     import org.apache.royale.utils.MXMLDataInterpreter;
+	import org.apache.royale.core.ValuesManager;
 
 	COMPILE::JS
 	{
@@ -42,6 +44,7 @@ package org.apache.royale.svg
 		private var graphicGroup:GroupBase;
 		private var _mxmlDescriptor:Array;
 		private var _mxmlDocument:Object = this;
+		private var _initialized:Boolean;
 
 		public function GraphicContainer()
 		{
@@ -208,6 +211,31 @@ package org.apache.royale.svg
 		}
 
 		/**
+		 * @private
+		 */
+		override public function addedToParent():void
+		{
+			if (!_initialized)
+			{
+				// each MXML file can also have styles in fx:Style block
+				ValuesManager.valuesImpl.init(this);
+			}
+			
+			super.addedToParent();
+			
+			if (!_initialized)
+			{
+				MXMLDataInterpreter.generateMXMLInstances(_mxmlDocument, this, MXMLDescriptor);
+				
+				dispatchEvent(new Event("initBindings"));
+				dispatchEvent(new Event("initComplete"));
+				_initialized = true;
+				
+				//?? why was this added here? childrenAdded(); //?? Is this needed since MXMLDataInterpreter will already have called it
+			}
+		}
+
+		/**
 		 *  @copy org.apache.royale.core.Application#generateMXMLAttributes()
 		 *  
 		 *  @langversion 3.0

-- 
To stop receiving notification emails like this one, please contact
"commits@royale.apache.org" <co...@royale.apache.org>.

[royale-asjs] 03/03: Merge branch 'develop' of https://github.com/apache/royale-asjs into develop

Posted by yi...@apache.org.
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 bc02233f59bf3b74039a9f539ac827123559a3b3
Merge: e8ee330 ca6f7c8
Author: DESKTOP-RH4S838\Yishay <yi...@hotmail.com>
AuthorDate: Thu Jan 11 10:22:25 2018 +0200

    Merge branch 'develop' of https://github.com/apache/royale-asjs into develop

 examples/pom.xml                                   |  2 +-
 .../AccordionExample/AccordionExample.as3proj      | 89 +++++++++++++++++++++
 examples/royale/ChartExample/ChartExample.as3proj  | 89 +++++++++++++++++++++
 .../royale/CreateJSExample/CreateJSExample.as3proj | 89 +++++++++++++++++++++
 .../DataBindingExample/DataBindingExample.as3proj  | 89 +++++++++++++++++++++
 .../DataBindingExampleWithFlexLayout.as3proj       | 89 +++++++++++++++++++++
 .../DataBindingExample_Flat.as3proj                | 89 +++++++++++++++++++++
 .../royale/DataGridExample/DataGridExample.as3proj | 91 +++++++++++++++++++++
 .../src/main/royale/MyInitialView.mxml             |  6 +-
 .../DateControlsExample.as3proj                    | 89 +++++++++++++++++++++
 .../DebuggingExample/DebuggingExample.as3proj      | 89 +++++++++++++++++++++
 .../DragAndDropExample/DragAndDropExample.as3proj  | 91 +++++++++++++++++++++
 examples/royale/Flex2Royale/Flex2Royale.as3proj    | 89 +++++++++++++++++++++
 .../Flex2Royale/src/main/royale/MainView.mxml      | 12 +--
 examples/royale/HTMLElements/HTMLElements.as3proj  | 89 +++++++++++++++++++++
 examples/royale/HelloWorld/HelloWorld.as3proj      | 89 +++++++++++++++++++++
 examples/royale/ListExample/ListExample.as3proj    | 89 +++++++++++++++++++++
 .../royale/MDLBlogExample/MDLBlogExample.as3proj   | 91 +++++++++++++++++++++
 .../MDLDynamicTableExample.as3proj                 | 89 +++++++++++++++++++++
 .../MDLDynamicTabsExample.as3proj                  | 89 +++++++++++++++++++++
 examples/royale/MDLExample/MDLExample.as3proj      | 91 +++++++++++++++++++++
 examples/royale/MobileTrader/MobileTrader.as3proj  | 91 +++++++++++++++++++++
 .../royale/ModuleExample/ModuleExample.as3proj     | 89 +++++++++++++++++++++
 .../RemoteObjectAMFTest.as3proj                    | 89 +++++++++++++++++++++
 .../src/main/resources/mdl-js-index-template.html  | 33 --------
 .../src/main/resources/mdl-styles.css              | 24 ------
 examples/royale/RoyaleStore/RoyaleStore.as3proj    | 92 ++++++++++++++++++++++
 .../RoyaleStore_jquery/RoyaleStore_jquery.as3proj  | 92 ++++++++++++++++++++++
 .../RoyaleTeamPage_MDL/RoyaleTeamPage_MDL.as3proj  | 91 +++++++++++++++++++++
 examples/royale/RoyaleThemes/README.txt            |  2 +
 examples/royale/RoyaleThemes/RoyaleThemes.as3proj  | 89 +++++++++++++++++++++
 examples/royale/RoyaleThemes/pom.xml               |  4 +-
 .../royale/RoyaleThemes/src/main/royale/App.mxml   |  1 +
 .../src/main/royale/ButtonPlayGround.mxml          | 14 +++-
 .../RoyaleWebsiteStatsViewer.as3proj               | 89 +++++++++++++++++++++
 examples/royale/StyleExample/StyleExample.as3proj  | 89 +++++++++++++++++++++
 examples/royale/TableExample/TableExample.as3proj  | 89 +++++++++++++++++++++
 examples/royale/TeamPage/TeamPage.as3proj          | 91 +++++++++++++++++++++
 .../TodoListSampleApp/TodoListSampleApp.as3proj    | 89 +++++++++++++++++++++
 examples/royale/TreeExample/TreeExample.as3proj    | 89 +++++++++++++++++++++
 examples/royale/pom.xml                            |  1 +
 frameworks/projects/Basic/.actionScriptProperties  | 18 +++++
 frameworks/projects/Basic/.flexLibProperties       | 18 +++++
 .../beads/controllers/HSliderMouseController.as    |  5 +-
 .../beads/controllers/VSliderMouseController.as    |  5 +-
 45 files changed, 2847 insertions(+), 77 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
"commits@royale.apache.org" <co...@royale.apache.org>.

[royale-asjs] 01/03: Make GraphicContainer mxml enabled. Still half-baked.

Posted by yi...@apache.org.
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 31c93e06c914855b8bff1203f1755f7234931494
Author: DESKTOP-RH4S838\Yishay <yi...@hotmail.com>
AuthorDate: Wed Jan 10 17:10:28 2018 +0200

    Make GraphicContainer mxml enabled. Still half-baked.
---
 .../org/apache/royale/svg/GraphicContainer.as      | 76 ++++++++++++++++++----
 1 file changed, 62 insertions(+), 14 deletions(-)

diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/svg/GraphicContainer.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/svg/GraphicContainer.as
index 2864f70..12b768b 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/svg/GraphicContainer.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/svg/GraphicContainer.as
@@ -19,9 +19,11 @@ package org.apache.royale.svg
 {
     import org.apache.royale.core.GroupBase;
     import org.apache.royale.core.IChild;
+    import org.apache.royale.core.IMXMLDocument;
     import org.apache.royale.core.IRoyaleElement;
     import org.apache.royale.core.ITransformHost;
-	import org.apache.royale.events.ValueEvent;
+    import org.apache.royale.events.ValueEvent;
+    import org.apache.royale.utils.MXMLDataInterpreter;
 
 	COMPILE::JS
 	{
@@ -30,22 +32,16 @@ package org.apache.royale.svg
 		import org.apache.royale.events.Event;
 	}
 
+	/**
+	 * The default property uses when additional MXML content appears within an element's
+	 * definition in an MXML file.
+	 */
 	[DefaultProperty("mxmlContent")]
-
-	COMPILE::SWF
-    public class GraphicContainer extends GroupBase implements ITransformHost
-    {
-        public function GraphicContainer()
-        {
-            super();
-        }
-
-    }
-
-	COMPILE::JS
-	public class GraphicContainer extends GroupBase implements ITransformHost
+	public class GraphicContainer extends GroupBase implements ITransformHost, IMXMLDocument
 	{
 		private var graphicGroup:GroupBase;
+		private var _mxmlDescriptor:Array;
+		private var _mxmlDocument:Object = this;
 
 		public function GraphicContainer()
 		{
@@ -55,6 +51,7 @@ package org.apache.royale.svg
 		/**
 		 * @royaleignorecoercion org.apache.royale.core.WrappedHTMLElement
 		 */
+		COMPILE::JS
 		override protected function createElement():org.apache.royale.core.WrappedHTMLElement
 		{
 			element = document.createElementNS('http://www.w3.org/2000/svg', 'svg') as org.apache.royale.core.WrappedHTMLElement;
@@ -75,6 +72,7 @@ package org.apache.royale.svg
 			element.setAttribute('class', value);
 		}
 
+		COMPILE::JS
 		override public function get transformElement():org.apache.royale.core.WrappedHTMLElement
 		{
 			return graphicGroup.element;
@@ -88,6 +86,7 @@ package org.apache.royale.svg
 		 *  @playerversion AIR 2.6
 		 *  @productversion Royale 0.0
 		 */
+		COMPILE::JS
 		override public function getElementAt(index:int):IChild
 		{
 			return graphicGroup.getElementAt(index);
@@ -101,6 +100,7 @@ package org.apache.royale.svg
 		 *  @playerversion AIR 2.6
 		 *  @productversion Royale 0.0
 		 */
+		COMPILE::JS
 		override public function addElement(c:IChild, dispatchEvent:Boolean = true):void
 		{
 			graphicGroup.addElement(c, dispatchEvent);
@@ -116,6 +116,7 @@ package org.apache.royale.svg
 		 *  @playerversion AIR 2.6
 		 *  @productversion Royale 0.0
 		 */
+		COMPILE::JS
 		override public function addElementAt(c:IChild, index:int, dispatchEvent:Boolean = true):void
 		{
 			graphicGroup.addElementAt(c, index, dispatchEvent);
@@ -131,6 +132,7 @@ package org.apache.royale.svg
 		 *  @playerversion AIR 2.6
 		 *  @productversion Royale 0.0
 		 */
+		COMPILE::JS
 		override public function removeElement(c:IChild, dispatchEvent:Boolean = true):void
 		{
 			graphicGroup.removeElement(c, dispatchEvent);
@@ -146,6 +148,7 @@ package org.apache.royale.svg
 		 *  @playerversion AIR 2.6
 		 *  @productversion Royale 0.0
 		 */
+		COMPILE::JS
 		override public function getElementIndex(c:IChild):int
 		{
 			return graphicGroup.getElementIndex(c);
@@ -160,6 +163,7 @@ package org.apache.royale.svg
 		 *  @playerversion AIR 2.6
 		 *  @productversion Royale 0.0
 		 */
+		COMPILE::JS
 		override public function get numElements():int
 		{
 			return graphicGroup.numElements;
@@ -181,6 +185,50 @@ package org.apache.royale.svg
 			element.setAttribute("y", value);
         }
 
+		/**
+		 *  @copy org.apache.royale.core.Application#MXMLDescriptor
+		 *  
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion Royale 0.8
+		 */
+		public function get MXMLDescriptor():Array
+		{
+			return _mxmlDescriptor;
+		}
+
+		/**
+		 *  @private
+		 */
+		public function setMXMLDescriptor(document:Object, value:Array):void
+		{
+			_mxmlDocument = document;
+			_mxmlDescriptor = value;
+		}
+
+		/**
+		 *  @copy org.apache.royale.core.Application#generateMXMLAttributes()
+		 *  
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion Royale 0.9
+		 */
+		public function generateMXMLAttributes(data:Array):void
+		{
+			MXMLDataInterpreter.generateMXMLProperties(this, data);
+		}
+		
+		/**
+		 *  @copy org.apache.royale.core.ItemRendererClassFactory#mxmlContent
+		 *  
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion Royale 0.9
+		 */
+		public var mxmlContent:Array;
 	}
 }
 

-- 
To stop receiving notification emails like this one, please contact
"commits@royale.apache.org" <co...@royale.apache.org>.