Package edu.wpi.grip.ui
Class WarningAlert
- java.lang.Object
-
- javafx.scene.control.Dialog<javafx.scene.control.ButtonType>
-
- javafx.scene.control.Alert
-
- edu.wpi.grip.ui.WarningAlert
-
- All Implemented Interfaces:
javafx.event.EventTarget
public class WarningAlert extends javafx.scene.control.Alert
An alert that warns the user when they try to do something unsupported, such as trying to generate code with an operation that does not support code gen.
-
-
Constructor Summary
Constructors Constructor Description WarningAlert(java.lang.String header, java.lang.String body, javafx.stage.Window owner)
Creates a new warning alert.
-
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 Detail
-
WarningAlert
public WarningAlert(java.lang.String header, java.lang.String body, javafx.stage.Window owner)
Creates a new warning alert.- Parameters:
header
- the header text of the alert. This should be short and descriptive.body
- the body text of the alert. This should go into detail about the warning and what prompted it.owner
- the owner window of this alert- Throws:
java.lang.NullPointerException
- if any of the parameters are null
-
-