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 Object
trait Matchable
class Any
trait DialogDecoder[T]

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 Object
trait Matchable
class Any
Known subtypes
object DialogDecoder

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
trait DialogEncoder[T]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object DialogEncoder

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type