javafx.event.EventTargetpublic abstract class FxmlDialog<R>
extends javafx.scene.control.Dialog<R>
Dialogs loaded from FXML resource.Dialog| Modifier | Constructor | Description |
|---|---|---|
protected |
FxmlDialog(java.lang.String resourceName) |
Creates a new dialog and loads its dialog pane contents from the given resource.
|
| Modifier and Type | Method | Description |
|---|---|---|
<T> T |
getController(java.lang.Class<T> controllerClass) |
Returns the controller associated with this dialog.
|
void |
setButtonTypes(javafx.scene.control.ButtonType firstButtonType,
javafx.scene.control.ButtonType... nextButtonTypes) |
Sets the types of the buttons shown in this dialog.
|
buildEventDispatchChain, close, contentTextProperty, dialogPaneProperty, getContentText, getDialogPane, getGraphic, getHeaderText, getHeight, getModality, getOnCloseRequest, getOnHidden, getOnHiding, getOnShowing, getOnShown, getOwner, getResult, getResultConverter, getTitle, getWidth, getX, getY, graphicProperty, headerTextProperty, heightProperty, hide, initModality, initOwner, initStyle, isResizable, isShowing, onCloseRequestProperty, onHiddenProperty, onHidingProperty, onShowingProperty, onShownProperty, resizableProperty, resultConverterProperty, resultProperty, setContentText, setDialogPane, setGraphic, setHeaderText, setHeight, setOnCloseRequest, setOnHidden, setOnHiding, setOnShowing, setOnShown, setResizable, setResult, setResultConverter, setTitle, setWidth, setX, setY, show, showAndWait, showingProperty, titleProperty, widthProperty, xProperty, yPropertyprotected FxmlDialog(java.lang.String resourceName)
Class.getResource(String)public <T> T getController(java.lang.Class<T> controllerClass)
java.lang.IllegalArgumentException - if controllerClass is nulljava.lang.ClassCastException - if the type of the associated controller is not controllerClasspublic void setButtonTypes(javafx.scene.control.ButtonType firstButtonType,
javafx.scene.control.ButtonType... nextButtonTypes)
java.lang.IllegalArgumentException - if firstButtonType is null