StringConverter

scalafx.util.StringConverter
See theStringConverter companion class

Companion Object for scalafx.util.StringConverter.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

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 parameters

T

Type to convert

Value parameters

fromStringFunction

Function that converts a String to a new T instance

toStringFunction

Function that converts a T instance to a new String

Attributes

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 parameters

T

Type to convert

Value parameters

fromStringFunction

Function that converts a String to a new T instance

Attributes

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 parameters

T

Type to convert

Value parameters

toStringFunction

Function that converts a T instance to a new String

Attributes

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 parameters

s

ScalaFX StringConverter

Attributes