AlertDialog

class AlertDialog(alertType: AlertType = AlertType.NONE) : Dialog

Theme DSL

".alert_pane" { // A VBox.
    // This will also have a style of ".information", ".warning", ".error", ".none" or ".confirmation"
    // depending on the AlertType.

    child( ".heading" ) {
        // A Label
    }

    child( ".message" ) {
        // A TextArea
    }
}

Constructors

Link copied to clipboard
constructor(alertType: AlertType = AlertType.NONE)

Properties

Link copied to clipboard
Link copied to clipboard
override var content: Node?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The ButtonType that was pressed to dismiss this Dialog.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
lateinit var stage: Stage

A lateinit var, which is set in createStage. Accessing it before createStage is called will throw an Exception.

Link copied to clipboard
lateinit var textArea: TextArea
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun buttons(block: ButtonBar.() -> Unit)
Link copied to clipboard
fun buttonTypes(vararg buttonTypes: ButtonType, handler: (ButtonType) -> Unit? = null)

Adds buttons to the buttonBar. All these buttons close the popup stage before the handler is called.

Link copied to clipboard
fun createStage(parentStage: Stage, stageType: StageType = StageType.NORMAL, block: Stage.() -> Unit? = null): Stage
Link copied to clipboard
fun onCreate(handlerCombination: HandlerCombination = HandlerCombination.AFTER, block: (event: ActionEvent) -> Unit)

A convenient way to set onCreateProperty using a lambda. However, if an event handler is already present, then BOTH will be used.

Link copied to clipboard
open operator fun Node.unaryPlus()