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

public class StyledAlert extends javafx.scene.control.Alert
A styled $Alert dialog with styles to better fit in with the application's overall theme.
  • Property Summary

    Properties inherited from class javafx.scene.control.Alert

    alertType

    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
  • Nested Class Summary

    Nested classes/interfaces inherited from class javafx.scene.control.Alert

    javafx.scene.control.Alert.AlertType
  • Constructor Summary

    Constructors
    Constructor
    Description
    StyledAlert(javafx.scene.control.Alert.AlertType type, String title, String header, String body)
    Convenience constructor to create an instance of StyledAlert.
  • Method Summary

    Methods inherited from class javafx.scene.control.Alert

    alertTypeProperty, getAlertType, getButtonTypes, setAlertType

    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

    • StyledAlert

      public StyledAlert(javafx.scene.control.Alert.AlertType type, String title, String header, String body)
      Convenience constructor to create an instance of StyledAlert.
      Parameters:
      type - Type of alert - Affects icon and buttons available
      title - Title of alert dialog
      header - Header of alert
      body - Content text in alert