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 2020/10/06 20:35:52 UTC

[royale-asjs] branch develop updated (3a5bacf -> 73dd273)

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 3a5bacf  More spark stubs
     new fc3e69a  Emulate effect in Transition
     new 74bf297  Add Transition lookup for spark
     new 73dd273  Add some methods so override doesn't result in compiler error.

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:
 .../src/main/royale/mx/states/Transition.as        | 16 ++++++++--
 .../src/main/resources/spark-royale-manifest.xml   |  1 +
 .../royale/spark/components/SkinnableContainer.as  |  8 ++---
 .../components/supportClasses/DropDownListBase.as  | 36 +++++++++++-----------
 .../supportClasses/SkinnableComponent.as           |  2 ++
 .../src/main/royale/spark/skins/SparkSkin.as       |  4 +++
 6 files changed, 43 insertions(+), 24 deletions(-)


[royale-asjs] 02/03: Add Transition lookup for spark

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 74bf2971eb93e6f9f70783e53538faed1f59e8fb
Author: Yishay Weiss <yi...@yell.com>
AuthorDate: Tue Oct 6 18:19:54 2020 +0100

    Add Transition lookup for spark
---
 .../projects/SparkRoyale/src/main/resources/spark-royale-manifest.xml    | 1 +
 1 file changed, 1 insertion(+)

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 371d0a6..e79475f 100644
--- a/frameworks/projects/SparkRoyale/src/main/resources/spark-royale-manifest.xml
+++ b/frameworks/projects/SparkRoyale/src/main/resources/spark-royale-manifest.xml
@@ -60,6 +60,7 @@
     <component id="ListBase" class="spark.components.supportClasses.ListBase"/>
     <component id="ItemRenderer" class="spark.components.supportClasses.ItemRenderer"/>
  	<component id="GradientEntry" class="mx.graphics.GradientEntry" lookupOnly="true"/>
+ 	<component id="Transition" class="mx.states.Transition" lookupOnly="true"/>
  	<component id="LinearGradient" class="mx.graphics.LinearGradient" lookupOnly="true"/>
    	<component id="LinearGradientStroke" class="mx.graphics.LinearGradientStroke" lookupOnly="true"/>
    	<component id="State" class="mx.states.State" lookupOnly="true"/>


[royale-asjs] 01/03: Emulate effect in Transition

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 fc3e69a13dfdf1711594a98642cf1eb7a129d640
Author: Yishay Weiss <yi...@yell.com>
AuthorDate: Tue Oct 6 18:19:03 2020 +0100

    Emulate effect in Transition
---
 .../MXRoyale/src/main/royale/mx/states/Transition.as     | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/states/Transition.as b/frameworks/projects/MXRoyale/src/main/royale/mx/states/Transition.as
index 5766ac3..358614b 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/states/Transition.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/states/Transition.as
@@ -20,7 +20,7 @@
 package mx.states
 {
 
-//import mx.effects.IEffect;
+import mx.effects.IEffect;
 import org.apache.royale.states.Transition;
 
 [DefaultProperty("effect")]
@@ -132,7 +132,19 @@ public class Transition extends org.apache.royale.states.Transition
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
-    //public var effect:IEffect;
+     public function set effect(value:IEffect):void
+     {
+	if (!effects)
+	{
+		effects = [];
+	}
+	effects[0] = value;
+     }
+
+     public function get effect():IEffect
+     {
+	return effects && effects.length > 0 ? effects[0] as IEffect : null;
+     }
 
     //----------------------------------
     //  fromState


[royale-asjs] 03/03: Add some methods so override doesn't result in compiler error.

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 73dd273339f7a00ee75d8d9a1328e5ed5354d273
Author: Yishay Weiss <yi...@yell.com>
AuthorDate: Tue Oct 6 21:34:28 2020 +0100

    Add some methods so override doesn't result in compiler error.
---
 .../royale/spark/components/SkinnableContainer.as  |  8 ++---
 .../components/supportClasses/DropDownListBase.as  | 36 +++++++++++-----------
 .../supportClasses/SkinnableComponent.as           |  2 ++
 .../src/main/royale/spark/skins/SparkSkin.as       |  4 +++
 4 files changed, 28 insertions(+), 22 deletions(-)

diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as
index 02da846..1c07a8b 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as
@@ -1093,9 +1093,9 @@ public class SkinnableContainer extends SkinnableContainerBase implements IConta
      *  @playerversion AIR 1.5
      *  @productversion Royale 0.9.4
      */
-     /* override */ protected function partRemoved(partName:String, instance:Object):void
+     /* override protected function partRemoved(partName:String, instance:Object):void
     {
-         /* super.partRemoved(partName, instance);
+         super.partRemoved(partName, instance);
 
          if (instance == contentGroup)
         {
@@ -1132,8 +1132,8 @@ public class SkinnableContainer extends SkinnableContainerBase implements IConta
             
             contentGroup.mxmlContent = null;
             contentGroup.layout = null;
-        } */
-    }
+        } 
+    }*/
      
     //--------------------------------------------------------------------------
     //
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/DropDownListBase.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/DropDownListBase.as
index 19e1b33..1d632cc 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/DropDownListBase.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/DropDownListBase.as
@@ -806,10 +806,10 @@ public class DropDownListBase extends List
      *  Called whenever we need to update the text passed to the labelDisplay skin part
      */
     // TODO (jszeto): Make this protected and make the name more generic (passing data to skin) 
-    /* mx_internal function updateLabelDisplay(displayItem:* = undefined):void
+    mx_internal function updateLabelDisplay(displayItem:* = undefined):void
     {
         // DropDownList and ComboBox will override this function
-    } */
+    }
     
     /**
      *  @private
@@ -1095,22 +1095,22 @@ public class DropDownListBase extends List
      *  @playerversion AIR 1.5
      *  @productversion Royale 0.9.4
      */
-    /* protected function dropDownController_closeHandler(event:DropDownEvent):void
-    {
-        addEventListener(FlexEvent.UPDATE_COMPLETE, close_updateCompleteHandler);
-        invalidateSkinState();
-        
-        if (!event.isDefaultPrevented())
-        {
-            // Even if the dropDown was programmatically closed, assume the selection 
-            // changed as a result of a previous user interaction
-            setSelectedIndex(userProposedSelectedIndex, true);  
-        }
-        else
-        {
-            changeHighlightedSelection(selectedIndex);
-        }
-    } */
+    //protected function dropDownController_closeHandler(event:DropDownEvent):void
+    //{
+        //addEventListener(FlexEvent.UPDATE_COMPLETE, close_updateCompleteHandler);
+        //invalidateSkinState();
+        //
+        //if (!event.isDefaultPrevented())
+        //{
+            //// Even if the dropDown was programmatically closed, assume the selection 
+            //// changed as a result of a previous user interaction
+            //setSelectedIndex(userProposedSelectedIndex, true);  
+        //}
+        //else
+        //{
+            //changeHighlightedSelection(selectedIndex);
+        //}
+    //}
 
     /**
      *  @private
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/SkinnableComponent.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/SkinnableComponent.as
index 4ac1e10..130cbba 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/SkinnableComponent.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/SkinnableComponent.as
@@ -402,6 +402,8 @@ public class SkinnableComponent extends UIComponent
         */
     }
 
+    protected function partRemoved(partName:String, instance:Object):void {} // not implemented
+
 	//dataGroup copied from SkinnableDataContainer
 	/**
      *  An optional skin part that defines the DataGroup in the skin class 
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/skins/SparkSkin.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/skins/SparkSkin.as
index 8e9208c..ce145ae 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/skins/SparkSkin.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/skins/SparkSkin.as
@@ -73,6 +73,10 @@ public class SparkSkin extends Skin
         super();
     }
     
+	public function get contentItems():Array {return []} // not implemented
+
+	public function get symbolItems():Array {return []} // not implemented
+
 	// not implemented
 	public function get colorizeExclusions() : Array { return []}
     /**