java.lang.Object
javafx.scene.control.Dialog<String>
com.cryptoalgo.oursql.component.PasswordDialog
- All Implemented Interfaces:
javafx.event.EventTarget
A custom dialog with a
PasswordField
, to make up for the lack of a
PasswordInputDialog
or similar in JavaFX. Of course, styles
are added to allow the dialog to fit in well with the application's theme.-
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
ConstructorDescriptionPasswordDialog
(@NotNull String title, @NotNull String header, @Nullable String body, @Nullable String caption) Create an instance ofPasswordDialog
with parameters to populate the dialog. -
Method Summary
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
-
PasswordDialog
public PasswordDialog(@NotNull @NotNull String title, @NotNull @NotNull String header, @Nullable @Nullable String body, @Nullable @Nullable String caption) Create an instance ofPasswordDialog
with parameters to populate the dialog.- Parameters:
title
- Title of dialogheader
- Header of dialogbody
- Body text, displayed right above thePasswordField
caption
- Caption text, displayed right below thePasswordField
with a smaller font size. Can benull
if no caption is required.
-