Package-level declarations

Types

Link copied to clipboard
open class DialogButtonContainer(nativeDialog: Dialog<*>)

Container of ButtonType, providing sets of useful operation.

Link copied to clipboard
class DialogButtonContainerScope(nativeDialog: Dialog<*>) : DialogButtonContainer

Receiver for buttons block.

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.

Functions

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

Show an alert.

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

Configure Dialog buttons.

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

Show a selector.

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

Show a confirmation alert.

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

Show an error alert.

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

Show an information alert.

Link copied to clipboard
inline fun textInputDialog(prefill: String = "", configuration: TextInputDialog.() -> Unit): Optional<String>

Show a text input dialog.

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

Show a warning alert.