Top Description Fields Constructors Methods
javafx.scene.control

public Class TextInputDialog

extends Dialog<String>
Class Inheritance
Imports
com.sun.javafx.scene.control.skin.resources.ControlResources, javafx.application.Platform, javafx.beans.NamedArg, javafx.geometry.Pos, javafx.scene.control.ButtonBar.ButtonData, javafx.scene.layout.GridPane, .Priority, .Region

A dialog that shows a text input control to the user.
Since
JavaFX 8u40
See Also
Dialog

Field Summary

Modifier and TypeField and Description
private final String
private final GridPane
private final Label
private final TextField
Inherited from javafx.scene.control.Dialog:
dialog

Constructor Summary

AccessConstructor and Description
public
TextInputDialog()

Creates a new TextInputDialog without a default value entered into the dialog TextField.

public
TextInputDialog(String
the default value entered into the dialog
defaultValue
)

Creates a new TextInputDialog with the default value entered into the dialog TextField.

Method Summary

Modifier and TypeMethod and Description
public final String

Returns:

the default value that was specified in the constructor
getDefaultValue
()

Returns the default value that was specified in the constructor.

public final TextField

Returns:

the TextField used within this dialog
getEditor
()

Returns the TextField used within this dialog.

private void
Inherited from javafx.scene.control.Dialog:
addEventFilteraddEventHandlerbuildEventDispatchChainclosecontentTextPropertydialogPanePropertygetContentTextgetDialogPanegetGraphicgetHeaderTextgetHeightgetModalitygetOnCloseRequestgetOnHiddengetOnHidinggetOnShowinggetOnShowngetOwnergetResultgetResultConvertergetTitlegetWidthgetXgetYgraphicPropertyheaderTextPropertyheightPropertyhideinitModalityinitOwnerinitStyleisResizableisShowingonCloseRequestPropertyonHiddenPropertyonHidingPropertyonShowingPropertyonShownPropertyremoveEventFilterremoveEventHandlerresizablePropertyresultConverterPropertyresultPropertysetContentTextsetDialogPanesetGraphicsetHeaderTextsetHeightsetOnCloseRequestsetOnHiddensetOnHidingsetOnShowingsetOnShownsetResizablesetResultsetResultAndClosesetResultConvertersetTitlesetWidthsetXsetYshowshowAndWaitshowingPropertytitlePropertywidthPropertyxPropertyyProperty

Field Detail

defaultValueback to summary
private final String defaultValue
gridback to summary
private final GridPane grid
labelback to summary
private final Label label
textFieldback to summary
private final TextField textField

Constructor Detail

TextInputDialogback to summary
public TextInputDialog()

Creates a new TextInputDialog without a default value entered into the dialog TextField.

TextInputDialogback to summary
public TextInputDialog(String defaultValue)

Creates a new TextInputDialog with the default value entered into the dialog TextField.

Parameters
defaultValue:String

the default value entered into the dialog

Method Detail

getDefaultValueback to summary
public final String getDefaultValue()

Returns the default value that was specified in the constructor.

Returns:String

the default value that was specified in the constructor

getEditorback to summary
public final TextField getEditor()

Returns the TextField used within this dialog.

Returns:TextField

the TextField used within this dialog

updateGridback to summary
private void updateGrid()