java.lang.Object
javafx.scene.control.Dialog<R>
org.jhotdraw8.fxbase.control.InputDialog<R>
- Type Parameters:
R- the return type of the dialog
- All Implemented Interfaces:
javafx.event.EventTarget
public class InputDialog<R>
extends javafx.scene.control.Dialog<R>
This class is similar to TextInputDialog, but allows to specify an arbitrary JavaFX node as input form.
- Author:
- Werner Randelshofer
-
Property Summary
Properties inherited from class javafx.scene.control.Dialog
contentText, dialogPane, graphic, headerText, height, onCloseRequest, onHidden, onHiding, onShowing, onShown, resizable, resultConverter, result, showing, title, width, x, y -
Constructor Summary
ConstructorsConstructorDescriptionInputDialog(String title, String headerText, javafx.scene.Node inputForm, Supplier<R> resultSupplier) Creates a new InputDialog. -
Method Summary
Modifier and TypeMethodDescriptionfinal javafx.scene.NodeReturns the input form used within this dialog.final voidsetInputForm(javafx.scene.Node newValue) Sets the input form used within this dialog.voidsetResultSupplier(Supplier<R> resultSupplier) Methods inherited from class javafx.scene.control.Dialog
addEventFilter, addEventHandler, 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, removeEventFilter, removeEventHandler, 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
-
Constructor Details
-
Method Details
-
getInputForm
public final javafx.scene.Node getInputForm()Returns the input form used within this dialog.- Returns:
- the input form
-
setInputForm
public final void setInputForm(javafx.scene.Node newValue) Sets the input form used within this dialog.- Parameters:
newValue- the new input form
-
getResultSupplier
-
setResultSupplier
-