class org.aswing.JWindow extends JPopup
Sub classes | ||||
JFrame |
|
JWindow is a Container, but you should not add component to JWindow directly,
you should add component like this: window.content.append(child);
The same is true of setting LayoutManagers, removing components, listing children, etc.
All these methods should normally be sent to the contentPane instead of the JWindow
itself.
The contentPane will always be non-null. Attempting to set it to null will cause the JWindow
to throw an Error.
The default contentPane will have a BorderLayout manager set on it.
But if you really want to add child to JWindow like how JDialog and JFrame does,
just do it with setting a new LayoutManager
to layout them, normally if you want to
extends JWindow
to make a new type Window, you may need to add child to JWindow
, example a title
bar on top, a menubar on top, a status bar on bottom, etc.
Authors paling, ngrebenshikov
Show Events | Hide Events
|
Class Fields
static function getOwnedWindowsWithOwner(owner:DisplayObjectContainer): Array<Dynamic>
See JPopup.getOwnedPopupsWithOwner()
returns | owned windows of the specifid owner. |
static function getWindows(?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
Whether or not this window will be set to active when user interactive the UI. Default value is true.
If true, the window will try to active when shown or user pressed the window.
If false, then window will not do active when visible or user pressed the window.
Whether this Window is active.
The active Window is always either the focused Window, or the first Frame or Dialog that is an owner of the focused Window.
function new(?owner:Dynamic = null, ?modal:Bool = false): Void
Create a JWindow
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. See Throws AsWingManagerNotInited if not specified the owner, and aswing default root is not specified either. Throws TypeError if the owner is not a JPopup nor DisplayObjectContainer |
function focusAtThisWindow(): Void
Request focus to this window's default focus component or last focused component when last deactived.
function getOwnedWindows(): Array<Dynamic>
Return an array containing all the windows this window currently owns.
function getWindowOwner(): JWindow
This will return the owner of this JWindow, it return a JWindow if this window's owner is a JWindow, else return null;