JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

Overview

The JavaFX Application class provides application lifecycle support methods and attributes. The content of the application is specified on its stage attribute.

Profile: common

Attribute Summary

nametypedescription
Public
onExitfunction():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

onResumefunction():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

onStartfunction():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

onSuspendfunction():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

stageStage

The stage for the application content.

More: [+]

The stage for the application content.

Profile: common

suspendedBoolean

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

Protected

Inherited Attributes

Function Summary

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

Inherited Functions