public class FXDialog extends Object
| Modifier and Type | Field and Description |
|---|---|
protected javafx.stage.Stage |
dialog |
protected boolean |
isCancelled |
protected javafx.stage.Stage |
parent |
| Modifier | Constructor and Description |
|---|---|
protected |
FXDialog()
Empty constructor for subclasses
|
|
FXDialog(javafx.stage.Stage parent,
javafx.stage.Modality modality,
javafx.scene.layout.Pane content)
Create a new Dialog, the width and height of the Dialog will be determined
by the content bounds.
|
|
FXDialog(javafx.stage.Stage parent,
javafx.stage.Modality modality,
javafx.scene.Parent content,
double width,
double height)
Create a new Dialog with a specified width and height.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
cancel() |
void |
close() |
protected void |
freeContent()
Removes the content node from the scene, allows the node to be reused
|
javafx.scene.Parent |
getContent() |
javafx.stage.Stage |
getDialog()
Gets the stage of the Dialog.
|
boolean |
getDisposeOnExit() |
double |
getHeight() |
double |
getWidth() |
protected void |
init(javafx.stage.Stage parent,
javafx.stage.Modality modality,
javafx.scene.Parent content) |
boolean |
isResizeable() |
protected void |
positiveClose()
Method stub for sub classes do not call from FXDialog
e.g.
|
void |
setContent(javafx.scene.layout.Pane content) |
void |
setDisposeOnExit(boolean dispose)
Set to true if you want to reuse the same dialog.
|
void |
setHeight(double height) |
void |
setResizeable(boolean isResizeable) |
protected void |
setScene(javafx.scene.Scene scene) |
void |
setTitle(String title) |
void |
setWidth(double width) |
void |
show()
Works the same as show but also centres the Dialog relative to the parent window
See http://download.java.net/jdk8/jfxdocs/javafx/stage/Stage.html#show--
|
void |
showAndWait()
Works the same as showAndWait but also centres the Dialog relative to the parent window
See http://download.java.net/jdk8/jfxdocs/javafx/stage/Stage.html#showAndWait--
|
protected javafx.stage.Stage parent
protected javafx.stage.Stage dialog
protected boolean isCancelled
protected FXDialog()
public FXDialog(javafx.stage.Stage parent,
javafx.stage.Modality modality,
javafx.scene.layout.Pane content)
parent - The stage of Dialogmodality - The mode of the Dialogcontent - The content the Dialog createdpublic FXDialog(javafx.stage.Stage parent,
javafx.stage.Modality modality,
javafx.scene.Parent content,
double width,
double height)
parent - The stage of Dialogmodality - The mode of the Dialogcontent - The content the Dialog createdwidth - The fixed width value of the dialogheight - The fixed height value of the dialogprotected final void init(javafx.stage.Stage parent,
javafx.stage.Modality modality,
javafx.scene.Parent content)
protected final void setScene(javafx.scene.Scene scene)
public void show()
public void close()
public void showAndWait()
protected void cancel()
protected final void freeContent()
protected void positiveClose()
public javafx.stage.Stage getDialog()
public void setWidth(double width)
public void setHeight(double height)
public double getWidth()
public double getHeight()
public void setResizeable(boolean isResizeable)
public boolean isResizeable()
public javafx.scene.Parent getContent()
public void setContent(javafx.scene.layout.Pane content)
public void setTitle(String title)
public void setDisposeOnExit(boolean dispose)
dispose - A boolean value of setDisposeOnExitpublic boolean getDisposeOnExit()
Copyright © 2017. All rights reserved.