You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2018/08/15 06:38:57 UTC
[GitHub] alinakazi closed pull request #271: New changes in 5 files
alinakazi closed pull request #271: New changes in 5 files
URL: https://github.com/apache/royale-asjs/pull/271
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/AdvancedListBase.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/AdvancedListBase.as
index 8574625a0..6143a66f8 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/AdvancedListBase.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/AdvancedListBase.as
@@ -2565,7 +2565,13 @@ public class AdvancedListBase extends UIComponent /* extends ScrollControlBase
dispatchEvent(new Event("labelFieldChanged"));
} */
-
+ public function get verticalAlign():String
+ {
+ return "middle";
+ }
+ public function set verticalAlign(value:String):void
+ {
+ }
//----------------------------------
// labelFunction
//----------------------------------
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/FocusManager.as b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/FocusManager.as
index 10635a80e..82e22c806 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/FocusManager.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/FocusManager.as
@@ -2370,6 +2370,32 @@ public class FocusManager extends EventDispatcher implements IFocusManager
{
return null;
}
+
+
+ private var _getFocus:IFocusManagerComponent;
+ public function getFocus():IFocusManagerComponent
+ {
+ return _getFocus;
+ //var stage:Stage = Sprite(form)./*systemManager.*/stage;
+
+ /* if (!stage)
+ return null;
+
+ var o:InteractiveObject = stage.focus;
+
+ // If a Stage* object (such as StageText or StageWebView) has focus,
+ // stage.focus will be set to null. Much of the focus framework is not
+ // set up to handle this. So, if stage.focus is null, we return the last
+ // IFocusManagerComponent that had focus. In ADL, focus works slightly
+ // different than it does on device when using StageText. In ADL, when
+ // the focus is a StageText component, a TextField whose parent is the
+ // stage is assigned focus.
+ if ((!o && _lastFocus) || (o is TextField && o.parent == stage))
+ return _lastFocus;
+
+ return findFocusManagerComponent(o); */
+ }
+
public function setFocus(o:IFocusManagerComponent):void
{
// trace("FM " + this + " setting focus to " + o);
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/IFocusManager.as b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/IFocusManager.as
index 11314cbab..ff58c7357 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/IFocusManager.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/IFocusManager.as
@@ -49,6 +49,7 @@ public interface IFocusManager extends IEventDispatcher
//
//--------------------------------------------------------------------------
function getNextFocusManagerComponent(backward:Boolean = false):IFocusManagerComponent;
+ function getFocus():IFocusManagerComponent;
function setFocus(o:IFocusManagerComponent):void;
}
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 bbb68e884..a4926fa0d 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/ISystemManager.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/ISystemManager.as
@@ -100,7 +100,10 @@ public interface ISystemManager extends IEventDispatcher, IChildList /*, IFlexMo
* @private
*/
function set component(value:Object):void;
-
+ function get rawChildren():IChildList;
+ function get numModalWindows():int;
+ function set numModalWindows(value:int):void;
+
//--------------------------------------------------------------------------
//
@@ -119,6 +122,7 @@ public interface ISystemManager extends IEventDispatcher, IChildList /*, IFlexMo
* @productversion Royale 0.9.4
*/
function getSandboxRoot():Object;
+
}
}
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 dfc2d2aee..65a697f67 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/SystemManager.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/SystemManager.as
@@ -98,7 +98,7 @@ import mx.core.IFlexDisplayObject;
import mx.core.IUIComponent;
import org.apache.royale.core.IUIBase;
-import org.apache.royale.events.IEventDispatcher;
+import org.apache.royale.events.IEventDispatcher;
//--------------------------------------
// Events
@@ -1114,7 +1114,7 @@ public class SystemManager extends SystemManagerBase implements ISystemManager,
* @private
* Storage for the numModalWindows property.
*/
- // private var _numModalWindows:int = 0;
+ private var _numModalWindows:int = 0;
/**
* The number of modal windows. Modal windows don't allow
@@ -1127,18 +1127,18 @@ public class SystemManager extends SystemManagerBase implements ISystemManager,
* @playerversion AIR 1.1
* @productversion Royale 0.9.4
*/
- /* public function get numModalWindows():int
+ public function get numModalWindows():int
{
return _numModalWindows;
- } */
+ }
/**
* @private
*/
- /* public function set numModalWindows(value:int):void
+ public function set numModalWindows(value:int):void
{
_numModalWindows = value;
- } */
+ }
//----------------------------------
// preloadedRSLs
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services