T - the data type of the value to be converted.public class DefaultObjectConverter<T> extends javafx.util.StringConverter<T> implements ObjectConverter<T>
| Constructor and Description |
|---|
DefaultObjectConverter() |
| Modifier and Type | Method and Description |
|---|---|
T |
fromString(java.lang.String string)
Calls to
fromString(String, ConverterContext) with ConverterContext.CONTEXT_DEFAULT as the context. |
T |
fromString(java.lang.String string,
ConverterContext context)
Return null in most cases unless the generic type T is also a String.
|
protected ObjectConverterManager |
getObjectConverterManager(ConverterContext context)
Gets the ObjectConverterManager instance from the ConverterContext if any.
|
java.lang.String |
toString(T value)
Calls to
toString(Object, ConverterContext) with ConverterContext.CONTEXT_DEFAULT as the context. |
java.lang.String |
toString(T value,
ConverterContext context)
Converts the value to String.
|
javafx.util.StringConverter<T> |
toStringConverter()
Return a <code>StringConverter</code> using the toString and fromString methods of ObjectConverter with
ConverterContext.CONTEXT_DEFAULT.
|
public java.lang.String toString(T value, ConverterContext context)
toString in interface ObjectConverter<T>value - the value to be concerted.context - converter context to be usedpublic T fromString(java.lang.String string, ConverterContext context)
fromString in interface ObjectConverter<T>string - the stringcontext - context to be convertedpublic java.lang.String toString(T value)
toString(Object, ConverterContext) with ConverterContext.CONTEXT_DEFAULT as the context.toString in class javafx.util.StringConverter<T>value - the valuepublic T fromString(java.lang.String string)
fromString(String, ConverterContext) with ConverterContext.CONTEXT_DEFAULT as the context.fromString in class javafx.util.StringConverter<T>string - the stringprotected ObjectConverterManager getObjectConverterManager(ConverterContext context)
context - the converter context.public javafx.util.StringConverter<T> toStringConverter()
toStringConverter in interface ObjectConverter<T>