You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pu...@apache.org on 2021/09/15 17:52:27 UTC

[royale-asjs] branch develop updated: Changes in files

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

pushminakazi 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 d6eaf0a  Changes in files
d6eaf0a is described below

commit d6eaf0ad1e2a621d27ec8fbde52a5097d7f49498
Author: pashminakazi <pa...@gmail.com>
AuthorDate: Wed Sep 15 10:52:17 2021 -0700

    Changes in files
---
 .../MXRoyale/src/main/resources/defaults.css       |   4 +-
 .../MXRoyale/src/main/royale/MXRoyaleClasses.as    |   2 +
 .../src/main/royale/mx/containers/Panel.as         |  26 ++
 .../royale/mx/containers/utilityClasses/Layout.as  | 127 ++++++
 .../src/main/royale/mx/core/LayoutContainer.as     | 491 +++++++++++++++++++++
 .../src/main/royale/mx/dummy/ContextMenuItem.as    |  16 +
 .../src/main/royale/mx/effects/IEffectInstance.as  |   6 +-
 .../src/main/royale/mx/managers/ISystemManager.as  |   7 +
 .../src/main/royale/mx/managers/PopUpManager.as    |   6 +
 .../src/main/royale/mx/managers/SystemManager.as   |  14 +
 .../MXRoyale/src/main/royale/mx/system/System.as   |   9 +
 .../apache/royale/textLayout/dummy/ContextMenu.as  |   3 +
 .../royale/textLayout/events/ContextMenuEvent.as   |   8 +
 13 files changed, 715 insertions(+), 4 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/resources/defaults.css b/frameworks/projects/MXRoyale/src/main/resources/defaults.css
index c317e89..552ceb4 100644
--- a/frameworks/projects/MXRoyale/src/main/resources/defaults.css
+++ b/frameworks/projects/MXRoyale/src/main/resources/defaults.css
@@ -592,8 +592,10 @@ ToggleButtonBar
 	IDataProviderItemRendererMapper: ClassReference("org.apache.royale.html.beads.TextItemRendererFactoryForArrayData");
 	IItemRendererInitializer: ClassReference("org.apache.royale.html.beads.ListItemRendererInitializer");
 	IItemRendererClassFactory: ClassReference("org.apache.royale.core.SelectableItemRendererClassFactory");
+	/* IItemRenderer: ClassReference("org.apache.royale.html.supportClasses.TextButtonItemRenderer"); */
+	/* ISelectableItemRenderer: ClassReference("org.apache.royale.html.beads.SolidBackgroundSelectableItemRendererBead"); */
 	IItemRenderer: ClassReference("org.apache.royale.html.supportClasses.TextButtonItemRenderer");
-	ISelectableItemRenderer: ClassReference("org.apache.royale.html.beads.SolidBackgroundSelectableItemRendererBead");
+	ISelectableItemRenderer: ClassReference("org.apache.royale.html.beads.TextColorSelectableItemRendererBead");
 	
 	border-style: none;
 }
diff --git a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
index 9fc71cd..e55110c 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
@@ -418,6 +418,8 @@ internal class MXRoyaleClasses
 	import mx.globalization.NationalDigitsType; NationalDigitsType;
 	import mx.globalization.NumberFormatter; NumberFormatter;
 	import mx.globalization.NumberParseResult; NumberParseResult;
+	import mx.core.LayoutContainer; LayoutContainer;
+	import mx.containers.utilityClasses.Layout; Layout;
 }
 
 }
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Panel.as b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Panel.as
index d34fe75..3dcaf6d 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Panel.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Panel.as
@@ -69,6 +69,11 @@ import org.apache.royale.core.IBeadView;
 import org.apache.royale.core.IChild;
 import org.apache.royale.events.Event;
 import org.apache.royale.events.ValueEvent;
+import mx.core.ContainerLayout;
+import mx.core.mx_internal;
+
+
+use namespace mx_internal;
 
 //--------------------------------------
 //  Styles
@@ -1086,6 +1091,27 @@ public class Panel extends Container
     {
         return titleTextField;
     }
+	
+	
+	//----------------------------------
+    //  usePadding
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    mx_internal function get usePadding():Boolean
+    {
+        // We use margins for all layouts except absolute.
+        return layout != ContainerLayout.ABSOLUTE;
+    }
+	
+	 /**
+     *  @private
+     *  A reference to this Panel container's title icon.
+     */
+    mx_internal var titleIconObject:Object = null;
+	
     
 
 
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/utilityClasses/Layout.as b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/utilityClasses/Layout.as
new file mode 100644
index 0000000..427a344
--- /dev/null
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/utilityClasses/Layout.as
@@ -0,0 +1,127 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.containers.utilityClasses
+{
+
+import mx.core.Container;
+import mx.resources.IResourceManager;
+import mx.resources.ResourceManager;
+
+[ExcludeClass]
+
+/**
+ *  @private
+ */
+public class Layout
+{
+	//include "../../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 *  
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public function Layout()
+	{
+		super();
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Variables
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 *  Used for accessing localized error messages.
+	 */
+	protected var resourceManager:IResourceManager =
+									ResourceManager.getInstance();
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  target
+	//----------------------------------
+
+	/**
+	 *  @private
+	 *  Storage for the target property.
+	 */
+	private var _target:Container;
+
+	/**
+	 *  The container associated with this layout.
+	 *  
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public function get target():Container
+	{
+		return _target;
+	}
+	
+	/**
+	 *  @private
+	 */
+	public function set target(value:Container):void
+	{
+		_target = value;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	public function measure():void
+	{
+	}
+
+	/**
+	 *  @private
+	 */
+	public function updateDisplayList(unscaledWidth:Number,
+									  unscaledHeight:Number):void
+	{
+	}
+}
+
+}
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/LayoutContainer.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/LayoutContainer.as
new file mode 100644
index 0000000..558f30f
--- /dev/null
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/LayoutContainer.as
@@ -0,0 +1,491 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+
+import mx.core.UIComponent;
+import mx.events.ErrorEvent;
+import org.apache.royale.events.Event;
+import mx.external.ExternalInterface;
+import org.apache.royale.net.URLRequest;
+import org.apache.royale.net.navigateToURL;
+import mx.system.Capabilities;
+import org.apache.royale.reflection.describeType;
+import flash.utils.setInterval;
+import mx.containers.BoxDirection;
+//import mx.containers.utilityClasses.BoxLayout;
+import mx.containers.beads.BoxLayout;
+import mx.containers.beads.CanvasLayout;
+// import mx.containers.utilityClasses.CanvasLayout;
+import mx.containers.utilityClasses.ConstraintColumn;
+import mx.containers.utilityClasses.ConstraintRow;
+import mx.containers.utilityClasses.IConstraintLayout;
+import mx.containers.utilityClasses.Layout;
+import mx.effects.EffectManager;
+import mx.events.FlexEvent;
+import mx.managers.ISystemManager;
+import mx.managers.LayoutManager;
+import mx.managers.SystemManager;
+import mx.styles.CSSStyleDeclaration;
+import mx.styles.IStyleClient;
+
+use namespace mx_internal;
+
+//--------------------------------------
+//  Styles
+//--------------------------------------
+
+//include "../styles/metadata/AlignStyles.as";
+//include "../styles/metadata/GapStyles.as";
+
+/**
+ *  Number of pixels between the bottom border
+ *  and its content area.  
+ *
+ *  @default 0
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="paddingBottom", type="Number", format="Length", inherit="no")]
+
+/**
+ *  Number of pixels between the top border
+ *  and its content area. 
+ *
+ *  @default 0
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="paddingTop", type="Number", format="Length", inherit="no")]
+
+//--------------------------------------
+//  Excluded APIs
+//--------------------------------------
+
+[Exclude(name="direction", kind="property")]
+[Exclude(name="icon", kind="property")]
+[Exclude(name="label", kind="property")]
+[Exclude(name="tabIndex", kind="property")]
+[Exclude(name="toolTip", kind="property")]
+[Exclude(name="x", kind="property")]
+[Exclude(name="y", kind="property")]
+
+//--------------------------------------
+//  Other metadata
+//--------------------------------------
+
+/**
+ *  Flex defines a default, or Application, container that lets you start
+ *  adding content to your module or Application without explicitly defining
+ *  another container.
+ *  Flex creates this container from the <code>&lt;mx:Application&gt;</code>
+ *  tag, the first tag in an MXML application file, or from the
+ *  <code>&lt;mx:Module&gt;</code> tag, the first tag in an MXML module file.
+ *  While you might find it convenient to use the Application or Module container
+ *  as the only  container in your application, in most cases you explicitly
+ *  define at least one more container before you add any controls
+ *  to your application or module.
+ *
+ *  @mxml
+ *
+ *  <p>The <code>&lt;mx:Application&gt;</code> tag inherits all of the tag 
+ *  attributes of its superclass and adds the following tag attributes:</p>
+ *
+ *  <pre>
+ *  &lt;mx:Application
+ *    <strong>Properties</strong>
+ *    layout="vertical|horizontal|absolute"
+ *    xmlns:<i>No default</i>="<i>No default</i>"
+ * 
+ *    <strong>Styles</strong> 
+ *    horizontalAlign="center|left|right"
+ *    horizontalGap="8"
+ *    paddingBottom="0"
+ *    paddingTop="0"
+ *    verticalAlign="top|bottom|middle"
+ *    verticalGap="6"
+ *  
+ *  /&gt;
+ *  </pre>
+ *
+ *  @see flash.events.EventDispatcher
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public class LayoutContainer extends Container implements IConstraintLayout
+{
+    //include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class variables
+    //
+    //--------------------------------------------------------------------------
+    
+    /**
+     *  @private    
+     */
+    mx_internal static var useProgressiveLayout:Boolean = false;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function LayoutContainer()
+    {
+        super();
+
+        layoutObject.target = this;
+        
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  The mx.containers.utilityClasses.Layout subclass that is doing the layout
+     */
+    //protected var layoutObject:Layout = new BoxLayout();
+    protected var layoutObject:Layout = new Layout();
+
+    /**
+     *  The mx.containers.utilityClasses.Layout subclass that is doing the layout
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    protected var canvasLayoutClass:Class = CanvasLayout;
+
+    /**
+     *  The mx.containers.utilityClasses.Layout subclass that is doing the layout
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    protected var boxLayoutClass:Class = BoxLayout;
+
+    /**
+     *  @private
+     */
+    private var resizeHandlerAdded:Boolean = false;
+
+    /**
+     *  @private
+     *  Placeholder for Preloader object reference.
+     */
+    private var preloadObj:Object;
+
+    /**
+     *  @private
+     *  Used in progressive layout.
+     */
+    private var creationQueue:Array = [];
+
+    /**
+     *  @private
+     *  Used in progressive layout.
+     */
+    private var processingCreationQueue:Boolean = false;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  constraintColumns
+    //----------------------------------
+    
+    /**
+     *  @private
+     *  Storage for the constraintColumns property.
+     */
+    private var _constraintColumns:Array = [];
+
+    [ArrayElementType("mx.containers.utilityClasses.ConstraintColumn")]
+    [Inspectable(arrayType="mx.containers.utilityClasses.ConstraintColumn")]
+       
+    /**
+     *  @copy mx.containers.utilityClasses.IConstraintLayout#constraintColumns
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get constraintColumns():Array
+    {
+        return _constraintColumns;
+    }
+    
+    /**
+     *  @private
+     */
+    public function set constraintColumns(value:Array):void
+    {
+        if (value != _constraintColumns)
+        {
+	    	var n:int = value.length;
+	    	for (var i:int = 0; i < n; i++)
+            {
+                ConstraintColumn(value[i]).container = this;
+            }
+            _constraintColumns = value;
+
+            invalidateSize();
+            invalidateDisplayList();
+        }
+    }
+
+    //----------------------------------
+    //  constraintRows
+    //----------------------------------
+        
+    /**
+     *  @private
+     *  Storage for the constraintRows property.
+     */
+    private var _constraintRows:Array = [];
+ 
+    [ArrayElementType("mx.containers.utilityClasses.ConstraintRow")]
+    [Inspectable(arrayType="mx.containers.utilityClasses.ConstraintRow")]
+       
+    /**
+     *  @copy mx.containers.utilityClasses.IConstraintLayout#constraintRows
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get constraintRows():Array
+    {
+        return _constraintRows;
+    }
+    
+    /**
+     *  @private
+     */
+    public function set constraintRows(value:Array):void
+    {
+        if (value != _constraintRows)
+        {
+	    	var n:int = value.length;
+	    	for (var i:int = 0; i < n; i++)
+            {
+                ConstraintRow(value[i]).container = this;
+            }
+            _constraintRows = value;
+
+            invalidateSize();
+            invalidateDisplayList();
+        }
+    }
+    
+    //----------------------------------
+    //  layout
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for layout property.
+     */
+    private var _layout:String = ContainerLayout.VERTICAL;
+
+    [Bindable("layoutChanged")]
+    [Inspectable(category="General", enumeration="vertical,horizontal,absolute", defaultValue="vertical")]
+
+    /**
+     *  Specifies the layout mechanism used for this application. 
+     *  Applications can use <code>"vertical"</code>, <code>"horizontal"</code>, 
+     *  or <code>"absolute"</code> positioning. 
+     *  Vertical positioning lays out each child component vertically from
+     *  the top of the application to the bottom in the specified order.
+     *  Horizontal positioning lays out each child component horizontally
+     *  from the left of the application to the right in the specified order.
+     *  Absolute positioning does no automatic layout and requires you to
+     *  explicitly define the location of each child component. 
+     *
+     *  @default "vertical"
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get layout():String
+    {
+        return _layout;
+    }
+
+    /**
+     *  @private
+     */
+    public function set layout(value:String):void
+    {
+        if (_layout != value)
+        {
+            _layout = value;
+
+            if (layoutObject)
+                // Set target to null for cleanup.
+                layoutObject.target = null;
+
+            if (_layout == ContainerLayout.ABSOLUTE)
+                layoutObject = new canvasLayoutClass();
+            else
+            {
+                layoutObject = new boxLayoutClass();
+
+                if (_layout == ContainerLayout.VERTICAL)
+                {
+                    BoxLayout(layoutObject).direction =
+                        BoxDirection.VERTICAL;
+                }
+                else
+                {
+                    BoxLayout(layoutObject).direction =
+                        BoxDirection.HORIZONTAL;
+                }
+            }
+
+            if (layoutObject)
+                layoutObject.target = this;
+
+            invalidateSize();
+            invalidateDisplayList();
+
+            dispatchEvent(new Event("layoutChanged"));
+        }
+    }
+
+    //----------------------------------
+    //  usePadding
+    //----------------------------------
+    
+    /**
+     *  @private
+     */
+    mx_internal function get usePadding():Boolean
+    {
+        // We use padding for all layouts except absolute.
+        return layout != ContainerLayout.ABSOLUTE;
+    }
+
+    
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods: UIComponent
+    //
+    //--------------------------------------------------------------------------
+
+    
+    /**
+     *  @private
+     *  Calculates the preferred, mininum and maximum sizes of the
+     *  Application. See the <code>UIComponent.measure()</code> method for more
+     *  information.
+     *  <p>
+     *  The <code>measure()</code> method first calls
+     *  <code>Box.measure()</code> method, then makes sure the
+     *  <code>measuredWidth</code> and <code>measuredMinWidth</code>
+     *  are wide enough to display the application's control bar.
+     */
+    override protected function measure():void
+    {
+        super.measure();
+
+        layoutObject.measure();
+    }
+
+    /**
+     *  @private
+     */
+    override protected function updateDisplayList(unscaledWidth:Number,
+                                                  unscaledHeight:Number):void
+    {
+        super.updateDisplayList(unscaledWidth, unscaledHeight);
+
+        layoutObject.updateDisplayList(unscaledWidth, unscaledHeight);
+
+        // Wait to layout the border after all the children
+        // have been positioned.
+        //createBorder();
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods: Container
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override protected function layoutChrome(unscaledWidth:Number,
+                                             unscaledHeight:Number):void
+    {
+        super.layoutChrome(unscaledWidth, unscaledHeight);
+
+        // When Container.autoLayout is false, updateDisplayList()
+        // is not called, but layoutChrome() is still called.
+        // In that case, we still need to position the border.
+      /*  if (!doingLayout)
+            createBorder(); */
+
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+}
+
+}
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/dummy/ContextMenuItem.as b/frameworks/projects/MXRoyale/src/main/royale/mx/dummy/ContextMenuItem.as
index bd17c78..a63debb 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/dummy/ContextMenuItem.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/dummy/ContextMenuItem.as
@@ -35,6 +35,22 @@ package mx.dummy
 			trace("set caption in ContextMenuItem is not implemented");
 			_caption = value;
 		}
+		
+		public var _enabled:Boolean = false;
+		public function get enabled():Boolean {
+			return _enabled;
+		}
+		public function set enabled(value:Boolean):void {
+			_enabled = value;
+		}
+		
+		public var _separatorBefore:Boolean = false;
+		public function get separatorBefore():Boolean {
+			return _separatorBefore;
+		}
+		public function set separatorBefore(value:Boolean):void {
+			_separatorBefore = value;
+		}
 
     }
 }
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/effects/IEffectInstance.as b/frameworks/projects/MXRoyale/src/main/royale/mx/effects/IEffectInstance.as
index 572d10a..a3b5d77 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/effects/IEffectInstance.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/effects/IEffectInstance.as
@@ -110,13 +110,13 @@ public interface IEffectInstance
      *  @playerversion AIR 1.1
      *  @productversion Royale 0.9.3
      */
-    /* function get effect():IEffect; */
+    function get effect():IEffect;
     
     /**
      *  @private
      */
-/*     function set effect(value:IEffect):void;
- */
+    function set effect(value:IEffect):void;
+ 
     //----------------------------------
     //  effectTargetHost
     //----------------------------------
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/ISystemManager.as b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/ISystemManager.as
index 4327efa..a73d398 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/ISystemManager.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/ISystemManager.as
@@ -23,6 +23,7 @@ package mx.managers
 import org.apache.royale.events.IEventDispatcher;
 import mx.core.IChildList;
 import mx.core.UIComponent;
+import flash.display.Stage;
 /**
  *  An ISystemManager manages an "application window".
  *  Every application that runs on the desktop or in a browser
@@ -103,6 +104,12 @@ public interface ISystemManager extends IEventDispatcher, IChildList /*, IFlexMo
     function get rawChildren():IChildList;
     function get numModalWindows():int;
     function set numModalWindows(value:int):void;
+	COMPILE::SWF {
+		function get stage():Stage;
+	}
+	COMPILE::JS {
+		function get stage():Object;
+	}
  
 	
 	//--------------------------------------------------------------------------
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/PopUpManager.as b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/PopUpManager.as
index b983558..5f3f0da 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/PopUpManager.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/PopUpManager.as
@@ -265,5 +265,11 @@ public class PopUpManager
             }
 		}
     }
+	
+	
+	public static function bringToFront(popUp:IFlexDisplayObject):void
+    {
+		trace("bringToFront in PopUpManager is not implemented");
+    }
 } // class
 } // package
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/SystemManager.as b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/SystemManager.as
index a00c4c5..7dbe3e5 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/SystemManager.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/SystemManager.as
@@ -515,6 +515,20 @@ public class SystemManager extends SystemManagerBase implements ISystemManager,
      *  @private
      *  get the main stage if we're loaded into another swf in the same sandbox
      */
+	
+	COMPILE::JS {
+		public function get stage():Object
+		{ 
+			return null;
+		}
+	}
+	
+	COMPILE::SWF {
+		override public function get stage():Stage
+		{ 
+			return null;
+		}
+	}
     /* override public function get stage():Stage
     {
         if (_stage)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/system/System.as b/frameworks/projects/MXRoyale/src/main/royale/mx/system/System.as
index c50400b..af13401 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/system/System.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/system/System.as
@@ -83,5 +83,14 @@ package mx.system
 		public static function get totalMemory():uint {
 			return 0;
 		}
+		
+		
+		public static var _useCodePage:Boolean = false;
+		public static function get useCodePage():Boolean {
+			return _useCodePage;
+		}
+		public static function set useCodePage(value:Boolean):void {
+			_useCodePage = value;
+		}
 	}
 }
diff --git a/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/dummy/ContextMenu.as b/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/dummy/ContextMenu.as
index 38b2c18..150feb4 100644
--- a/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/dummy/ContextMenu.as
+++ b/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/dummy/ContextMenu.as
@@ -24,5 +24,8 @@ package org.apache.royale.textLayout.dummy {
 		public var customItems:Array = [];
 		public var isSupported:Boolean;
 		public var items:Array;
+		public function hideBuiltInItems():void {
+			trace("hideBuiltInItems in ContextMenu is not implemented");
+		}
 	}
 }
diff --git a/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/events/ContextMenuEvent.as b/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/events/ContextMenuEvent.as
index c8dbc7f..ba7cab0 100644
--- a/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/events/ContextMenuEvent.as
+++ b/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/events/ContextMenuEvent.as
@@ -27,5 +27,13 @@ package org.apache.royale.textLayout.events {
 		public function ContextMenuEvent(type : String, bubbles : Boolean = false, cancelable : Boolean = false) {
 			super(type, bubbles, cancelable);
 		}
+		
+		public var _contextMenuOwner:Object;
+		public function get contextMenuOwner():Object {
+			return _contextMenuOwner;
+		}
+		public function set contextMenuOwner(value:Object):void {
+			_contextMenuOwner = value;
+		}
 	}
 }

Re: [royale-asjs] branch develop updated: Changes in files

Posted by Piotr Zarzycki <pi...@gmail.com>.
Hi Pushmina,

Please describe what kind of changes are you pushing to repository. Above
describtion doesn't say to me too much.

Thanks,
Piotr

śr., 15 wrz 2021 o 19:52 <pu...@apache.org> napisał(a):

> This is an automated email from the ASF dual-hosted git repository.
>
> pushminakazi 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 d6eaf0a  Changes in files
> d6eaf0a is described below
>
> commit d6eaf0ad1e2a621d27ec8fbde52a5097d7f49498
> Author: pashminakazi <pa...@gmail.com>
> AuthorDate: Wed Sep 15 10:52:17 2021 -0700
>
>     Changes in files
> ---
>  .../MXRoyale/src/main/resources/defaults.css       |   4 +-
>  .../MXRoyale/src/main/royale/MXRoyaleClasses.as    |   2 +
>  .../src/main/royale/mx/containers/Panel.as         |  26 ++
>  .../royale/mx/containers/utilityClasses/Layout.as  | 127 ++++++
>  .../src/main/royale/mx/core/LayoutContainer.as     | 491
> +++++++++++++++++++++
>  .../src/main/royale/mx/dummy/ContextMenuItem.as    |  16 +
>  .../src/main/royale/mx/effects/IEffectInstance.as  |   6 +-
>  .../src/main/royale/mx/managers/ISystemManager.as  |   7 +
>  .../src/main/royale/mx/managers/PopUpManager.as    |   6 +
>  .../src/main/royale/mx/managers/SystemManager.as   |  14 +
>  .../MXRoyale/src/main/royale/mx/system/System.as   |   9 +
>  .../apache/royale/textLayout/dummy/ContextMenu.as  |   3 +
>  .../royale/textLayout/events/ContextMenuEvent.as   |   8 +
>  13 files changed, 715 insertions(+), 4 deletions(-)
>
> diff --git a/frameworks/projects/MXRoyale/src/main/resources/defaults.css
> b/frameworks/projects/MXRoyale/src/main/resources/defaults.css
> index c317e89..552ceb4 100644
> --- a/frameworks/projects/MXRoyale/src/main/resources/defaults.css
> +++ b/frameworks/projects/MXRoyale/src/main/resources/defaults.css
> @@ -592,8 +592,10 @@ ToggleButtonBar
>         IDataProviderItemRendererMapper:
> ClassReference("org.apache.royale.html.beads.TextItemRendererFactoryForArrayData");
>         IItemRendererInitializer:
> ClassReference("org.apache.royale.html.beads.ListItemRendererInitializer");
>         IItemRendererClassFactory:
> ClassReference("org.apache.royale.core.SelectableItemRendererClassFactory");
> +       /* IItemRenderer:
> ClassReference("org.apache.royale.html.supportClasses.TextButtonItemRenderer");
> */
> +       /* ISelectableItemRenderer:
> ClassReference("org.apache.royale.html.beads.SolidBackgroundSelectableItemRendererBead");
> */
>         IItemRenderer:
> ClassReference("org.apache.royale.html.supportClasses.TextButtonItemRenderer");
> -       ISelectableItemRenderer:
> ClassReference("org.apache.royale.html.beads.SolidBackgroundSelectableItemRendererBead");
> +       ISelectableItemRenderer:
> ClassReference("org.apache.royale.html.beads.TextColorSelectableItemRendererBead");
>
>         border-style: none;
>  }
> diff --git
> a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
> b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
> index 9fc71cd..e55110c 100644
> --- a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
> +++ b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
> @@ -418,6 +418,8 @@ internal class MXRoyaleClasses
>         import mx.globalization.NationalDigitsType; NationalDigitsType;
>         import mx.globalization.NumberFormatter; NumberFormatter;
>         import mx.globalization.NumberParseResult; NumberParseResult;
> +       import mx.core.LayoutContainer; LayoutContainer;
> +       import mx.containers.utilityClasses.Layout; Layout;
>  }
>
>  }
> diff --git
> a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Panel.as
> b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Panel.as
> index d34fe75..3dcaf6d 100644
> --- a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Panel.as
> +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Panel.as
> @@ -69,6 +69,11 @@ import org.apache.royale.core.IBeadView;
>  import org.apache.royale.core.IChild;
>  import org.apache.royale.events.Event;
>  import org.apache.royale.events.ValueEvent;
> +import mx.core.ContainerLayout;
> +import mx.core.mx_internal;
> +
> +
> +use namespace mx_internal;
>
>  //--------------------------------------
>  //  Styles
> @@ -1086,6 +1091,27 @@ public class Panel extends Container
>      {
>          return titleTextField;
>      }
> +
> +
> +       //----------------------------------
> +    //  usePadding
> +    //----------------------------------
> +
> +    /**
> +     *  @private
> +     */
> +    mx_internal function get usePadding():Boolean
> +    {
> +        // We use margins for all layouts except absolute.
> +        return layout != ContainerLayout.ABSOLUTE;
> +    }
> +
> +        /**
> +     *  @private
> +     *  A reference to this Panel container's title icon.
> +     */
> +    mx_internal var titleIconObject:Object = null;
> +
>
>
>
> diff --git
> a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/utilityClasses/Layout.as
> b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/utilityClasses/Layout.as
> new file mode 100644
> index 0000000..427a344
> --- /dev/null
> +++
> b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/utilityClasses/Layout.as
> @@ -0,0 +1,127 @@
>
> +////////////////////////////////////////////////////////////////////////////////
> +//
> +//  Licensed to the Apache Software Foundation (ASF) under one or more
> +//  contributor license agreements.  See the NOTICE file distributed with
> +//  this work for additional information regarding copyright ownership.
> +//  The ASF licenses this file to You under the Apache License, Version
> 2.0
> +//  (the "License"); you may not use this file except in compliance with
> +//  the License.  You may obtain a copy of the License at
> +//
> +//      http://www.apache.org/licenses/LICENSE-2.0
> +//
> +//  Unless required by applicable law or agreed to in writing, software
> +//  distributed under the License is distributed on an "AS IS" BASIS,
> +//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> +//  See the License for the specific language governing permissions and
> +//  limitations under the License.
> +//
>
> +////////////////////////////////////////////////////////////////////////////////
> +
> +package mx.containers.utilityClasses
> +{
> +
> +import mx.core.Container;
> +import mx.resources.IResourceManager;
> +import mx.resources.ResourceManager;
> +
> +[ExcludeClass]
> +
> +/**
> + *  @private
> + */
> +public class Layout
> +{
> +       //include "../../core/Version.as";
> +
> +
>  //--------------------------------------------------------------------------
> +       //
> +       //  Constructor
> +       //
> +
>  //--------------------------------------------------------------------------
> +
> +       /**
> +        *  Constructor.
> +        *
> +        *  @langversion 3.0
> +        *  @playerversion Flash 9
> +        *  @playerversion AIR 1.1
> +        *  @productversion Flex 3
> +        */
> +       public function Layout()
> +       {
> +               super();
> +       }
> +
> +
>  //--------------------------------------------------------------------------
> +       //
> +       //  Variables
> +       //
> +
>  //--------------------------------------------------------------------------
> +
> +       /**
> +        *  @private
> +        *  Used for accessing localized error messages.
> +        */
> +       protected var resourceManager:IResourceManager =
> +
>  ResourceManager.getInstance();
> +
> +
>  //--------------------------------------------------------------------------
> +       //
> +       //  Properties
> +       //
> +
>  //--------------------------------------------------------------------------
> +
> +       //----------------------------------
> +       //  target
> +       //----------------------------------
> +
> +       /**
> +        *  @private
> +        *  Storage for the target property.
> +        */
> +       private var _target:Container;
> +
> +       /**
> +        *  The container associated with this layout.
> +        *
> +        *  @langversion 3.0
> +        *  @playerversion Flash 9
> +        *  @playerversion AIR 1.1
> +        *  @productversion Flex 3
> +        */
> +       public function get target():Container
> +       {
> +               return _target;
> +       }
> +
> +       /**
> +        *  @private
> +        */
> +       public function set target(value:Container):void
> +       {
> +               _target = value;
> +       }
> +
> +
>  //--------------------------------------------------------------------------
> +       //
> +       //  Methods
> +       //
> +
>  //--------------------------------------------------------------------------
> +
> +       /**
> +        *  @private
> +        */
> +       public function measure():void
> +       {
> +       }
> +
> +       /**
> +        *  @private
> +        */
> +       public function updateDisplayList(unscaledWidth:Number,
> +
>  unscaledHeight:Number):void
> +       {
> +       }
> +}
> +
> +}
> diff --git
> a/frameworks/projects/MXRoyale/src/main/royale/mx/core/LayoutContainer.as
> b/frameworks/projects/MXRoyale/src/main/royale/mx/core/LayoutContainer.as
> new file mode 100644
> index 0000000..558f30f
> --- /dev/null
> +++
> b/frameworks/projects/MXRoyale/src/main/royale/mx/core/LayoutContainer.as
> @@ -0,0 +1,491 @@
>
> +////////////////////////////////////////////////////////////////////////////////
> +//
> +//  Licensed to the Apache Software Foundation (ASF) under one or more
> +//  contributor license agreements.  See the NOTICE file distributed with
> +//  this work for additional information regarding copyright ownership.
> +//  The ASF licenses this file to You under the Apache License, Version
> 2.0
> +//  (the "License"); you may not use this file except in compliance with
> +//  the License.  You may obtain a copy of the License at
> +//
> +//      http://www.apache.org/licenses/LICENSE-2.0
> +//
> +//  Unless required by applicable law or agreed to in writing, software
> +//  distributed under the License is distributed on an "AS IS" BASIS,
> +//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> +//  See the License for the specific language governing permissions and
> +//  limitations under the License.
> +//
>
> +////////////////////////////////////////////////////////////////////////////////
> +
> +package mx.core
> +{
> +
> +import mx.core.UIComponent;
> +import mx.events.ErrorEvent;
> +import org.apache.royale.events.Event;
> +import mx.external.ExternalInterface;
> +import org.apache.royale.net.URLRequest;
> +import org.apache.royale.net.navigateToURL;
> +import mx.system.Capabilities;
> +import org.apache.royale.reflection.describeType;
> +import flash.utils.setInterval;
> +import mx.containers.BoxDirection;
> +//import mx.containers.utilityClasses.BoxLayout;
> +import mx.containers.beads.BoxLayout;
> +import mx.containers.beads.CanvasLayout;
> +// import mx.containers.utilityClasses.CanvasLayout;
> +import mx.containers.utilityClasses.ConstraintColumn;
> +import mx.containers.utilityClasses.ConstraintRow;
> +import mx.containers.utilityClasses.IConstraintLayout;
> +import mx.containers.utilityClasses.Layout;
> +import mx.effects.EffectManager;
> +import mx.events.FlexEvent;
> +import mx.managers.ISystemManager;
> +import mx.managers.LayoutManager;
> +import mx.managers.SystemManager;
> +import mx.styles.CSSStyleDeclaration;
> +import mx.styles.IStyleClient;
> +
> +use namespace mx_internal;
> +
> +//--------------------------------------
> +//  Styles
> +//--------------------------------------
> +
> +//include "../styles/metadata/AlignStyles.as";
> +//include "../styles/metadata/GapStyles.as";
> +
> +/**
> + *  Number of pixels between the bottom border
> + *  and its content area.
> + *
> + *  @default 0
> + *
> + *  @langversion 3.0
> + *  @playerversion Flash 9
> + *  @playerversion AIR 1.1
> + *  @productversion Flex 3
> + */
> +[Style(name="paddingBottom", type="Number", format="Length",
> inherit="no")]
> +
> +/**
> + *  Number of pixels between the top border
> + *  and its content area.
> + *
> + *  @default 0
> + *
> + *  @langversion 3.0
> + *  @playerversion Flash 9
> + *  @playerversion AIR 1.1
> + *  @productversion Flex 3
> + */
> +[Style(name="paddingTop", type="Number", format="Length", inherit="no")]
> +
> +//--------------------------------------
> +//  Excluded APIs
> +//--------------------------------------
> +
> +[Exclude(name="direction", kind="property")]
> +[Exclude(name="icon", kind="property")]
> +[Exclude(name="label", kind="property")]
> +[Exclude(name="tabIndex", kind="property")]
> +[Exclude(name="toolTip", kind="property")]
> +[Exclude(name="x", kind="property")]
> +[Exclude(name="y", kind="property")]
> +
> +//--------------------------------------
> +//  Other metadata
> +//--------------------------------------
> +
> +/**
> + *  Flex defines a default, or Application, container that lets you start
> + *  adding content to your module or Application without explicitly
> defining
> + *  another container.
> + *  Flex creates this container from the
> <code>&lt;mx:Application&gt;</code>
> + *  tag, the first tag in an MXML application file, or from the
> + *  <code>&lt;mx:Module&gt;</code> tag, the first tag in an MXML module
> file.
> + *  While you might find it convenient to use the Application or Module
> container
> + *  as the only  container in your application, in most cases you
> explicitly
> + *  define at least one more container before you add any controls
> + *  to your application or module.
> + *
> + *  @mxml
> + *
> + *  <p>The <code>&lt;mx:Application&gt;</code> tag inherits all of the
> tag
> + *  attributes of its superclass and adds the following tag
> attributes:</p>
> + *
> + *  <pre>
> + *  &lt;mx:Application
> + *    <strong>Properties</strong>
> + *    layout="vertical|horizontal|absolute"
> + *    xmlns:<i>No default</i>="<i>No default</i>"
> + *
> + *    <strong>Styles</strong>
> + *    horizontalAlign="center|left|right"
> + *    horizontalGap="8"
> + *    paddingBottom="0"
> + *    paddingTop="0"
> + *    verticalAlign="top|bottom|middle"
> + *    verticalGap="6"
> + *
> + *  /&gt;
> + *  </pre>
> + *
> + *  @see flash.events.EventDispatcher
> + *
> + *  @langversion 3.0
> + *  @playerversion Flash 9
> + *  @playerversion AIR 1.1
> + *  @productversion Flex 3
> + */
> +public class LayoutContainer extends Container implements
> IConstraintLayout
> +{
> +    //include "../core/Version.as";
> +
> +
> //--------------------------------------------------------------------------
> +    //
> +    //  Class variables
> +    //
> +
> //--------------------------------------------------------------------------
> +
> +    /**
> +     *  @private
> +     */
> +    mx_internal static var useProgressiveLayout:Boolean = false;
> +
> +
> //--------------------------------------------------------------------------
> +    //
> +    //  Constructor
> +    //
> +
> //--------------------------------------------------------------------------
> +
> +    /**
> +     *  Constructor.
> +     *
> +     *  @langversion 3.0
> +     *  @playerversion Flash 9
> +     *  @playerversion AIR 1.1
> +     *  @productversion Flex 3
> +     */
> +    public function LayoutContainer()
> +    {
> +        super();
> +
> +        layoutObject.target = this;
> +
> +    }
> +
> +
> //--------------------------------------------------------------------------
> +    //
> +    //  Variables
> +    //
> +
> //--------------------------------------------------------------------------
> +
> +    /**
> +     *  @private
> +     *  The mx.containers.utilityClasses.Layout subclass that is doing
> the layout
> +     */
> +    //protected var layoutObject:Layout = new BoxLayout();
> +    protected var layoutObject:Layout = new Layout();
> +
> +    /**
> +     *  The mx.containers.utilityClasses.Layout subclass that is doing
> the layout
> +     *
> +     *  @langversion 3.0
> +     *  @playerversion Flash 9
> +     *  @playerversion AIR 1.1
> +     *  @productversion Flex 3
> +     */
> +    protected var canvasLayoutClass:Class = CanvasLayout;
> +
> +    /**
> +     *  The mx.containers.utilityClasses.Layout subclass that is doing
> the layout
> +     *
> +     *  @langversion 3.0
> +     *  @playerversion Flash 9
> +     *  @playerversion AIR 1.1
> +     *  @productversion Flex 3
> +     */
> +    protected var boxLayoutClass:Class = BoxLayout;
> +
> +    /**
> +     *  @private
> +     */
> +    private var resizeHandlerAdded:Boolean = false;
> +
> +    /**
> +     *  @private
> +     *  Placeholder for Preloader object reference.
> +     */
> +    private var preloadObj:Object;
> +
> +    /**
> +     *  @private
> +     *  Used in progressive layout.
> +     */
> +    private var creationQueue:Array = [];
> +
> +    /**
> +     *  @private
> +     *  Used in progressive layout.
> +     */
> +    private var processingCreationQueue:Boolean = false;
> +
> +
> //--------------------------------------------------------------------------
> +    //
> +    //  Properties
> +    //
> +
> //--------------------------------------------------------------------------
> +
> +    //----------------------------------
> +    //  constraintColumns
> +    //----------------------------------
> +
> +    /**
> +     *  @private
> +     *  Storage for the constraintColumns property.
> +     */
> +    private var _constraintColumns:Array = [];
> +
> +    [ArrayElementType("mx.containers.utilityClasses.ConstraintColumn")]
> +
> [Inspectable(arrayType="mx.containers.utilityClasses.ConstraintColumn")]
> +
> +    /**
> +     *  @copy
> mx.containers.utilityClasses.IConstraintLayout#constraintColumns
> +     *
> +     *  @langversion 3.0
> +     *  @playerversion Flash 9
> +     *  @playerversion AIR 1.1
> +     *  @productversion Flex 3
> +     */
> +    public function get constraintColumns():Array
> +    {
> +        return _constraintColumns;
> +    }
> +
> +    /**
> +     *  @private
> +     */
> +    public function set constraintColumns(value:Array):void
> +    {
> +        if (value != _constraintColumns)
> +        {
> +               var n:int = value.length;
> +               for (var i:int = 0; i < n; i++)
> +            {
> +                ConstraintColumn(value[i]).container = this;
> +            }
> +            _constraintColumns = value;
> +
> +            invalidateSize();
> +            invalidateDisplayList();
> +        }
> +    }
> +
> +    //----------------------------------
> +    //  constraintRows
> +    //----------------------------------
> +
> +    /**
> +     *  @private
> +     *  Storage for the constraintRows property.
> +     */
> +    private var _constraintRows:Array = [];
> +
> +    [ArrayElementType("mx.containers.utilityClasses.ConstraintRow")]
> +    [Inspectable(arrayType="mx.containers.utilityClasses.ConstraintRow")]
> +
> +    /**
> +     *  @copy
> mx.containers.utilityClasses.IConstraintLayout#constraintRows
> +     *
> +     *  @langversion 3.0
> +     *  @playerversion Flash 9
> +     *  @playerversion AIR 1.1
> +     *  @productversion Flex 3
> +     */
> +    public function get constraintRows():Array
> +    {
> +        return _constraintRows;
> +    }
> +
> +    /**
> +     *  @private
> +     */
> +    public function set constraintRows(value:Array):void
> +    {
> +        if (value != _constraintRows)
> +        {
> +               var n:int = value.length;
> +               for (var i:int = 0; i < n; i++)
> +            {
> +                ConstraintRow(value[i]).container = this;
> +            }
> +            _constraintRows = value;
> +
> +            invalidateSize();
> +            invalidateDisplayList();
> +        }
> +    }
> +
> +    //----------------------------------
> +    //  layout
> +    //----------------------------------
> +
> +    /**
> +     *  @private
> +     *  Storage for layout property.
> +     */
> +    private var _layout:String = ContainerLayout.VERTICAL;
> +
> +    [Bindable("layoutChanged")]
> +    [Inspectable(category="General",
> enumeration="vertical,horizontal,absolute", defaultValue="vertical")]
> +
> +    /**
> +     *  Specifies the layout mechanism used for this application.
> +     *  Applications can use <code>"vertical"</code>,
> <code>"horizontal"</code>,
> +     *  or <code>"absolute"</code> positioning.
> +     *  Vertical positioning lays out each child component vertically from
> +     *  the top of the application to the bottom in the specified order.
> +     *  Horizontal positioning lays out each child component horizontally
> +     *  from the left of the application to the right in the specified
> order.
> +     *  Absolute positioning does no automatic layout and requires you to
> +     *  explicitly define the location of each child component.
> +     *
> +     *  @default "vertical"
> +     *
> +     *  @langversion 3.0
> +     *  @playerversion Flash 9
> +     *  @playerversion AIR 1.1
> +     *  @productversion Flex 3
> +     */
> +    public function get layout():String
> +    {
> +        return _layout;
> +    }
> +
> +    /**
> +     *  @private
> +     */
> +    public function set layout(value:String):void
> +    {
> +        if (_layout != value)
> +        {
> +            _layout = value;
> +
> +            if (layoutObject)
> +                // Set target to null for cleanup.
> +                layoutObject.target = null;
> +
> +            if (_layout == ContainerLayout.ABSOLUTE)
> +                layoutObject = new canvasLayoutClass();
> +            else
> +            {
> +                layoutObject = new boxLayoutClass();
> +
> +                if (_layout == ContainerLayout.VERTICAL)
> +                {
> +                    BoxLayout(layoutObject).direction =
> +                        BoxDirection.VERTICAL;
> +                }
> +                else
> +                {
> +                    BoxLayout(layoutObject).direction =
> +                        BoxDirection.HORIZONTAL;
> +                }
> +            }
> +
> +            if (layoutObject)
> +                layoutObject.target = this;
> +
> +            invalidateSize();
> +            invalidateDisplayList();
> +
> +            dispatchEvent(new Event("layoutChanged"));
> +        }
> +    }
> +
> +    //----------------------------------
> +    //  usePadding
> +    //----------------------------------
> +
> +    /**
> +     *  @private
> +     */
> +    mx_internal function get usePadding():Boolean
> +    {
> +        // We use padding for all layouts except absolute.
> +        return layout != ContainerLayout.ABSOLUTE;
> +    }
> +
> +
> +
> //--------------------------------------------------------------------------
> +    //
> +    //  Overridden methods: UIComponent
> +    //
> +
> //--------------------------------------------------------------------------
> +
> +
> +    /**
> +     *  @private
> +     *  Calculates the preferred, mininum and maximum sizes of the
> +     *  Application. See the <code>UIComponent.measure()</code> method
> for more
> +     *  information.
> +     *  <p>
> +     *  The <code>measure()</code> method first calls
> +     *  <code>Box.measure()</code> method, then makes sure the
> +     *  <code>measuredWidth</code> and <code>measuredMinWidth</code>
> +     *  are wide enough to display the application's control bar.
> +     */
> +    override protected function measure():void
> +    {
> +        super.measure();
> +
> +        layoutObject.measure();
> +    }
> +
> +    /**
> +     *  @private
> +     */
> +    override protected function updateDisplayList(unscaledWidth:Number,
> +
> unscaledHeight:Number):void
> +    {
> +        super.updateDisplayList(unscaledWidth, unscaledHeight);
> +
> +        layoutObject.updateDisplayList(unscaledWidth, unscaledHeight);
> +
> +        // Wait to layout the border after all the children
> +        // have been positioned.
> +        //createBorder();
> +    }
> +
> +
> //--------------------------------------------------------------------------
> +    //
> +    //  Overridden methods: Container
> +    //
> +
> //--------------------------------------------------------------------------
> +
> +    /**
> +     *  @private
> +     */
> +    override protected function layoutChrome(unscaledWidth:Number,
> +                                             unscaledHeight:Number):void
> +    {
> +        super.layoutChrome(unscaledWidth, unscaledHeight);
> +
> +        // When Container.autoLayout is false, updateDisplayList()
> +        // is not called, but layoutChrome() is still called.
> +        // In that case, we still need to position the border.
> +      /*  if (!doingLayout)
> +            createBorder(); */
> +
> +    }
> +
> +
> //--------------------------------------------------------------------------
> +    //
> +    //  Methods
> +    //
> +
> //--------------------------------------------------------------------------
> +
> +}
> +
> +}
> diff --git
> a/frameworks/projects/MXRoyale/src/main/royale/mx/dummy/ContextMenuItem.as
> b/frameworks/projects/MXRoyale/src/main/royale/mx/dummy/ContextMenuItem.as
> index bd17c78..a63debb 100644
> ---
> a/frameworks/projects/MXRoyale/src/main/royale/mx/dummy/ContextMenuItem.as
> +++
> b/frameworks/projects/MXRoyale/src/main/royale/mx/dummy/ContextMenuItem.as
> @@ -35,6 +35,22 @@ package mx.dummy
>                         trace("set caption in ContextMenuItem is not
> implemented");
>                         _caption = value;
>                 }
> +
> +               public var _enabled:Boolean = false;
> +               public function get enabled():Boolean {
> +                       return _enabled;
> +               }
> +               public function set enabled(value:Boolean):void {
> +                       _enabled = value;
> +               }
> +
> +               public var _separatorBefore:Boolean = false;
> +               public function get separatorBefore():Boolean {
> +                       return _separatorBefore;
> +               }
> +               public function set separatorBefore(value:Boolean):void {
> +                       _separatorBefore = value;
> +               }
>
>      }
>  }
> diff --git
> a/frameworks/projects/MXRoyale/src/main/royale/mx/effects/IEffectInstance.as
> b/frameworks/projects/MXRoyale/src/main/royale/mx/effects/IEffectInstance.as
> index 572d10a..a3b5d77 100644
> ---
> a/frameworks/projects/MXRoyale/src/main/royale/mx/effects/IEffectInstance.as
> +++
> b/frameworks/projects/MXRoyale/src/main/royale/mx/effects/IEffectInstance.as
> @@ -110,13 +110,13 @@ public interface IEffectInstance
>       *  @playerversion AIR 1.1
>       *  @productversion Royale 0.9.3
>       */
> -    /* function get effect():IEffect; */
> +    function get effect():IEffect;
>
>      /**
>       *  @private
>       */
> -/*     function set effect(value:IEffect):void;
> - */
> +    function set effect(value:IEffect):void;
> +
>      //----------------------------------
>      //  effectTargetHost
>      //----------------------------------
> diff --git
> a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/ISystemManager.as
> b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/ISystemManager.as
> index 4327efa..a73d398 100644
> ---
> a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/ISystemManager.as
> +++
> b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/ISystemManager.as
> @@ -23,6 +23,7 @@ package mx.managers
>  import org.apache.royale.events.IEventDispatcher;
>  import mx.core.IChildList;
>  import mx.core.UIComponent;
> +import flash.display.Stage;
>  /**
>   *  An ISystemManager manages an "application window".
>   *  Every application that runs on the desktop or in a browser
> @@ -103,6 +104,12 @@ public interface ISystemManager extends
> IEventDispatcher, IChildList /*, IFlexMo
>      function get rawChildren():IChildList;
>      function get numModalWindows():int;
>      function set numModalWindows(value:int):void;
> +       COMPILE::SWF {
> +               function get stage():Stage;
> +       }
> +       COMPILE::JS {
> +               function get stage():Object;
> +       }
>
>
>
> //--------------------------------------------------------------------------
> diff --git
> a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/PopUpManager.as
> b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/PopUpManager.as
> index b983558..5f3f0da 100644
> ---
> a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/PopUpManager.as
> +++
> b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/PopUpManager.as
> @@ -265,5 +265,11 @@ public class PopUpManager
>              }
>                 }
>      }
> +
> +
> +       public static function bringToFront(popUp:IFlexDisplayObject):void
> +    {
> +               trace("bringToFront in PopUpManager is not implemented");
> +    }
>  } // class
>  } // package
> diff --git
> a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/SystemManager.as
> b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/SystemManager.as
> index a00c4c5..7dbe3e5 100644
> ---
> a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/SystemManager.as
> +++
> b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/SystemManager.as
> @@ -515,6 +515,20 @@ public class SystemManager extends SystemManagerBase
> implements ISystemManager,
>       *  @private
>       *  get the main stage if we're loaded into another swf in the same
> sandbox
>       */
> +
> +       COMPILE::JS {
> +               public function get stage():Object
> +               {
> +                       return null;
> +               }
> +       }
> +
> +       COMPILE::SWF {
> +               override public function get stage():Stage
> +               {
> +                       return null;
> +               }
> +       }
>      /* override public function get stage():Stage
>      {
>          if (_stage)
> diff --git
> a/frameworks/projects/MXRoyale/src/main/royale/mx/system/System.as
> b/frameworks/projects/MXRoyale/src/main/royale/mx/system/System.as
> index c50400b..af13401 100644
> --- a/frameworks/projects/MXRoyale/src/main/royale/mx/system/System.as
> +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/system/System.as
> @@ -83,5 +83,14 @@ package mx.system
>                 public static function get totalMemory():uint {
>                         return 0;
>                 }
> +
> +
> +               public static var _useCodePage:Boolean = false;
> +               public static function get useCodePage():Boolean {
> +                       return _useCodePage;
> +               }
> +               public static function set useCodePage(value:Boolean):void
> {
> +                       _useCodePage = value;
> +               }
>         }
>  }
> diff --git
> a/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/dummy/ContextMenu.as
> b/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/dummy/ContextMenu.as
> index 38b2c18..150feb4 100644
> ---
> a/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/dummy/ContextMenu.as
> +++
> b/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/dummy/ContextMenu.as
> @@ -24,5 +24,8 @@ package org.apache.royale.textLayout.dummy {
>                 public var customItems:Array = [];
>                 public var isSupported:Boolean;
>                 public var items:Array;
> +               public function hideBuiltInItems():void {
> +                       trace("hideBuiltInItems in ContextMenu is not
> implemented");
> +               }
>         }
>  }
> diff --git
> a/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/events/ContextMenuEvent.as
> b/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/events/ContextMenuEvent.as
> index c8dbc7f..ba7cab0 100644
> ---
> a/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/events/ContextMenuEvent.as
> +++
> b/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/events/ContextMenuEvent.as
> @@ -27,5 +27,13 @@ package org.apache.royale.textLayout.events {
>                 public function ContextMenuEvent(type : String, bubbles :
> Boolean = false, cancelable : Boolean = false) {
>                         super(type, bubbles, cancelable);
>                 }
> +
> +               public var _contextMenuOwner:Object;
> +               public function get contextMenuOwner():Object {
> +                       return _contextMenuOwner;
> +               }
> +               public function set contextMenuOwner(value:Object):void {
> +                       _contextMenuOwner = value;
> +               }
>         }
>  }
>


-- 

Piotr Zarzycki