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/01 16:12:43 UTC

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

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 6c71308  More stubs added to emulation components
6c71308 is described below

commit 6c713085b0b1361ca3dc828f0e49fbfde552008a
Author: Yishay Weiss <yi...@yell.com>
AuthorDate: Thu Oct 1 17:12:23 2020 +0100

    More stubs added to emulation components
---
 .../src/main/royale/mx/graphics/LinearGradient.as  |  2 ++
 .../src/main/royale/spark/components/Group.as      |  5 ++++
 .../src/main/royale/spark/components/Image.as      | 19 ++++++--------
 .../src/main/royale/spark/components/Label.as      |  6 +++++
 .../src/main/royale/spark/components/List.as       | 28 +++++++++++++++++---
 .../royale/spark/components/RichEditableText.as    |  8 ++++--
 .../src/main/royale/spark/components/RichText.as   |  4 +++
 .../src/main/royale/spark/components/Scroller.as   |  7 ++++-
 .../components/supportClasses/ItemRenderer.as      | 30 +++++++++++-----------
 .../royale/spark/components/supportClasses/Skin.as |  6 +++++
 .../src/main/royale/spark/effects/Fade.as          |  3 +++
 .../src/main/royale/spark/effects/Resize.as        |  5 ++++
 .../main/royale/spark/primitives/BitmapImage.as    |  1 +
 .../src/main/royale/spark/primitives/Line.as       | 21 +++++++++++++++
 .../src/main/royale/spark/primitives/Rect.as       | 12 ++++-----
 15 files changed, 118 insertions(+), 39 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/graphics/LinearGradient.as b/frameworks/projects/MXRoyale/src/main/royale/mx/graphics/LinearGradient.as
index b6e5ddd..c2bc080 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/graphics/LinearGradient.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/graphics/LinearGradient.as
@@ -68,6 +68,8 @@ public class LinearGradient implements IFill
         _entries = value;
     }
 
+    public function set interpolationMethod(value:String):void {}
+
 }
 
 }
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Group.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Group.as
index 34610f2..2d6a537 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Group.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Group.as
@@ -274,6 +274,11 @@ public class Group extends GroupBase /*implements IVisualElementContainer,
         }*/
         super.width = value;
     }
+   
+    public function set mouseEnabledWhereTransparent(value:Boolean):void
+    {
+	// not implemented
+    }
     /**
      *  @private
      */
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Image.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Image.as
index f0ce8ed..0bb9c5b 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Image.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Image.as
@@ -768,20 +768,17 @@ public class Image extends SkinnableComponent implements IImage
     }
      */
     
-    /**
-     *  @private
     public function set fillMode(value:String):void
     {
-        if (imageDisplay)
-        {
-            imageDisplay.fillMode = value;
-            imageDisplayProperties = BitFlagUtil.update(imageDisplayProperties as uint, 
-                FILL_MODE_PROPERTY_FLAG, true);
-        }
-        else
-            imageDisplayProperties.fillMode = value;
+        //if (imageDisplay)
+        //{
+            //imageDisplay.fillMode = value;
+            //imageDisplayProperties = BitFlagUtil.update(imageDisplayProperties as uint, 
+                //FILL_MODE_PROPERTY_FLAG, true);
+        //}
+        //else
+            //imageDisplayProperties.fillMode = value;
     }
-     */
 
     //----------------------------------
     //  horizontalAlign
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 f1faad0..42686c5 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 baselineShift(value:Object):void
+    {
+        if (GOOG::DEBUG)
+            trace("baselineShift not implemented");
+    }
+	
 	
     public function get digitWidth():String
     {
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/List.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/List.as
index 6a95840..d911d12 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/List.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/List.as
@@ -72,7 +72,6 @@ use namespace mx_internal;
  *  @productversion Flex 4
  */
 //[Style(name="alternatingItemColors", type="Array", arrayType="uint", format="Color", inherit="yes", theme="spark, mobile")]
-
 /**
  *  The alpha of the border for this component.
  *
@@ -96,7 +95,6 @@ use namespace mx_internal;
  *  @productversion Flex 4
  */
 //[Style(name="borderColor", type="uint", format="Color", inherit="no", theme="spark, mobile")]
-
 /**
  *  Controls the visibility of the border for this component.
  *
@@ -229,7 +227,6 @@ use namespace mx_internal;
  *  @productversion Flex 4
  */
 //[Style(name="rollOverColor", type="uint", format="Color", inherit="yes", theme="spark")]
-
 /**
  *  The color of the background of a renderer when the user selects it.
  *
@@ -243,7 +240,6 @@ use namespace mx_internal;
  *  @productversion Flex 4
  */
 //[Style(name="selectionColor", type="uint", format="Color", inherit="yes", theme="spark, mobile")]
-
 /**
  *  @copy spark.components.supportClasses.GroupBase#style:symbolColor
  *   
@@ -546,6 +542,30 @@ public class List extends ListBase implements IFocusManagerComponent
     //
     //--------------------------------------------------------------------------
 
+	public function set selectionColor(value:uint):void
+	{
+		// not implemented
+	}
+
+	public function set rollOverColor(value:uint):void
+	{
+		// not implemented
+	}
+
+	public function set borderColor(value:uint):void
+	{
+		// not implemented
+	}
+
+	public function set alternatingItemColors(value:Array):void
+	{
+		// not implemented
+	}
+
+    public function set itemRendererFunction(value:Function):void
+    {
+	// not implemented
+    }
     //----------------------------------
     //  hasFocusableChildren
     //----------------------------------
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/RichEditableText.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/RichEditableText.as
index bdbe02a..31ee3ec 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/RichEditableText.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/RichEditableText.as
@@ -310,7 +310,6 @@ package spark.components
      *  <p>At compile time, you can put TLF markup tags inside
      *  the RichEditableText tag, as the following example shows:
      *  <pre>
-     *  &lt;s:RichEditableText&gt;Hello &lt;s:span fontWeight="bold"&gt;World!&lt;/s:span&gt;&lt;/s:RichEditableText&gt;
      *  </pre>
      *  In this case, the MXML compiler sets the <code>content</code>
      *  property, causing a TextFlow to be automatically created
@@ -885,7 +884,7 @@ package spark.components
          *  @private
          */
         /* override public function get baselinePosition():Number
-        {
+        {c
             return getStyle("paddingTop") + ascent;
         } */
         
@@ -961,6 +960,9 @@ package spark.components
             // This class does not support truncation
             return false;
         }
+	
+	public function set verticalAlign(value:String):void {}
+
                
         //----------------------------------
         // percentHeight
@@ -3925,6 +3927,8 @@ package spark.components
             
             return true;            
         }
+
+	public function set fontLookup(value:String):void {} // not implemented
         
         /**
          *  @private
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/RichText.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/RichText.as
index 21974ab..572d3c6 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/RichText.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/RichText.as
@@ -694,6 +694,10 @@ public class RichText extends TextBase implements IStyleClient
         invalidateDisplayList();
     }
          */
+    /**
+     *  @private
+    */
+    public function set verticalAlign(value:String):void {}
 
     //----------------------------------
     //  maskType
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 a98c114..819b4db 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Scroller.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Scroller.as
@@ -295,7 +295,6 @@ include "../styles/metadata/SelectionFormatTextStyles.as"
      */ 
 //[Style(name="verticalScrollPolicy", type="String", inherit="no", enumeration="off,on,auto")]
 
-
 //--------------------------------------
 //  Other metadata
 //--------------------------------------
@@ -622,6 +621,12 @@ public class Scroller extends SkinnableComponent
     {
         return _pullEnabled;    
     } */
+
+	public function verticalScrollPolicy(value:String):void
+	{
+		// not implemented
+	}
+
     
     /**
      *  @private
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ItemRenderer.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ItemRenderer.as
index a42b436..e2d1f99 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ItemRenderer.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ItemRenderer.as
@@ -159,7 +159,7 @@ public class ItemRenderer extends DataRenderer implements IItemRenderer
      *  @private
      *  storage for the autoDrawBackground property 
      */ 
-   // private var _autoDrawBackground:Boolean = true;
+    private var _autoDrawBackground:Boolean = true;
     
     /**
      *  Specifies whether the item renderer draws the 
@@ -185,27 +185,27 @@ public class ItemRenderer extends DataRenderer implements IItemRenderer
      *  @playerversion AIR 1.5
      *  @productversion Royale 0.9.4
      */
-    /* public function get autoDrawBackground():Boolean
+    public function get autoDrawBackground():Boolean
     {
         return _autoDrawBackground;
-    } */
+    }
     
     /**
      *  @private
      */
-    /* public function set autoDrawBackground(value:Boolean):void
+    public function set autoDrawBackground(value:Boolean):void
     {
-        if (_autoDrawBackground == value)
-            return;
-        
-        _autoDrawBackground = value;
-        
-        if (_autoDrawBackground)
-        {
-            redrawRequested = true;
-            super.$invalidateDisplayList();
-        }
-    } */
+        //if (_autoDrawBackground == value)
+            //return;
+        //
+        //_autoDrawBackground = value;
+        //
+        //if (_autoDrawBackground)
+        //{
+            //redrawRequested = true;
+            //super.$invalidateDisplayList();
+        //}
+    }
     
     //----------------------------------
     //  down
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 d9a53ce..b413213 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
@@ -20,6 +20,7 @@
 package spark.components.supportClasses
 {   
 import mx.core.UIComponent;
+import mx.effects.IEffect;
 import spark.components.Group;
 
 /*    
@@ -87,6 +88,11 @@ public class Skin extends Group //implements IHighlightBitmapCaptureClient
     {
         super();
     }
+	
+    public function set addedEffect(value:IEffect):void {} // not implemented
+
+    public function set removedEffect(value:IEffect):void {} // not implemented
+
 
 }
 
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/effects/Fade.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/effects/Fade.as
index 4bd609d..fc6ba7e 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/effects/Fade.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/effects/Fade.as
@@ -22,7 +22,10 @@ package spark.effects
 import mx.effects.Fade;
 
 
+// not implemented
+[Event(name="effectUpdate", type="mx.events.EffectEvent")]
 public class Fade extends mx.effects.Fade
 {
+	
 }
 }
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/effects/Resize.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/effects/Resize.as
index d7ed7c6..46c5267 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/effects/Resize.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/effects/Resize.as
@@ -25,6 +25,11 @@ import spark.effects.supportClasses.ResizeInstance;
 
 use namespace mx_internal;
 
+//not implemented
+[Event(name="effectEnd", type="mx.events.EffectEvent")]
+
+//not implemented
+[Event(name="effectUpdate", type="mx.events.EffectEvent")]
 /**
  *  The Resize effect changes the width, height, or both dimensions
  *  of a component over a specified time interval. 
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/primitives/BitmapImage.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/primitives/BitmapImage.as
index 2013f26..a85b6f7 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/primitives/BitmapImage.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/primitives/BitmapImage.as
@@ -23,5 +23,6 @@ package spark.primitives
 
 	public class BitmapImage extends Image
 	{
+		public function fillMode(value:String):void {}
 	}
 }
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/primitives/Line.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/primitives/Line.as
index 0d30dbe..e54f5f1 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/primitives/Line.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/primitives/Line.as
@@ -80,6 +80,27 @@ public class Line extends UIBase
     //
     //--------------------------------------------------------------------------
     
+
+	public function set left(value:Object):void
+	{
+		// not implemented
+	}
+
+	public function set right(value:Object):void
+	{
+		// not implemented
+	}
+
+	public function set rotation(value:Number):void
+	{
+		// not implemented
+	}
+
+	public function set top(value:Object):void
+	{
+		// not implemented
+	}
+
     //----------------------------------
     //  xFrom
     //----------------------------------
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/primitives/Rect.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/primitives/Rect.as
index c6f2aea..b441ad8 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/primitives/Rect.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/primitives/Rect.as
@@ -200,7 +200,7 @@ public class Rect extends UIComponent
     //  bottomRightRadiusY
     //----------------------------------
     
-    /* private var _bottomRightRadiusY:Number;
+    private var _bottomRightRadiusY:Number;
     
     [Inspectable(category="General", minValue="0.0")] */
     
@@ -214,7 +214,7 @@ public class Rect extends UIComponent
      *  @playerversion AIR 1.5
      *  @productversion Royale 0.9.4
      */
-    /* public function get bottomRightRadiusY():Number 
+    public function get bottomRightRadiusY():Number 
     {
         return _bottomRightRadiusY;
     }
@@ -225,11 +225,11 @@ public class Rect extends UIComponent
         {
             _bottomRightRadiusY = value;
             
-            invalidateSize();
-            invalidateDisplayList();
-            invalidateParentSizeAndDisplayList();
+            //invalidateSize();
+            //invalidateDisplayList();
+            //invalidateParentSizeAndDisplayList();
         }
-    } */
+    }
             
     //----------------------------------
     //  radiusX