contentTextProperty, dialogPaneProperty, graphicProperty, headerTextProperty, heightProperty, onCloseRequestProperty, onHiddenProperty, onHidingProperty, onShowingProperty, onShownProperty, resizableProperty, resultConverterProperty, resultProperty, showingProperty, titleProperty, widthProperty, xProperty, yProperty
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
defaultValue |
private GridPane |
grid
Fields
|
private Label |
label |
private TextField |
textField |
Constructor and Description |
---|
TextInputDialog()
Creates a new TextInputDialog without a default value entered into the
dialog
TextField . |
TextInputDialog(java.lang.String defaultValue)
Creates a new TextInputDialog with the default value entered into the
dialog
TextField . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDefaultValue()
Returns the default value that was specified in the constructor.
|
TextField |
getEditor()
Returns the
TextField used within this dialog. |
private void |
updateGrid()
Private Implementation
|
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, setResultAndClose, setResultConverter, setTitle, setWidth, setX, setY, show, showAndWait, showingProperty, titleProperty, widthProperty, xProperty, yProperty
private final GridPane grid
private final Label label
private final TextField textField
private final java.lang.String defaultValue
public TextInputDialog()
TextField
.public TextInputDialog(java.lang.String defaultValue)
TextField
.defaultValue
- the default value entered into the dialogpublic final TextField getEditor()
TextField
used within this dialog.TextField
used within this dialogpublic final java.lang.String getDefaultValue()
private void updateGrid()