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 13:01:50 UTC

[royale-asjs] branch develop updated: Faking some skin parts in SparkRoyale

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 efef327  Faking some skin parts in SparkRoyale
efef327 is described below

commit efef3272c051a89da3e673b2d8e43b0967f5ffb2
Author: Yishay Weiss <yi...@yell.com>
AuthorDate: Tue Oct 6 14:01:30 2020 +0100

    Faking some skin parts in SparkRoyale
---
 .../MXRoyale/src/main/royale/mx/net/FileReference.as      |  4 ++++
 .../src/main/royale/spark/components/DropDownList.as      | 15 ++++++++++++++-
 .../royale/spark/components/supportClasses/ButtonBase.as  | 14 +++++++++++++-
 .../spark/components/supportClasses/ItemRenderer.as       |  3 +++
 4 files changed, 34 insertions(+), 2 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/net/FileReference.as b/frameworks/projects/MXRoyale/src/main/royale/mx/net/FileReference.as
index 2ef9931..bdb1613 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/net/FileReference.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/net/FileReference.as
@@ -111,6 +111,10 @@ package mx.net
 	  {
 		  _uploader.upload(request.url);
 	  }
+
+	// not implemented
+	  public function download(request:URLRequest, defaultFileName:String = null):void {}
+	 
 	  
 	  private function modelChangedHandler(event:Event):void
 	  {
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/DropDownList.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/DropDownList.as
index f17a8bd..fd18ee1 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/DropDownList.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/DropDownList.as
@@ -33,6 +33,8 @@ import spark.utils.LabelUtil;
  */
  import spark.components.supportClasses.DropDownListBase;
  import spark.components.beads.DropDownListView;
+ import spark.components.beads.DropDownListView;
+ import spark.components.Label;
 
 
 //--------------------------------------
@@ -154,6 +156,17 @@ public class DropDownList extends DropDownListBase
 
    // [SkinPart(required="false")]
 
+    private var _labelDisplay:Label;
+    
+    // not implemeted
+    public function get labelDisplay():Label
+    {
+	if (!_labelDisplay)
+	{
+		_labelDisplay = new Label();
+	}
+	return _labelDisplay;
+    }	
     /**
      *  An optional skin part that holds the prompt or the text of the selected item. 
      *  
@@ -411,4 +424,4 @@ public class DropDownList extends DropDownListBase
         return mh;
     }
 }
-}
\ No newline at end of file
+}
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ButtonBase.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ButtonBase.as
index 51407f5..a7b5fdb 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ButtonBase.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ButtonBase.as
@@ -47,6 +47,7 @@ import spark.primitives.BitmapImage;
 
 use namespace mx_internal;
 */
+import spark.components.Label;
 import org.apache.royale.core.ITextModel;
 import org.apache.royale.events.Event;
 import org.apache.royale.events.IEventDispatcher;
@@ -427,7 +428,18 @@ public class ButtonBase extends SkinnableComponent implements IFocusManagerCompo
     {
         return ITextModel(model).text;
     }
-	
+
+    private var _labelDisplay:Label;
+    
+    // not implemeted
+    public function get labelDisplay():Label
+    {
+	if (!_labelDisplay)
+	{
+		_labelDisplay = new Label();
+	}
+	return _labelDisplay;
+    }	
 	
     /**
      * @royaleignorecoercion HTMLImageElement
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 e2d1f99..14329b2 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
@@ -608,6 +608,9 @@ public class ItemRenderer extends DataRenderer implements IItemRenderer
             invalidateRendererState();
         }
     } */
+    
+    // not implemented
+    public function set label(value:String):void {}
 
     //----------------------------------
     //  label