Companion Object for scalafx.util.StringConverter.
Companion Object for scalafx.util.StringConverter.
- Companion
- class
Value members
Concrete methods
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
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
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