Package-level declarations

Types

Link copied to clipboard

Container of ButtonType, providing sets of useful operation.

Link copied to clipboard

Receiver for buttons block.

Functions

Link copied to clipboard
inline fun alert(content: String, vararg buttonTypes: ButtonType = arrayOf(CLOSE), noinline alertAction: Alert.() -> Unit? = null): Optional<ButtonType>

Show an alert.

fun alert(title: String? = null, graphic: Node? = null, content: String = "", vararg buttonTypes: ButtonType = arrayOf(CLOSE), alertAction: Alert.() -> Unit? = null): Optional<ButtonType>

Show an alert with title and graphic.

Link copied to clipboard
fun Dialog<*>.buttons(configuration: DialogButtonContainerScope.() -> Unit)

Configure Dialog buttons.

Link copied to clipboard
inline fun confirmAlert(content: String, vararg buttonTypes: ButtonType = arrayOf(YES, NO), noinline alertAction: Alert.() -> Unit? = null): Optional<ButtonType>

Show a confirmation alert.

fun confirmAlert(title: String? = null, graphic: Node? = null, content: String = "", vararg buttonTypes: ButtonType = arrayOf(YES, NO), alertAction: Alert.() -> Unit? = null): Optional<ButtonType>

Show a confirmation alert with title and graphic.

Link copied to clipboard
inline fun errorAlert(content: String, vararg buttonTypes: ButtonType = arrayOf(CLOSE), noinline alertAction: Alert.() -> Unit? = null): Optional<ButtonType>

Show an error alert.

fun errorAlert(title: String? = null, graphic: Node? = null, content: String = "", vararg buttonTypes: ButtonType = arrayOf(CLOSE), alertAction: Alert.() -> Unit? = null): Optional<ButtonType>

Show an error alert with title and graphic.

Link copied to clipboard
inline fun infoAlert(content: String, vararg buttonTypes: ButtonType = arrayOf(CLOSE), noinline alertAction: Alert.() -> Unit? = null): Optional<ButtonType>

Show an information alert.

fun infoAlert(title: String? = null, graphic: Node? = null, content: String = "", vararg buttonTypes: ButtonType = arrayOf(CLOSE), alertAction: Alert.() -> Unit? = null): Optional<ButtonType>

Show an information alert with title and graphic.

Link copied to clipboard
inline fun inputDialog(prefill: String = "", noinline dialogAction: TextInputDialog.() -> Unit? = null): Optional<String>

Show a text input dialog.

fun inputDialog(title: String? = null, graphic: Node? = null, prefill: String = "", dialogAction: TextInputDialog.() -> Unit? = null): Optional<String>

Show a text input dialog with title and graphic.

Link copied to clipboard
inline fun <T> selector(vararg items: T, prefill: T? = null, noinline dialogAction: ChoiceDialog<T>.() -> Unit? = null): Optional<T>
inline fun <T> selector(items: Collection<T>? = null, prefill: T? = null, noinline dialogAction: ChoiceDialog<T>.() -> Unit? = null): Optional<T>

Show a selector.

fun <T> selector(title: String? = null, graphic: Node? = null, vararg items: T, prefill: T? = null, dialogAction: ChoiceDialog<T>.() -> Unit? = null): Optional<T>
fun <T> selector(title: String? = null, graphic: Node? = null, items: Collection<T>? = null, prefill: T? = null, dialogAction: ChoiceDialog<T>.() -> Unit? = null): Optional<T>

Show a selector with title and graphic.

Link copied to clipboard
inline fun warningAlert(content: String, vararg buttonTypes: ButtonType = arrayOf(CLOSE), noinline alertAction: Alert.() -> Unit? = null): Optional<ButtonType>

Show a warning alert.

fun warningAlert(title: String? = null, graphic: Node? = null, content: String = "", vararg buttonTypes: ButtonType = arrayOf(CLOSE), alertAction: Alert.() -> Unit? = null): Optional<ButtonType>

Show a warning alert with title and graphic.

Properties

Link copied to clipboard

Returns button configurator of this Dialog.

Link copied to clipboard
var Dialog<*>.graphicIcon: ImageView

Apply ImageView as graphic and icon of this dialog.

Link copied to clipboard
var Dialog<*>.headerTitle: String

Apply string as header text and title of this dialog.

Link copied to clipboard
var Dialog<*>.icon: Image

Removes old icons and set a new one to this dialog.