Updated Branches: refs/heads/develop 46ef75fd5 -> dec914ddd
FIX - FLEX-25962 PopupAnchor needs modal functionality (patch by Lee Burrows) Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/dec914dd Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/dec914dd Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/dec914dd Branch: refs/heads/develop Commit: dec914ddd95bbe100b0956764f8dfcb231878429 Parents: 46ef75f Author: mamsellem <[email protected]> Authored: Sat Dec 14 02:11:31 2013 +0100 Committer: mamsellem <[email protected]> Committed: Sat Dec 14 02:11:31 2013 +0100 ---------------------------------------------------------------------- .../spark/src/spark/components/PopUpAnchor.as | 30 ++++++++++++++++++-- 1 file changed, 27 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/dec914dd/frameworks/projects/spark/src/spark/components/PopUpAnchor.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/spark/src/spark/components/PopUpAnchor.as b/frameworks/projects/spark/src/spark/components/PopUpAnchor.as index 9a32955..830fc0f 100644 --- a/frameworks/projects/spark/src/spark/components/PopUpAnchor.as +++ b/frameworks/projects/spark/src/spark/components/PopUpAnchor.as @@ -19,7 +19,7 @@ package spark.components { - + import flash.display.DisplayObject; import flash.events.Event; import flash.geom.Matrix; @@ -333,7 +333,31 @@ public class PopUpAnchor extends UIComponent // Public Methods // //-------------------------------------------------------------------------- - + + private var _isModal:Boolean = false; + + /** + * Flag indicating whether the popup should be modal. + * A modal container takes all keyboard and mouse input until it is closed. + * A non-modal container allows other components to accept input while the pop-up window is open. + * + * @default false + * + * @langversion 3.0 + * @playerversion Flash 10 + * @playerversion AIR 1.5 + * @productversion Flex 4.12 + */ + public function get isModal():Boolean + { + return _isModal; + } + + public function set isModal(value:Boolean):void + { + _isModal = value; + } + /** * Updates the <code>popUp</code> control's transform matrix. Typically, * you would call this function while performing an effect on the PopUpAnchor. @@ -491,7 +515,7 @@ public class PopUpAnchor extends UIComponent if (DisplayObject(popUp).parent == null && displayPopUp) { - PopUpManager.addPopUp(popUp,this,false); + PopUpManager.addPopUp(popUp,this,_isModal); if (popUp is IUIComponent) IUIComponent(popUp).owner = this; popUpIsDisplayed = true;
