public class ShuffleboardDialog
extends javafx.scene.control.Dialog<javafx.scene.control.ButtonType>
ButtonType.CLOSE
.
This type of dialog also supports subheader text, which is usually shown in a slightly darker color and default font size.
Type | Property and Description |
---|---|
javafx.beans.property.BooleanProperty |
closeOnFocusLost |
javafx.beans.property.StringProperty |
subheaderText |
contentTextProperty, dialogPaneProperty, graphicProperty, headerTextProperty, heightProperty, onCloseRequestProperty, onHiddenProperty, onHidingProperty, onShowingProperty, onShownProperty, resizableProperty, resultConverterProperty, resultProperty, showingProperty, titleProperty, widthProperty, xProperty, yProperty
Constructor and Description |
---|
ShuffleboardDialog(javafx.scene.Node content)
Creates a new dialog with the given content.
|
ShuffleboardDialog(javafx.scene.Node content,
boolean closeOnFocusLost) |
Modifier and Type | Method and Description |
---|---|
void |
closeAndCancel()
Closes this dialog and sets the result to
ButtonType.CLOSE . |
javafx.beans.property.BooleanProperty |
closeOnFocusLostProperty() |
static ShuffleboardDialog |
createForFxml(java.net.URL fxmlLocation)
Creates a new shuffleboard dialog with its content set to the contents of the given FXML file.
|
java.lang.String |
getSubheaderText()
Gets the value of the property subheaderText.
|
boolean |
isCloseOnFocusLost()
Gets the value of the property closeOnFocusLost.
|
void |
setCloseOnFocusLost(boolean closeOnFocusLost)
Sets the value of the property closeOnFocusLost.
|
void |
setSubheaderText(java.lang.String subheaderText)
Sets the value of the property subheaderText.
|
javafx.beans.property.StringProperty |
subheaderTextProperty() |
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, yProperty
public final javafx.beans.property.BooleanProperty closeOnFocusLostProperty
isCloseOnFocusLost()
,
setCloseOnFocusLost(boolean)
public final javafx.beans.property.StringProperty subheaderTextProperty
getSubheaderText()
,
setSubheaderText(String)
public ShuffleboardDialog(javafx.scene.Node content)
content
- the content of the dialogpublic ShuffleboardDialog(javafx.scene.Node content, boolean closeOnFocusLost)
public static ShuffleboardDialog createForFxml(java.net.URL fxmlLocation) throws java.lang.IllegalArgumentException
fxmlLocation
- the location of the FXML to load and set the content tojava.lang.IllegalArgumentException
- if the FXML could not be loadedpublic final boolean isCloseOnFocusLost()
public final javafx.beans.property.BooleanProperty closeOnFocusLostProperty()
isCloseOnFocusLost()
,
setCloseOnFocusLost(boolean)
public final void setCloseOnFocusLost(boolean closeOnFocusLost)
public void closeAndCancel()
ButtonType.CLOSE
.public final java.lang.String getSubheaderText()
public final javafx.beans.property.StringProperty subheaderTextProperty()
getSubheaderText()
,
setSubheaderText(String)
public final void setSubheaderText(java.lang.String subheaderText)