- All Implemented Interfaces:
- EventTarget
public class TextInputDialog extends Dialog<String>
A dialog that shows a text input control to the user.
- Since:
- JavaFX 8u40
- See Also:
- Dialog
- 
Property SummaryProperties declared in class javafx.scene.control.DialogcontentText, dialogPane, graphic, headerText, height, onCloseRequest, onHidden, onHiding, onShowing, onShown, resizable, resultConverter, result, showing, title, width, x, y
- 
Constructor SummaryConstructors Constructor Description TextInputDialog()Creates a new TextInputDialog without a default value entered into the dialogTextField.TextInputDialog(String defaultValue)Creates a new TextInputDialog with the default value entered into the dialogTextField.
- 
Method SummaryModifier and Type Method Description StringgetDefaultValue()Returns the default value that was specified in the constructor.TextFieldgetEditor()Returns theTextFieldused within this dialog.Methods declared in class javafx.scene.control.Dialogclose, 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, yPropertyMethods declared in class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface javafx.event.EventTargetbuildEventDispatchChain
- 
Constructor Details- 
TextInputDialogpublic TextInputDialog()Creates a new TextInputDialog without a default value entered into the dialogTextField.
- 
TextInputDialogCreates a new TextInputDialog with the default value entered into the dialogTextField.- Parameters:
- defaultValue- the default value entered into the dialog
 
 
- 
- 
Method Details