Class InputDialog
- java.lang.Object
-
- javafx.stage.Window
-
- javafx.stage.Stage
-
- org.teichert.databaseexplorer.gui.CustomDialog<T>
-
- org.teichert.databaseexplorer.gui.CustomCompactDialog<String>
-
- org.teichert.databaseexplorer.gui.InputDialog
-
- All Implemented Interfaces:
javafx.event.EventTarget
public class InputDialog extends CustomCompactDialog<String>
-
-
Field Summary
Fields Modifier and Type Field Description protected String
text
protected javafx.scene.control.TextInputControl
tfInput
-
Fields inherited from class org.teichert.databaseexplorer.gui.CustomDialog
CANCEL, CANCEL_STRING, heightDialog, mapOfButtons, mapOfConfig, OK, OK_STRING, parent, pressed, widthDialog
-
-
Constructor Summary
Constructors Constructor Description InputDialog(javafx.stage.Window parent, String text, String initText)
InputDialog(javafx.stage.Window parent, String text, String initText, javafx.scene.control.TextInputControl control)
InputDialog(javafx.stage.Window parent, javafx.stage.Modality modality, String text, String initText)
Creates a dialog with a textfield for getting "text" back from the dialog.InputDialog(javafx.stage.Window parent, javafx.stage.Modality modality, String text, String initText, javafx.scene.control.TextInputControl control)
Creates a dialog with a text-component for getting "text" back from the dialog.
Use this, if you want to use a custom-text-component instead of a TextField.
Otherwise use the other constructor!
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
doOK()
protected javafx.scene.Node
initDialog()
protected boolean
validation()
-
Methods inherited from class org.teichert.databaseexplorer.gui.CustomCompactDialog
createComponent, createComponent, createComponent, createComponent, createComponent, createComponent, createComponent, createComponent, createComponent, createComponent, createComponent, createComponent
-
Methods inherited from class org.teichert.databaseexplorer.gui.CustomDialog
cancelPressed, createButton, createButton, createButtonArea, createComponent, createComponent, createDialog, getButton, getButtonArea, getData, getDataMap, getDialogArea, getParent, getPressed, getSelectedItem, getSelectedItems, init, okPressed, setData, setSelectedItem, setSelectedItems, showDialog
-
Methods inherited from class javafx.stage.Stage
alwaysOnTopProperty, close, fullScreenExitHintProperty, fullScreenExitKeyProperty, fullScreenProperty, getFullScreenExitHint, getFullScreenExitKeyCombination, getIcons, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getModality, getOwner, getStyle, getTitle, iconifiedProperty, initModality, initOwner, initStyle, isAlwaysOnTop, isFullScreen, isIconified, isMaximized, isResizable, maxHeightProperty, maximizedProperty, maxWidthProperty, minHeightProperty, minWidthProperty, resizableProperty, setAlwaysOnTop, setFullScreen, setFullScreenExitHint, setFullScreenExitKeyCombination, setIconified, setMaxHeight, setMaximized, setMaxWidth, setMinHeight, setMinWidth, setResizable, setScene, setTitle, show, showAndWait, titleProperty, toBack, toFront
-
Methods inherited from class javafx.stage.Window
addEventFilter, addEventHandler, buildEventDispatchChain, centerOnScreen, eventDispatcherProperty, fireEvent, focusedProperty, forceIntegerRenderScaleProperty, getEventDispatcher, getHeight, getOnCloseRequest, getOnHidden, getOnHiding, getOnShowing, getOnShown, getOpacity, getOutputScaleX, getOutputScaleY, getProperties, getRenderScaleX, getRenderScaleY, getScene, getUserData, getWidth, getWindows, getX, getY, hasProperties, heightProperty, hide, isFocused, isForceIntegerRenderScale, isShowing, onCloseRequestProperty, onHiddenProperty, onHidingProperty, onShowingProperty, onShownProperty, opacityProperty, outputScaleXProperty, outputScaleYProperty, removeEventFilter, removeEventHandler, renderScaleXProperty, renderScaleYProperty, requestFocus, sceneProperty, setEventDispatcher, setEventHandler, setForceIntegerRenderScale, setHeight, setOnCloseRequest, setOnHidden, setOnHiding, setOnShowing, setOnShown, setOpacity, setRenderScaleX, setRenderScaleY, setUserData, setWidth, setX, setY, showingProperty, sizeToScene, widthProperty, xProperty, yProperty
-
-
-
-
Field Detail
-
text
protected String text
-
tfInput
protected javafx.scene.control.TextInputControl tfInput
-
-
Constructor Detail
-
InputDialog
public InputDialog(javafx.stage.Window parent, javafx.stage.Modality modality, String text, String initText)
Creates a dialog with a textfield for getting "text" back from the dialog.- Parameters:
parent
- = parent component to make the dialog modal correctly!modality
- = modality optiontext
- = title-textinitText
- = pre-filled the textfield
-
InputDialog
public InputDialog(javafx.stage.Window parent, String text, String initText, javafx.scene.control.TextInputControl control)
-
InputDialog
public InputDialog(javafx.stage.Window parent, javafx.stage.Modality modality, String text, String initText, javafx.scene.control.TextInputControl control)
Creates a dialog with a text-component for getting "text" back from the dialog.
Use this, if you want to use a custom-text-component instead of a TextField.
Otherwise use the other constructor!- Parameters:
parent
-modality
-text
-initText
-control
-
-
-
Method Detail
-
doOK
protected boolean doOK()
- Specified by:
doOK
in classCustomDialog<String>
-
initDialog
protected javafx.scene.Node initDialog()
- Specified by:
initDialog
in classCustomDialog<String>
-
validation
protected boolean validation()
- Specified by:
validation
in classCustomDialog<String>
-
-