Packageorg.openzet.utils
Classpublic class PopUpUtil

Static class that defines static methods used to handle PopUp instances.



Public Methods
 MethodDefined by
  
getPopUpInstanceOf(className:Class):DisplayObject
[static] Returns a popUp instance of certain Class.
PopUpUtil
  
hasInstanceOf(popUpClass:Class):Boolean
[static] Returns whether an instance of certain class is being popped up.
PopUpUtil
  
isPopUp(popUp:DisplayObject):Boolean
[static] Returns whether a certain instance is being popped up.
PopUpUtil
  
[static] Removes all popUps, every single one of them.
PopUpUtil
  
removePopUpInstanceOf(className:Class):void
[static] Removes popUp instances of a certain class.
PopUpUtil
Method detail
getPopUpInstanceOf()method
public static function getPopUpInstanceOf(className:Class):DisplayObject

Returns a popUp instance of certain Class.

Parameters
className:Class — PopUp instance's class

Returns
DisplayObject — Returns an instance of a certain class if it has been popped up, otherwise null.
hasInstanceOf()method 
public static function hasInstanceOf(popUpClass:Class):Boolean

Returns whether an instance of certain class is being popped up.

Parameters
popUpClass:Class — Class of the possible popUp instance.

Returns
Boolean — Returns true if any instance of the Class has been popped up, otherwise false.
isPopUp()method 
public static function isPopUp(popUp:DisplayObject):Boolean

Returns whether a certain instance is being popped up.

Parameters
popUp:DisplayObject — A reference to a certain instance

Returns
Boolean — Returns true if the instance has been popped up, otherwise false.
removeAllPopUps()method 
public static function removeAllPopUps():void

Removes all popUps, every single one of them.

removePopUpInstanceOf()method 
public static function removePopUpInstanceOf(className:Class):void

Removes popUp instances of a certain class.

Parameters
className:Class — Class, instances of which to remove