Packagefeathers.core
Classpublic class PopUpManager
InheritancePopUpManager Inheritance Object

Adds a display object as a pop-up above all content.



Public Properties
 PropertyDefined By
  overlayFactory : Function
[static] A function that returns a display object to use as an overlay for modal pop-ups.
PopUpManager
Public Methods
 MethodDefined By
  
addPopUp(popUp:DisplayObject, isModal:Boolean = true, isCentered:Boolean = true, customOverlayFactory:Function = null):void
[static] Adds a pop-up to the stage.
PopUpManager
  
[static] Centers a pop-up on the stage.
PopUpManager
  
[static] The default factory that creates overlays for modal pop-ups.
PopUpManager
  
isPopUp(popUp:DisplayObject):Boolean
[static] Determines if a display object is a pop-up.
PopUpManager
  
removePopUp(popUp:DisplayObject, dispose:Boolean = false):void
[static] Removes a pop-up from the stage.
PopUpManager
Property Detail
overlayFactoryproperty
public static var overlayFactory:Function

A function that returns a display object to use as an overlay for modal pop-ups.

This function is expected to have the following signature:

function():DisplayObject

Method Detail
addPopUp()method
public static function addPopUp(popUp:DisplayObject, isModal:Boolean = true, isCentered:Boolean = true, customOverlayFactory:Function = null):void

Adds a pop-up to the stage.

Parameters

popUp:DisplayObject
 
isModal:Boolean (default = true)
 
isCentered:Boolean (default = true)
 
customOverlayFactory:Function (default = null)

centerPopUp()method 
public static function centerPopUp(popUp:DisplayObject):void

Centers a pop-up on the stage.

Parameters

popUp:DisplayObject

defaultOverlayFactory()method 
public static function defaultOverlayFactory():DisplayObject

The default factory that creates overlays for modal pop-ups.

Returns
DisplayObject
isPopUp()method 
public static function isPopUp(popUp:DisplayObject):Boolean

Determines if a display object is a pop-up.

Parameters

popUp:DisplayObject

Returns
Boolean
removePopUp()method 
public static function removePopUp(popUp:DisplayObject, dispose:Boolean = false):void

Removes a pop-up from the stage.

Parameters

popUp:DisplayObject
 
dispose:Boolean (default = false)