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
ConstructorDescriptionStyledAlert
(javafx.scene.control.Alert.AlertType type, String title, String header, String body) Convenience constructor to create an instance ofStyledAlert
. -
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
-
Constructor Details
-
StyledAlert
public StyledAlert(javafx.scene.control.Alert.AlertType type, String title, String header, String body) Convenience constructor to create an instance ofStyledAlert
.- Parameters:
type
- Type of alert - Affects icon and buttons availabletitle
- Title of alert dialogheader
- Header of alertbody
- Content text in alert
-