public class FX extends Object
Contains some helper for javafx
| Constructor and Description |
|---|
FX() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeWindow(javafx.scene.layout.Pane rootPane)
Helper to close the given stage
|
static javafx.stage.Stage |
stage(javafx.scene.layout.Pane rootPane)
Helper returns the stage from the given node
|
static void |
title(javafx.scene.layout.Pane rootPane,
String title)
Helper to set the given value as title in the given pane
|
static javafx.stage.Window |
win(javafx.scene.layout.Pane rootPane)
Helper returns the window from the given node
|
public static javafx.stage.Window win(javafx.scene.layout.Pane rootPane)
rootPane - Root pane off the Windowpublic static javafx.stage.Stage stage(javafx.scene.layout.Pane rootPane)
rootPane - Root pane off the Stagepublic static void title(javafx.scene.layout.Pane rootPane,
String title)
rootPane - This must be a Stagetitle - Text to set as titlepublic static void closeWindow(javafx.scene.layout.Pane rootPane)
rootPane - Stage to close as a rootPaneCopyright © 2018. All rights reserved.