org.scalafx.extras.auto_dialog
package org.scalafx.extras.auto_dialog
Members list
Type members
Classlikes
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.
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
- Supertypes
-
class Objecttrait Matchableclass Any
Decode current fields from a GenericDialog corresponding to type T
Decode current fields from a GenericDialog corresponding to type T
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object given_DialogDecoder_Booleanobject given_DialogDecoder_Doubleobject given_DialogDecoder_Intobject given_DialogDecoder_String
object DialogDecoder
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
DialogDecoder.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object given_DialogEncoder_Booleanobject given_DialogEncoder_Doubleobject given_DialogEncoder_Intobject given_DialogEncoder_String
object DialogEncoder
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
DialogEncoder.type
In this article