Overview
The Swing Application
subclass uses a single Component
content
attribute instead of the stage
attribute.
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.Application will remain.
Attribute Summary
name | type | description |
---|---|---|
Public | ||
content | Component |
The UI part of the application - a component to be shown when the application is running. More: [+]The UI part of the application - a component to be shown when the application is running. |
Protected |
Inherited Attributes
javafx.application.Application
name | type | description |
---|---|---|
onExit | function():Void |
Called when the application is about to exit. More: [+]Called when the application is about to exit. The UI components of the application might no longer be visible. Profile: common |
onResume | function():Void |
Called when the Application is resumed - i.e. More: [+]Called when the Application is resumed - i.e. it goes from suspended state. Typically when the application window is made active or when the document containing the Application is made active in the browser or in the case of a mobile device when the user switches to the application. Profile: common |
onStart | function():Void |
Called when Application is being started and before it is displayed. More: [+]Called when Application is being started and before it is displayed. Profile: common |
onSuspend | function():Void |
Called when the Application is being put into - i.e. More: [+]Called when the Application is being put into - i.e. when the window with the application looses focus, or the document containing the Application is no longer the active document in the browser or the application is running on background in the mobile device. Profile: common |
stage | Stage |
The stage for the application content. More: [+]The stage for the application content. Profile: common |
suspended | Boolean |
Specifies if the Application is in suspended or running state. More: [+]Specifies if the Application is in suspended or running state. This attribute is readonly. It's value may change, but developers should not try to set it. Profile: common |
Inherited Functions
javafx.application.Application
- public exit() : Void
-
Requests the application to exit.
More: [+]Requests the application to exit. The onExit callback is called after this method is executed.
Profile: common
- public resume() : Void
-
Requests the application to go to back from the suspend mode to normal (resumed) operation.
More: [+]Requests the application to go to back from the suspend mode to normal (resumed) operation. In the case the application is already running (i.e. it is no longer suspended), the function has no effect. The behavior of this funciton is platform specific. On desktop it would typically mean restore from the minimized state. On other platforms this function might have no effect.
Profile: common
- public suspend() : Void
-
Requests the application to go to the suspend() mode.
More: [+]Requests the application to go to the suspend() mode. In the case application is in suspended mode, the function has no effect. The behavior of this funciton is platform specific. On desktop it would typically mean minimize. On other platforms this function might have no effect.
Profile: common