java.lang.Object
javafx.scene.control.Dialog<com.dua3.utility.options.Arguments>
com.dua3.utility.fx.controls.OptionsDialog
- All Implemented Interfaces:
EventTarget
A Dialog for inputting values.
The dialog consists of labels and input controls laid out in a grid.
-
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
ConstructorsConstructorDescriptionConstructs an OptionsDialog with OK and Cancel buttons and a result converter. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetOptions(Collection<com.dua3.utility.options.Option<?>> optionSet, com.dua3.utility.options.Arguments currentValues) Set options.Methods inherited from class javafx.scene.control.Dialog
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, setResultConverter, setTitle, setWidth, setX, setY, show, showAndWait, showingProperty, titleProperty, widthProperty, xProperty, yProperty
-
Constructor Details
-
OptionsDialog
public OptionsDialog()Constructs an OptionsDialog with OK and Cancel buttons and a result converter. The result converter will return the values provided by the OptionsPane. If the Cancel button is pressed or if the OptionsPane has not been set, the result is null.
-
-
Method Details
-
setOptions
public void setOptions(Collection<com.dua3.utility.options.Option<?>> optionSet, com.dua3.utility.options.Arguments currentValues) Set options.- Parameters:
optionSet- the options to setcurrentValues- the current values
-