Class PasswordDialog

java.lang.Object
javafx.scene.control.Dialog<String>
com.cryptoalgo.oursql.component.PasswordDialog
All Implemented Interfaces:
javafx.event.EventTarget

public class PasswordDialog extends javafx.scene.control.Dialog<String>
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

    Constructors
    Constructor
    Description
    PasswordDialog(@NotNull String title, @NotNull String header, @Nullable String body, @Nullable String caption)
    Create an instance of PasswordDialog 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

    Methods inherited from class java.lang.Object

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

    • PasswordDialog

      public PasswordDialog(@NotNull @NotNull String title, @NotNull @NotNull String header, @Nullable @Nullable String body, @Nullable @Nullable String caption)
      Create an instance of PasswordDialog with parameters to populate the dialog.
      Parameters:
      title - Title of dialog
      header - Header of dialog
      body - Body text, displayed right above the PasswordField
      caption - Caption text, displayed right below the PasswordField with a smaller font size. Can be null if no caption is required.