AutoDialog
org.scalafx.extras.auto_dialog.AutoDialog
class AutoDialog[A >: Null](data: A)(implicit evidence$1: DialogEncoder[A], evidence$2: DialogDecoder[A])
Automatically created a dialog from a case class. Names of the members of the input data will be used as labels for fields corresponding to their values. Initially case with members of Boolean, Int, Double, and String are supported.
Use methods showDialog to display the dialog and retrieve edited content.
case class FilterOptions(kernelSize: Int = 7,
start: Double = 3.14,
tag: String = "alpha",
debugMode: Boolean = false)
val result: Option[FilterOptions] =
new AutoDialog(FilterOptions())
.showDialog(
"Filter Options",
"Fields below were auto generated from `FilterOptions` object")
println(s"Result: result")
Value parameters
- data
-
data that will define the dialog and its initial values
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article