Overview
A Window object is a top-level window.
This class exists temporarily to allow for building applications based on
hierarchies of Swing based Components. In the future, the intention
is to turn Component into a Node and move layout into the
Node world. At that time, this class will dissapear, and only
javafx.application.Window will remain.
Attribute Summary
| name | type | description |
|---|---|---|
| Public | ||
| background | Color | More: [+] |
| closeAction | function():Void | More: [+] |
| content | Component |
This This |
| height | Integer | More: [+] |
| icons | Image[] |
Defines the icon images to be used in the window decorations and when minimized. More: [+]Defines the icon images to be used in the window decorations and when minimized. The images should be different sizes of the same thing and the best size will be chosen, eg. 16x16, 32,32. |
| name | String | More: [+] |
| owner | SwingWindow | More: [+] |
| visible | Boolean | More: [+] |
| width | Integer | More: [+] |
| x | Integer | More: [+] |
| y | Integer | More: [+] |
| Protected | ||
Inherited Attributes
Function Summary
- public close() : Void
-
Close this window and indicate that there's no intention to use it again.
More: [+]Close this window and indicate that there's no intention to use it again. If this is an application (vs. Applet), VM will exit after all windows are closed provided all Timelines are stoped as well. Window *can* be shown again with
visible = true. - public getAWTWindow() : java.awt.Window
-
Returns the java.awt.Window delegate for this window.
More: [+]Returns the java.awt.Window delegate for this window.
-
Returns
- Window
- public bound getName() : java.lang.String
-
Returns this
More: [+]Window'sname, ornullif it doesn't have a name.Returns this
Window'sname, ornullif it doesn't have a name.-
Returns
- String
-
this
Window'sname ornull
- public bound getParent() : Container
-
Returns
More: [+]null.Returns
null.Windowsdon't have parents.-
Returns
- Container
-
null
- protected remove(component: Component) : Void
-
More: [+]Called when a
Componentis being reparented to notify its oldContainerthat it is to be removed.-
Parameters
- component
- public toBack() : Void
-
If this Window is visible, sends this Window to the back and may cause it to lose focus or activation if it is the focused or active Window.
More: [+]If this Window is visible, sends this Window to the back and may cause it to lose focus or activation if it is the focused or active Window.
- public toFront() : Void
-
If this Window is visible, brings this Window to the front and may make it the focused Window.
More: [+]If this Window is visible, brings this Window to the front and may make it the focused Window.
Inherited Functions
javafx.ext.swing.Container
- public abstract bound getName() : java.lang.String
-
Returns this
More: [+]Container'sname, ornullif it doesn't have a name.Returns this
Container'sname, ornullif it doesn't have a name.-
Returns
- String
-
this
Container'sname ornull
- public abstract bound getParent() : Container
-
Returns this
More: [+]Container'sparentContainer, ornullif it doesn't have a parent.Returns this
Container'sparentContainer, ornullif it doesn't have a parent.-
Returns
- Container
-
this
Container'sparent ornull
- protected parentToThisContainer(component: Component) : Void
-
Parents the given
More: [+]Componentto thisContainer.Parents the given
Componentto thisContainer. First, unparents theComponentfrom its currentContainer, if any, by callingremove(component). Then sets theComponent'sparent to this. Does nothing if the parameter isnullor is already parented to thisContainer.-
Parameters
- component
-
the component to parent to this
Container
- protected abstract remove(component: Component) : Void
-
Called when a
More: [+]Componentis being reparented to notify its oldContainerthat it is to be removed.Called when a
Componentis being reparented to notify its oldContainerthat it is to be removed.-
Parameters
- component
-
the
Componentto remove
- protected unparentFromThisContainer(component: Component) : Void
-
Unparents the given
More: [+]Componentfrom thisContainer.Unparents the given
Componentfrom thisContainer. If the givenComponentis currently parented to thisContainer, sets theComponent'sparent tonull. Otherwise, does nothing. Does nothing if the parameter isnull.-
Parameters
- component
-
the component to unparent from this
Container