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

alinakazi 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 b4f73af  new methods and properties added to mx and spark emulation 
components
b4f73af is described below

commit b4f73af9f24714277176712bfe56b8a336e862ff
Author: alinakazi <alinakazi1...@gmail.com>
AuthorDate: Mon Mar 1 16:01:28 2021 +0500

    new methods and properties added to mx and spark emulation components
---
 .../MXRoyale/src/main/royale/mx/controls/PopUpButton.as | 12 ++++++++++--
 .../MXRoyale/src/main/royale/mx/core/Container.as       | 12 ++++++++++++
 .../main/royale/mx/printing/FlexPrintJobScaleType.as    |  9 ++++-----
 .../src/main/royale/spark/components/Application.as     | 17 +++++++++++------
 4 files changed, 37 insertions(+), 13 deletions(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/PopUpButton.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/PopUpButton.as
index c5075c0..96559cc 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/PopUpButton.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/PopUpButton.as
@@ -173,9 +173,17 @@ public class PopUpButton extends Button
      *  @private
      *  Greater of the arrowButtonWidth style and the icon's width.
      */
-    private var arrowButtonsWidth:Number = 0;
+    private var _arrowButtonWidth:Number = 0;
        
-
+       public function get arrowButtonWidth():Number
+       {
+                       return _arrowButtonWidth;
+       }
+       
+       public function set arrowButtonWidth(value:Number):void
+       {
+                       _arrowButtonWidth = value;
+       }
     /**
      *  @private
      *  Is the popUp list currently shown?
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
index 04f8088..6ddbfc8 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
@@ -219,6 +219,18 @@ use namespace mx_internal;
 [Style(name="backgroundAlpha", type="Number", inherit="no")]
 
 [Style(name="contentBackgroundAlpha", type="Number", inherit="yes")]
+
+/**
+ *  The alpha value for the overlay that is placed on top of the
+ *  container when it is disabled.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="disabledOverlayAlpha", type="Number", inherit="no")]
+
 /**
  * The default property uses when additional MXML content appears within an 
element's
  * definition in an MXML file.
diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/printing/FlexPrintJobScaleType.as
 
b/frameworks/projects/MXRoyale/src/main/royale/mx/printing/FlexPrintJobScaleType.as
index 4131938..b0ce3c5 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/printing/FlexPrintJobScaleType.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/printing/FlexPrintJobScaleType.as
@@ -51,7 +51,7 @@ public final class FlexPrintJobScaleType
         *  @playerversion AIR 1.1
         *  @productversion Royale 0.9.3
         */
-       //public static const FILL_PAGE:String = "fillPage";
+       public static const FILL_PAGE:String = "fillPage";
        
        /**
         *  Scales the object to fill the available page height. 
@@ -63,7 +63,7 @@ public final class FlexPrintJobScaleType
         *  @playerversion AIR 1.1
         *  @productversion Royale 0.9.3
         */
-       //public static const MATCH_HEIGHT:String = "matchHeight";
+       public static const MATCH_HEIGHT:String = "matchHeight";
 
        /**
         *  Scales the object to fill the available page width. 
@@ -75,7 +75,7 @@ public final class FlexPrintJobScaleType
         *  @playerversion AIR 1.1
         *  @productversion Royale 0.9.3
         */
-       //public static const MATCH_WIDTH:String = "matchWidth";
+       public static const MATCH_WIDTH:String = "matchWidth";
        
        /**
         *  Does not scale the output. 
@@ -88,7 +88,7 @@ public final class FlexPrintJobScaleType
         *  @playerversion AIR 1.1
         *  @productversion Royale 0.9.3
         */
-       //public static const NONE:String = "none";
+       public static const NONE:String = "none";
 
        /**
         *  Scales the object to fit on a single page, filling one dimension; 
@@ -101,7 +101,6 @@ public final class FlexPrintJobScaleType
         *  @productversion Royale 0.9.3
         */
        public static const SHOW_ALL:String = "showAll";
-       public static const MATCH_WIDTH:String = "matchWidth";
 }
 
 }
diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Application.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Application.as
index bf7510d..90dd0b9 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Application.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Application.as
@@ -696,16 +696,19 @@ public class Application extends SkinnableContainer 
implements IStrand, IParent,
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    /* public function get controlBarVisible():Boolean
+     public function get controlBarVisible():Boolean
     {
-        return (controlBarGroup)
+        /*return (controlBarGroup)
             ? controlBarGroup.visible
-            : controlBarGroupProperties.visible;
+            : controlBarGroupProperties.visible;*/
+               trace("Application::controlBarVisible not implemented")
+               
+               return true;
     } 
 
     public function set controlBarVisible(value:Boolean):void
     {
-        if (controlBarGroup)
+       /* if (controlBarGroup)
         {
             controlBarGroup.visible = value;
             controlBarGroupProperties = 
BitFlagUtil.update(controlBarGroupProperties as uint,
@@ -716,8 +719,10 @@ public class Application extends SkinnableContainer 
implements IStrand, IParent,
 
         invalidateSkinState();
         if (skin)
-            skin.invalidateSize();
-    }*/
+            skin.invalidateSize(); */
+               trace("Application::controlBarVisible not implemented")
+
+    }
 
     
//--------------------------------------------------------------------------
     //

Reply via email to