class org.aswing.JPopup extends JRootPane
Sub classes | ||||
![]() | JWindow |
|
JPopup is a component that generally be a base container of a window panel.
Note: You should call `this.dispose()` to remove a `JPopup` from stage. You'd better call `AsWingManager.setRoot(theRoot)` to set a root for all popup as default root when application initialization.@see org.aswing.JWindow @author paling
![]() | Show Events | Hide Events
|
Class Fields
static function getOwnedPopupsWithOwner(owner:DisplayObjectContainer): Array<Dynamic>
getOwnedPopupsWithOwner(owner:JPopup)
getOwnedPopupsWithOwner(owner:DisplayObjectContainer)
Returns owned windows of the specifid owner.
returns | owned windows of the specifid owner. |
static function getPopups(?st:Stage = null): Array<Dynamic>
Returns all displable windows currently on specified stage. A window was disposed or destroied will not included by this array. @see JPopup#getPopups()
st | the stage, if it is null, the |
returns | all displable windows currently. |
Instance Fields
An owner of the JPopup
, it maybe a DisplayObjectContainer
maybe a JPopup
.
While the popup is displayable, you can't change the owner of it.
If null passed, it will be AsWingManager.getRoot()
function new(?owner:Dynamic = null, ?modal:Bool = false): Void
Create a JPopup @see org.aswing.AsWingManager#getRoot()
owner | the owner of this popup, it can be a |
modal | true for a modal dialog, false for one that allows other windows to be active at the same time, default is false. |
Remove all of this window's source movieclips.(also the components in this window will be removed too)
function getOwnedEquipedPopups(): Array<JPopup>
Returns an array containing all the popups that is equiped and is this popup currently owns.
Whether a popup is Equiped, based on whether the popup is shown(by show()
or
setVisible(true)
) and not disposed(dispose()
).
function getOwnedPopups(): Array<Dynamic>
Return an array containing all the popups this popup currently owns.
function getPopupAncestorMC(): DisplayObjectContainer
Returns the window's ancestor display object which it/it's owner is created on.
returns | the ancestor display object of this window |
function shouldGroundVisible(): Bool
Returns should ground be visible through.
This method will call owner.shouldOwnedPopupGroundVisible()
.
function shouldOwnedPopupGroundVisible(popup:JPopup): Bool
Returns should owned popup ground be visible.