Overview
A Dialog
is a top-level window with a title and a border
that is typically used to take some form of input from the user.
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.Dialog will remain.
Attribute Summary
name | type | description |
---|---|---|
Public | ||
resizable | Boolean |
Defines whether this dialog is resizable by the user. More: [+]Defines whether this dialog is resizable by the user. |
title | String |
Defines the title of the Defines the title of the |
Protected |
Inherited Attributes
javafx.ext.swing.SwingWindow
name | type | description |
---|---|---|
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: [+] |
Function Summary
- public getJDialog() : javax.swing.JDialog
-
Returns the JDialog delegate for this dialog.
More: [+]Returns the JDialog delegate for this dialog.
-
Returns
- JDialog
Inherited Functions
javafx.ext.swing.SwingWindow
- 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's
name, ornull
if it doesn't have a name.Returns this
Window's
name, ornull
if it doesn't have a name.-
Returns
- String
-
this
Window's
name ornull
- public bound getParent() : Container
-
Returns
More: [+]null
.Returns
null
.Windows
don't have parents.-
Returns
- Container
-
null
- protected remove(component: Component) : Void
-
Called when a
Component
is being reparented to notify its oldContainer
that 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.
javafx.ext.swing.Container
- public abstract bound getName() : java.lang.String
-
Returns this
More: [+]Container's
name, ornull
if it doesn't have a name.Returns this
Container's
name, ornull
if it doesn't have a name.-
Returns
- String
-
this
Container's
name ornull
- public abstract bound getParent() : Container
-
Returns this
More: [+]Container's
parentContainer
, ornull
if it doesn't have a parent.Returns this
Container's
parentContainer
, ornull
if it doesn't have a parent.-
Returns
- Container
-
this
Container's
parent ornull
- protected parentToThisContainer(component: Component) : Void
-
Parents the given
More: [+]Component
to thisContainer
.Parents the given
Component
to thisContainer
. First, unparents theComponent
from its currentContainer
, if any, by callingremove(component)
. Then sets theComponent's
parent to this. Does nothing if the parameter isnull
or is already parented to thisContainer
.-
Parameters
- component
-
the component to parent to this
Container
- protected abstract remove(component: Component) : Void
-
Called when a
More: [+]Component
is being reparented to notify its oldContainer
that it is to be removed.Called when a
Component
is being reparented to notify its oldContainer
that it is to be removed.-
Parameters
- component
-
the
Component
to remove
- protected unparentFromThisContainer(component: Component) : Void
-
Unparents the given
More: [+]Component
from thisContainer
.Unparents the given
Component
from thisContainer
. If the givenComponent
is currently parented to thisContainer
, sets theComponent's
parent tonull
. Otherwise, does nothing. Does nothing if the parameter isnull
.-
Parameters
- component
-
the component to unparent from this
Container