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/05 11:45:18 UTC

[royale-asjs] branch develop updated: More stubs added to spark

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


The following commit(s) were added to refs/heads/develop by this push:
     new ccebc5f  More stubs added to spark
     new b33ab7a  Merge branch 'develop' of https://github.com/apache/royale-asjs into develop
ccebc5f is described below

commit ccebc5fbfe6943be493e4dd77e37c823f961eeb0
Author: Yishay Weiss <yi...@yell.com>
AuthorDate: Sun Oct 4 15:59:48 2020 +0100

    More stubs added to spark
---
 .../MXRoyale/src/main/royale/mx/core/UIComponent.as       | 15 +++++++++++++++
 .../MXRoyale/src/main/royale/mx/effects/Effect.as         |  5 +++++
 .../src/main/royale/mx/graphics/SolidColorStroke.as       |  2 ++
 .../SparkRoyale/src/main/royale/spark/components/Label.as |  6 ++++++
 .../src/main/royale/spark/components/Scroller.as          |  2 +-
 .../main/royale/spark/components/supportClasses/Skin.as   |  4 ++--
 .../SparkRoyale/src/main/royale/spark/effects/Animate.as  |  2 ++
 7 files changed, 33 insertions(+), 3 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
index f1734c2..852951b 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
@@ -262,6 +262,21 @@ import org.apache.royale.utils.ClassSelectorList;
 [Event(name="valueCommit", type="mx.events.FlexEvent")]
 
 
+/**
+ *  Dispatched after the <code>currentState</code> property changes,
+ *  but before the view state changes.
+ * 
+ *  <p>This event is only dispatched when there are one or more 
+ *  relevant listeners attached to the dispatching object.</p>
+ *
+ *  @eventType mx.events.StateChangeEvent.CURRENT_STATE_CHANGING
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Event(name="currentStateChange", type="org.apache.royale.events.ValueChangeEvent")]
 
 [Event(name="focusOut", type="mx.events.FocusEvent")]
 
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/effects/Effect.as b/frameworks/projects/MXRoyale/src/main/royale/mx/effects/Effect.as
index f016bdf..cd07ddb 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/effects/Effect.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/effects/Effect.as
@@ -94,6 +94,11 @@ public class Effect extends org.apache.royale.effects.Effect
 	        super.duration = value;
 	  } 
 
+	// not implemented
+	public function set target(value:Object):void {}
+
+
+
   
     /**
      *  @copy mx.effects.IEffect#getAffectedProperties()
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/graphics/SolidColorStroke.as b/frameworks/projects/MXRoyale/src/main/royale/mx/graphics/SolidColorStroke.as
index b4a4d5c..817def1 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/graphics/SolidColorStroke.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/graphics/SolidColorStroke.as
@@ -48,6 +48,8 @@ package mx.graphics
     {
         _weight = value;
     }
+	// not implemented
+	public function set pixelHinting(value:Boolean):void {}
 
 	private var _color:Number;
 
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Label.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Label.as
index 42686c5..c1a8058 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Label.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Label.as
@@ -410,6 +410,12 @@ public class Label extends TextBase
     }
 	
 	
+    public function set lineBreak(value:Object):void
+    {
+        if (GOOG::DEBUG)
+            trace("lineBreak not implemented");
+    }
+	
     public function set baselineShift(value:Object):void
     {
         if (GOOG::DEBUG)
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Scroller.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Scroller.as
index 819b4db..a88f3f8 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Scroller.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Scroller.as
@@ -622,7 +622,7 @@ public class Scroller extends SkinnableComponent
         return _pullEnabled;    
     } */
 
-	public function verticalScrollPolicy(value:String):void
+	public function set verticalScrollPolicy(value:String):void
 	{
 		// not implemented
 	}
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/Skin.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/Skin.as
index b413213..55b5af1 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/Skin.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/Skin.as
@@ -89,9 +89,9 @@ public class Skin extends Group //implements IHighlightBitmapCaptureClient
         super();
     }
 	
-    public function set addedEffect(value:IEffect):void {} // not implemented
+    public function set addedEffect(value:Object):void {} // not implemented
 
-    public function set removedEffect(value:IEffect):void {} // not implemented
+    public function set removedEffect(value:Object):void {} // not implemented
 
 
 }
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/effects/Animate.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/effects/Animate.as
index ee7b62f..7a816e9 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/effects/Animate.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/effects/Animate.as
@@ -70,6 +70,8 @@ use namespace mx_internal;
  *  @productversion Flex 4
  */
 [Event(name="effectRepeat", type="mx.events.EffectEvent")]
+//not implemented
+[Event(name="effectEnd", type="mx.events.EffectEvent")]
 
 
 /**