KotlinTrader / com.doubleu.kotlintrader.util / FxDialogs

FxDialogs

object FxDialogs

Wrapper for JavaFX's OptionPane. Copied from StackOverflow.

Properties

CANCEL val CANCEL: String
NO val NO: String
OK val OK: String
YES val YES: String

Functions

showConfirm fun showConfirm(title: String, message: String, vararg options: String): String
showError fun showError(message: String, title: String = "Error"): Unit
showException fun showException(message: String, exception: Throwable, title: String = "Error"): Unit
showInformation fun showInformation(message: String, title: String = "Information"): Unit
showTextInput fun showTextInput(title: String, message: String, defaultValue: String): String?
showWarning fun showWarning(message: String, title: String = "Warning"): Unit

Extension Functions

valueOf fun Any?.valueOf(): String