Class InputDialog<R>

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

    Constructors
    Constructor
    Description
    InputDialog(String title, String headerText, javafx.scene.Node inputForm, Supplier<R> resultSupplier)
    Creates a new InputDialog.
  • Method Summary

    Modifier and Type
    Method
    Description
    final javafx.scene.Node
    Returns the input form used within this dialog.
     
    final void
    setInputForm(javafx.scene.Node newValue)
    Sets the input form used within this dialog.
    void
    setResultSupplier(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • InputDialog

      public InputDialog(String title, String headerText, javafx.scene.Node inputForm, Supplier<R> resultSupplier)
      Creates a new InputDialog.
      Parameters:
      title - the title
      headerText - the header text
      inputForm - the input form
      resultSupplier - the result supplier
  • 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

      public Supplier<R> getResultSupplier()
    • setResultSupplier

      public void setResultSupplier(Supplier<R> resultSupplier)