StringConverter

Companion Object for scalafx.util.StringConverter.

Companion Object for scalafx.util.StringConverter.

Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[T](fromStringFunction: String => T, toStringFunction: T => String): StringConverter[T]

Generates a StringConverter from a Pair of Conversions Functions

Generates a StringConverter from a Pair of Conversions Functions

Type Params
T

Type to convert

Value Params
fromStringFunction

Function that converts a String to a new T instance

toStringFunction

Function that converts a T instance to a new String

def fromStringConverter[T](fromStringFunction: String => T): StringConverter[T]

Convenience method that will create a StringConverter implementation that just makes conversion from String to object. scalafx.util.StringConverter#toString method will throw a java.lang.UnsupportedOperationException.

Convenience method that will create a StringConverter implementation that just makes conversion from String to object. scalafx.util.StringConverter#toString method will throw a java.lang.UnsupportedOperationException.

Type Params
T

Type to convert

Value Params
fromStringFunction

Function that converts a String to a new T instance

def toStringConverter[T](toStringFunction: T => String): StringConverter[T]

Convenience method that will create a StringConverter implementation that just makes conversion from object to String. scalafx.util.StringConverter#fromString method will throw a java.lang.UnsupportedOperationException.

Convenience method that will create a StringConverter implementation that just makes conversion from object to String. scalafx.util.StringConverter#fromString method will throw a java.lang.UnsupportedOperationException.

Type Params
T

Type to convert

Value Params
toStringFunction

Function that converts a T instance to a new String

Implicits

Implicits

implicit def sfxStringConverter2jfx[T](s: StringConverter[T]): StringConverter[T]

Converts a ScalaFX StringConverter to a JavaFX StringConverter

Converts a ScalaFX StringConverter to a JavaFX StringConverter

Value Params
s

ScalaFX StringConverter