public class FxUiUtil extends Object
| Constructor and Description |
|---|
FxUiUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeWindow(javafx.scene.Node _javaFxComponentOrNode)
Closes a JavaFX stage (close window).
|
static String |
fxColorToHtmlRgbCode(javafx.scene.paint.Color _color)
Converts JavaFX color to HTML Style Colorcode.
|
static boolean |
showConfirmYesNo(String _msg,
String _title,
String _subTitle,
String _btnYesCaption,
String _btnNoCaption)
Shows an confirmation dialog with custom buttons.
|
static void |
showDialog(javafx.scene.control.Alert.AlertType _type,
String _title,
String _subTitle,
String _msg)
Shows any kind of dialog (useful for warning/information/error dialogs).
|
static void |
showWindow(Class<?> _parent,
String _fXmlFile,
boolean _wait,
boolean _resizeable,
String _title)
Opens a JavaFX window using an FXML file and sets modality to none.
|
static void |
showWindow(Class<?> _parent,
String _fXmlFile,
boolean _wait,
javafx.stage.Modality _modal,
boolean _resizeable,
String _title)
Opens a JavaFX window using an FXML file.
|
static void |
showWindow(Class<?> _parent,
String _fXmlFile,
boolean _wait,
javafx.stage.Modality _modal,
String _title)
Opens a JavaFX window using an FXML file and sets resizable to true.
|
static void |
showWindow(Class<?> _parent,
String _fXmlFile,
boolean _wait,
String _title)
Opens a JavaFX window using an FXML file and sets resizable to true and modality to none.
|
public static void showWindow(Class<?> _parent, String _fXmlFile, boolean _wait, javafx.stage.Modality _modal, boolean _resizeable, String _title)
_parent - parent class (cannot be null)_fXmlFile - fxml file to load_wait - use showAndWait instead of show_modal - set window modality_resizeable - set window resizable_title - set window titlepublic static void showWindow(Class<?> _parent, String _fXmlFile, boolean _wait, javafx.stage.Modality _modal, String _title)
_parent - _fXmlFile - _wait - _modal - _title - showWindow(Class _parent, String _fXmlFile, boolean _wait, Modality _modal, boolean _resizeable, String _title)}public static void showWindow(Class<?> _parent, String _fXmlFile, boolean _wait, String _title)
_parent - _fXmlFile - _wait - _title - showWindow(Class _parent, String _fXmlFile, boolean _wait, Modality _modal, boolean _resizeable, String _title)}public static void showWindow(Class<?> _parent, String _fXmlFile, boolean _wait, boolean _resizeable, String _title)
_parent - _fXmlFile - _wait - _resizeable - _title - showWindow(Class _parent, String _fXmlFile, boolean _wait, Modality _modal, boolean _resizeable, String _title)}public static void closeWindow(javafx.scene.Node _javaFxComponentOrNode)
_javaFxComponentOrNode - component to get stage frompublic static String fxColorToHtmlRgbCode(javafx.scene.paint.Color _color)
_color - public static boolean showConfirmYesNo(String _msg, String _title, String _subTitle, String _btnYesCaption, String _btnNoCaption)
_msg - _title - _subTitle - _btnYesCaption - _btnNoCaption - Copyright © 2018. All rights reserved.