public class PromptInputDialog extends Dialog
CANCEL_BUTTON, OK_BUTTON
Constructor and Description |
---|
PromptInputDialog(@Nullable javafx.stage.Window parent,
@NonNull java.lang.String title,
@NonNull java.lang.String text)
Create a prompt dialog
|
Modifier and Type | Method and Description |
---|---|
protected javafx.scene.Node |
createDialogArea() |
java.lang.String |
getInput() |
protected void |
okPressed()
Method called when the ok button is invoked
|
buttonPressed, cancelPressed, close, create, createButtonBar, createButtonForBar, createButtonsForBar, createContents, getBounds, getContentInset, getInitialContentSize, getInitialLocation, getInitialSize, getModality, getStylesheets, isCancelDefault, isOkDefault, open, pack, preopen, setBounds, setReturnCode
public PromptInputDialog(@Nullable javafx.stage.Window parent, @NonNull java.lang.String title, @NonNull java.lang.String text)
parent
- the parenttitle
- the window titletext
- the prompt textprotected javafx.scene.Node createDialogArea()
createDialogArea
in class Dialog
protected void okPressed()
Dialog
public java.lang.String getInput()