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/27 10:58:42 UTC

[royale-asjs] branch develop updated (e4cbd2f -> d2a7371)

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 e4cbd2f  jewel-combobox: popup need to get the values from combo PM (rowHeight, variableRowHeight and align)
     new a816674  Adding stub event handler
     new 798f6fa  Adding some extra events and other emulation stubs
     new d2a7371  Merge branch 'develop' of https://github.com/apache/royale-asjs into develop

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:
 .../MXRoyale/src/main/royale/mx/states/State.as    | 25 ++++++++++
 .../src/main/royale/spark/components/Image.as      | 34 ++++++-------
 .../main/royale/spark/components/TitleWindow.as    | 56 +++++++++++-----------
 .../components/supportClasses/DropDownListBase.as  | 10 ++--
 4 files changed, 76 insertions(+), 49 deletions(-)


[royale-asjs] 02/03: Adding some extra events and other emulation stubs

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 798f6fad41d88c5798247b0ee31a97fbf371fceb
Author: Yishay Weiss <yi...@hotmail.com>
AuthorDate: Tue Oct 27 10:57:59 2020 +0000

    Adding some extra events and other emulation stubs
---
 .../MXRoyale/src/main/royale/mx/states/State.as    | 25 ++++++++++++++++
 .../src/main/royale/spark/components/Image.as      | 34 ++++++++++++----------
 .../components/supportClasses/DropDownListBase.as  | 10 +++----
 3 files changed, 48 insertions(+), 21 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/states/State.as b/frameworks/projects/MXRoyale/src/main/royale/mx/states/State.as
index b63734d..78214ae 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/states/State.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/states/State.as
@@ -41,6 +41,31 @@ use namespace mx_internal;
 [Event(name="exitState", type="mx.events.FlexEvent")]
 
 /**
+ *  Dispatched after a view state has been entered.
+ *
+ *  @eventType mx.events.FlexEvent.ENTER_STATE
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Event(name="enterState", type="mx.events.FlexEvent")] // not implemented
+
+/**
+ *  Dispatched just before a view state is exited.
+ *  This event is dispatched before the changes
+ *  to the default view state have been removed.
+ *
+ *  @eventType mx.events.FlexEvent.EXIT_STATE
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Event(name="exitState", type="mx.events.FlexEvent")] // not implemented
+/**
  *  The State class defines a view state, a particular view of a component.
  *  For example, a product thumbnail could have two view states;
  *  a base view state with minimal information, and a rich view state with
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 0bb9c5b..1c2b6a1 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Image.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Image.as
@@ -794,29 +794,31 @@ public class Image extends SkinnableComponent implements IImage
      *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
-    public function get horizontalAlign():String
+     **/
+    public function get horizontalAlign():String // not implemented
     {
-        if (imageDisplay)
-            return imageDisplay.horizontalAlign;
-        else
-            return imageDisplayProperties.horizontalAlign;
+        //if (imageDisplay)
+            //return imageDisplay.horizontalAlign;
+        //else
+            //return imageDisplayProperties.horizontalAlign;
+	    return "center";
     }
-     */
     
     /**
      *  @private
-    public function set horizontalAlign(value:String):void
+     */
+    public function set horizontalAlign(value:String):void // not implemented
     {
-        if (imageDisplay)
-        {
-            imageDisplay.horizontalAlign = value;
-            imageDisplayProperties = BitFlagUtil.update(imageDisplayProperties as uint, 
-                HORIZONTAL_ALIGN_PROPERTY_FLAG, value != null);
-        }
-        else
-            imageDisplayProperties.horizontalAlign = value;
+        //if (imageDisplay)
+        //{
+            //imageDisplay.horizontalAlign = value;
+            //imageDisplayProperties = BitFlagUtil.update(imageDisplayProperties as uint, 
+                //HORIZONTAL_ALIGN_PROPERTY_FLAG, value != null);
+        //}
+        //else
+            //imageDisplayProperties.horizontalAlign = value;
     }
-     */
+     
     
     //----------------------------------
     //  preliminaryHeight
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 1d632cc..288d5d8 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
@@ -512,13 +512,13 @@ public class DropDownListBase extends List
      *  @playerversion AIR 1.5
      *  @productversion Royale 0.9.4
      */
-    /* public function get isDropDownOpen():Boolean
+    public function get isDropDownOpen():Boolean // not implemented
     {
-        if (dropDownController)
-            return dropDownController.isOpen;
-        else
+        //if (dropDownController)
+            //return dropDownController.isOpen;
+        //else
             return false;
-    } */
+    }
         
 	//----------------------------------
 	//  closeDropDownOnResize


[royale-asjs] 03/03: Merge branch 'develop' of https://github.com/apache/royale-asjs into develop

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 d2a7371a30e63b0511c21ce4877472ef3af36bd0
Merge: 798f6fa e4cbd2f
Author: Yishay Weiss <yi...@hotmail.com>
AuthorDate: Tue Oct 27 10:58:11 2020 +0000

    Merge branch 'develop' of https://github.com/apache/royale-asjs into develop

 .../Jewel/src/main/royale/org/apache/royale/jewel/List.as |  6 ++++++
 .../beads/itemRenderers/ListItemRendererInitializer.as    | 15 +++++++++++++--
 .../apache/royale/jewel/beads/views/ComboBoxPopUpView.as  |  7 ++++++-
 3 files changed, 25 insertions(+), 3 deletions(-)


[royale-asjs] 01/03: Adding stub event handler

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 a8166742b9b3983fbeb43b18f808e8566e112963
Author: Yishay Weiss <yi...@hotmail.com>
AuthorDate: Mon Oct 26 20:07:21 2020 +0000

    Adding stub event handler
---
 .../main/royale/spark/components/TitleWindow.as    | 56 +++++++++++-----------
 1 file changed, 28 insertions(+), 28 deletions(-)

diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TitleWindow.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TitleWindow.as
index fb435d3..9781b86 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TitleWindow.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TitleWindow.as
@@ -596,35 +596,35 @@ public class TitleWindow extends Panel
      *  @playerversion AIR 1.5
      *  @productversion Royale 0.9.4
      */
-    /* protected function moveArea_mouseUpHandler(event:Event):void
+    protected function moveArea_mouseUpHandler(event:Event):void // not implemented
     {
-        var sbRoot:DisplayObject = systemManager.getSandboxRoot();
-        
-        sbRoot.removeEventListener(
-            MouseEvent.MOUSE_MOVE, moveArea_mouseMoveHandler, true);
-        sbRoot.removeEventListener(
-            MouseEvent.MOUSE_UP, moveArea_mouseUpHandler, true);
-        sbRoot.removeEventListener(
-            SandboxMouseEvent.MOUSE_UP_SOMEWHERE, moveArea_mouseUpHandler);
-        
-        systemManager.deployMouseShields(false);
-        
-        // Check to see that a move actually occurred and that the
-        // user did not just click on the moveArea
-        if (startBounds)
-        {
-            // Dispatch "windowMoveEnd" event with the starting bounds and current bounds.
-            var endEvent:TitleWindowBoundsEvent =
-                new TitleWindowBoundsEvent(TitleWindowBoundsEvent.WINDOW_MOVE_END,
-                                           false, false, startBounds,
-                                           new Rectangle(x, y, width, height));
-            dispatchEvent(endEvent);
-            startBounds = null;
-        }
-        
-        offsetX = NaN;
-        offsetY = NaN;
-    } */
+        //var sbRoot:DisplayObject = systemManager.getSandboxRoot();
+        //
+        //sbRoot.removeEventListener(
+            //MouseEvent.MOUSE_MOVE, moveArea_mouseMoveHandler, true);
+        //sbRoot.removeEventListener(
+            //MouseEvent.MOUSE_UP, moveArea_mouseUpHandler, true);
+        //sbRoot.removeEventListener(
+            //SandboxMouseEvent.MOUSE_UP_SOMEWHERE, moveArea_mouseUpHandler);
+        //
+        //systemManager.deployMouseShields(false);
+        //
+        //// Check to see that a move actually occurred and that the
+        //// user did not just click on the moveArea
+        //if (startBounds)
+        //{
+            //// Dispatch "windowMoveEnd" event with the starting bounds and current bounds.
+            //var endEvent:TitleWindowBoundsEvent =
+                //new TitleWindowBoundsEvent(TitleWindowBoundsEvent.WINDOW_MOVE_END,
+                                           //false, false, startBounds,
+                                           //new Rectangle(x, y, width, height));
+            //dispatchEvent(endEvent);
+            //startBounds = null;
+        //}
+        //
+        //offsetX = NaN;
+        //offsetY = NaN;
+    }
 
     //----------------------------------
     //  Active Window Handlers and helper methods