public class FXMessageDialog extends FXDialog
| Modifier and Type | Field and Description |
|---|---|
protected static int |
BUTTONWIDTH |
static int |
ERROR_MESSAGE
Icon references, replace JOptionPane equivalents
|
protected static int |
FONTSIZE |
static int |
INFORMATION_MESSAGE |
static int |
PLAIN_MESSAGE |
static int |
QUESTION_MESSAGE |
static int |
WARNING_MESSAGE |
dialog, isCancelled, parent| Constructor and Description |
|---|
FXMessageDialog(javafx.stage.Stage parent) |
FXMessageDialog(javafx.stage.Stage parent,
javafx.scene.image.Image icon) |
FXMessageDialog(javafx.stage.Stage parent,
javafx.scene.image.Image icon,
String message) |
FXMessageDialog(javafx.stage.Stage parent,
javafx.scene.Parent group)
MessageDialog with custom center node
|
FXMessageDialog(javafx.stage.Stage parent,
String message) |
| Modifier and Type | Method and Description |
|---|---|
protected javafx.scene.layout.BorderPane |
getBorderPane() |
protected javafx.scene.layout.HBox |
getButtonGroup() |
protected javafx.scene.layout.VBox |
getCenterGroup() |
protected javafx.beans.property.StringProperty |
getMessage() |
protected void |
positiveClose()
Method stub for sub classes do not call from FXDialog
e.g.
|
void |
setCenterAlignment(javafx.geometry.Pos pos) |
void |
setImage(javafx.scene.image.Image icon) |
cancel, close, freeContent, getContent, getDialog, getDisposeOnExit, getHeight, getWidth, init, isResizeable, setContent, setDisposeOnExit, setHeight, setResizeable, setScene, setTitle, setWidth, show, showAndWaitpublic static final int ERROR_MESSAGE
public static final int INFORMATION_MESSAGE
public static final int WARNING_MESSAGE
public static final int QUESTION_MESSAGE
public static final int PLAIN_MESSAGE
protected static final int FONTSIZE
protected static final int BUTTONWIDTH
public FXMessageDialog(javafx.stage.Stage parent)
public FXMessageDialog(javafx.stage.Stage parent,
String message)
public FXMessageDialog(javafx.stage.Stage parent,
javafx.scene.image.Image icon)
public FXMessageDialog(javafx.stage.Stage parent,
javafx.scene.image.Image icon,
String message)
public FXMessageDialog(javafx.stage.Stage parent,
javafx.scene.Parent group)
parent - The stage of Dialoggroup - The group of the Dialogpublic final void setImage(javafx.scene.image.Image icon)
protected javafx.scene.layout.BorderPane getBorderPane()
public void setCenterAlignment(javafx.geometry.Pos pos)
protected javafx.scene.layout.HBox getButtonGroup()
protected javafx.scene.layout.VBox getCenterGroup()
protected javafx.beans.property.StringProperty getMessage()
protected void positiveClose()
FXDialogpositiveClose in class FXDialogCopyright © 2017. All rights reserved.